# x: generated by generator/ttl_export.py from jupyter-naas/abi 56f86c1be218b046068d8abf683d1ea6cd66763e
# (zen-prod-2026-11-24-1). Do not edit by hand. Source files:
#   libs/naas-abi-marketplace/naas_abi_marketplace/applications/x/ontologies/modules/XOntology.ttl
#   libs/naas-abi-marketplace/naas_abi_marketplace/applications/x/ontologies/processes/XCountRecentTweetsProcess.ttl
#   libs/naas-abi-marketplace/naas_abi_marketplace/applications/x/ontologies/processes/XSearchRecentTweetsProcess.ttl
@prefix abi: <http://ontology.naas.ai/abi/> .
@prefix bfo: <http://purl.obolibrary.org/obo/> .
@prefix dc1: <http://purl.org/dc/terms/> .
@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix x: <http://ontology.naas.ai/x/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

x:author_id a owl:DatatypeProperty ;
    rdfs:label "author id"@en ;
    rdfs:domain x:XUser ;
    rdfs:range xsd:string ;
    skos:definition "The unique numeric identifier of a user account on the X platform; corresponds to the `author_id` field returned on tweet objects by the X v2 API."@en ;
    skos:example "1752407607820607488" .

x:bookmark_count a owl:DatatypeProperty ;
    rdfs:label "bookmark count"@en ;
    rdfs:domain x:TweetPublicMetrics ;
    rdfs:range xsd:integer ;
    skos:definition "The number of times a tweet has been bookmarked, as exposed by the X v2 `public_metrics.bookmark_count` field."@en ;
    skos:example "0",
        "8" .

x:bucket_end a owl:DatatypeProperty ;
    rdfs:label "bucket end"@en ;
    rdfs:domain x:CountInterval ;
    rdfs:range xsd:dateTime ;
    skos:definition "The exclusive UTC end instant of a count bucket, as exposed by the X v2 `data[].end` field of the counts endpoint."@en ;
    skos:example "2026-07-07T15:00:00Z" .

x:bucket_start a owl:DatatypeProperty ;
    rdfs:label "bucket start"@en ;
    rdfs:domain x:CountInterval ;
    rdfs:range xsd:dateTime ;
    skos:definition "The inclusive UTC start instant of a count bucket, as exposed by the X v2 `data[].start` field of the counts endpoint."@en ;
    skos:example "2026-07-07T14:00:00Z" .

x:bucket_tweet_count a owl:DatatypeProperty ;
    rdfs:label "bucket tweet count"@en ;
    rdfs:domain x:TweetCountBucket ;
    rdfs:range xsd:integer ;
    skos:definition "The number of tweets matching the query during a single time bucket, as exposed by the X v2 `data[].tweet_count` field of the counts endpoint."@en ;
    skos:example "247" .

x:card_uri a owl:DatatypeProperty ;
    rdfs:label "card uri"@en ;
    rdfs:domain x:Tweet ;
    rdfs:range xsd:string ;
    skos:definition "URI of the link-preview card attached to the tweet; corresponds to the `card_uri` field returned by the X v2 API."@en ;
    skos:example "https://t.co/EzUWbYROqa" .

x:context_domain_description a owl:DatatypeProperty ;
    rdfs:label "context domain description"@en ;
    rdfs:domain x:ContextAnnotation ;
    rdfs:range xsd:string ;
    skos:definition "Description of the classification domain of a context annotation; corresponds to `context_annotations[].domain.description` in the X v2 API."@en ;
    skos:example "A section of a government, like The Supreme Court" .

x:context_domain_id a owl:DatatypeProperty ;
    rdfs:label "context domain id"@en ;
    rdfs:domain x:ContextAnnotation ;
    rdfs:range xsd:string ;
    skos:definition "Id of the classification domain of a context annotation; corresponds to `context_annotations[].domain.id` in the X v2 API."@en ;
    skos:example "88" .

x:context_domain_name a owl:DatatypeProperty ;
    rdfs:label "context domain name"@en ;
    rdfs:domain x:ContextAnnotation ;
    rdfs:range xsd:string ;
    skos:definition "Name of the classification domain of a context annotation; corresponds to `context_annotations[].domain.name` in the X v2 API."@en ;
    skos:example "Political Body" .

x:context_entity_description a owl:DatatypeProperty ;
    rdfs:label "context entity description"@en ;
    rdfs:domain x:ContextAnnotation ;
    rdfs:range xsd:string ;
    skos:definition "Description of the entity recognized by a context annotation; corresponds to `context_annotations[].entity.description` in the X v2 API."@en ;
    skos:example "North Atlantic Treaty Organization" .

x:context_entity_id a owl:DatatypeProperty ;
    rdfs:label "context entity id"@en ;
    rdfs:domain x:ContextAnnotation ;
    rdfs:range xsd:string ;
    skos:definition "Id of the entity recognized by a context annotation; corresponds to `context_annotations[].entity.id` in the X v2 API."@en ;
    skos:example "1016738021939351558" .

x:context_entity_name a owl:DatatypeProperty ;
    rdfs:label "context entity name"@en ;
    rdfs:domain x:ContextAnnotation ;
    rdfs:range xsd:string ;
    skos:definition "Name of the entity recognized by a context annotation; corresponds to `context_annotations[].entity.name` in the X v2 API."@en ;
    skos:example "North Atlantic Treaty Organization" .

x:conversation_id a owl:DatatypeProperty ;
    rdfs:label "conversation id"@en ;
    rdfs:domain x:Tweet ;
    rdfs:range xsd:string ;
    skos:definition "Id of the root tweet of the conversation thread this tweet belongs to; corresponds to the `conversation_id` field returned by the X v2 API."@en ;
    skos:example "2064652453870530755" .

x:display_url a owl:DatatypeProperty ;
    rdfs:label "display url"@en ;
    rdfs:domain x:TweetUrl ;
    rdfs:range xsd:string ;
    skos:definition "The truncated URL as displayed in the tweet; corresponds to `entities.urls[].display_url` in the X v2 API."@en ;
    skos:example "turdef.com/article/efes-2…" .

x:duration_ms a owl:DatatypeProperty ;
    rdfs:label "duration ms"@en ;
    rdfs:domain x:Media ;
    rdfs:range xsd:integer ;
    skos:definition "Duration of a video or animated gif in milliseconds; corresponds to the `duration_ms` field of the X v2 Media object."@en ;
    skos:example "69149" .

x:edit_history_tweet_id a owl:DatatypeProperty ;
    rdfs:label "edit history tweet id"@en ;
    rdfs:domain x:Tweet ;
    rdfs:range xsd:string ;
    skos:definition "An identifier in the chronological edit history of a tweet, including the original tweet id and any subsequent edited versions; corresponds to the `edit_history_tweet_ids` field returned by the X v2 API."@en ;
    skos:example "2061859064825446876" .

x:end_time a owl:DatatypeProperty ;
    rdfs:label "end time"@en ;
    rdfs:domain x:SearchQuery,
        x:TweetCountResultSet ;
    rdfs:range xsd:dateTime ;
    skos:definition "The newest UTC timestamp (exclusive) bounding the count window, sent as the `end_time` parameter."@en,
        "The newest UTC timestamp (exclusive) bounding the search window, sent as the `end_time` parameter."@en ;
    skos:example "2026-06-02T00:00:00Z",
        "2026-07-08T00:00:00Z" .

x:executedAt a owl:ObjectProperty ;
    rdfs:label "executed at"@en ;
    rdfs:domain x:SearchRecentTweets ;
    rdfs:range abi:TemporalInstant ;
    rdfs:subPropertyOf abi:occupiesTemporalRegion ;
    skos:definition "Relates a recent-tweet search process to the temporal instant at which the API call was issued."@en .

x:executedBy a owl:ObjectProperty ;
    rdfs:label "executed by"@en ;
    rdfs:domain x:SearchRecentTweets ;
    rdfs:range x:XUser ;
    rdfs:subPropertyOf abi:hasParticipant ;
    skos:definition "Relates a recent-tweet search process to the X user account on whose behalf the API call was made."@en .

x:expanded_url a owl:DatatypeProperty ;
    rdfs:label "expanded url"@en ;
    rdfs:domain x:TweetUrl ;
    rdfs:range xsd:string ;
    skos:definition "The fully resolved destination URL; corresponds to `entities.urls[].expanded_url` in the X v2 API."@en ;
    skos:example "https://turdef.com/article/efes-2026-turkiye-to-nato-or-nato-to-turkiye" .

x:expansions a owl:DatatypeProperty ;
    rdfs:label "expansions"@en ;
    rdfs:domain x:SearchQuery ;
    rdfs:range xsd:string ;
    skos:definition "Comma-joined list of object expansions to apply, sent as the `expansions` parameter. `referenced_tweets.id` is what causes the response to carry ReferencedTweet individuals alongside the matches."@en ;
    skos:example "author_id,referenced_tweets.id" .

x:file_path a owl:DatatypeProperty ;
    rdfs:label "file path"@en ;
    rdfs:domain x:SearchResultSet,
        x:TweetCountResultSet ;
    rdfs:range xsd:string ;
    skos:definition "Path to the JSON envelope file in object storage that persists the query, options and merged count buckets backing this count result set."@en,
        "Path to the JSON envelope file in object storage that persists the query, options and merged results backing this search result set."@en ;
    skos:example "x/count_recent_tweets/openai_or_anthropic_lang_en/2026-07-08T00:00:00+00:00_openai_or_anthropic_lang_en.json",
        "x/search_recent_tweets/roland_garros_lang_en/2026-06-02T19:15:50.123456+00:00_roland_garros_lang_en.json" .

x:followers_count a owl:DatatypeProperty ;
    rdfs:label "followers count"@en ;
    rdfs:domain x:XUserPublicMetrics ;
    rdfs:range xsd:integer ;
    skos:definition "The number of followers of the X user account, as exposed by the X v2 `public_metrics.followers_count` field on User objects."@en ;
    skos:example "7309" .

x:following_count a owl:DatatypeProperty ;
    rdfs:label "following count"@en ;
    rdfs:domain x:XUserPublicMetrics ;
    rdfs:range xsd:integer ;
    skos:definition "The number of accounts the X user follows, as exposed by the X v2 `public_metrics.following_count` field on User objects."@en ;
    skos:example "2591" .

x:full_text a owl:DatatypeProperty ;
    rdfs:label "full text"@en ;
    rdfs:domain x:Tweet ;
    rdfs:range xsd:string ;
    skos:definition "The complete, untruncated text content of a tweet on the X platform. When a tweet exceeds the standard length, the X v2 API truncates the `text` field and exposes the full content in the `note_tweet.text` field; this property carries `note_tweet.text` when present and otherwise falls back to `text`."@en ;
    skos:example "Les États-Unis ont renoncé à d'importants engagements militaires envers l'Otan. Le Pentagone a retiré du commandement de l'Alliance son groupe aéronaval, son groupe de bombardiers et plus de 50 chasseurs." .

x:granularity a owl:DatatypeProperty ;
    rdfs:label "granularity"@en ;
    rdfs:domain x:TweetCountResultSet ;
    rdfs:range xsd:string ;
    skos:definition "The time-bucket size requested from the X v2 counts endpoint: 'minute', 'hour' or 'day'; sent as the `granularity` parameter."@en ;
    skos:example "day",
        "hour" .

x:impression_count a owl:DatatypeProperty ;
    rdfs:label "impression count"@en ;
    rdfs:domain x:TweetPublicMetrics ;
    rdfs:range xsd:integer ;
    skos:definition "The number of times a tweet has been viewed by users, as exposed by the X v2 `public_metrics.impression_count` field."@en ;
    skos:example "210",
        "37" .

x:is_identity_verified a owl:DatatypeProperty ;
    rdfs:label "is identity verified"@en ;
    rdfs:domain x:XUser ;
    rdfs:range xsd:boolean ;
    skos:definition "Whether the identity of the X user account holder has been verified by X; corresponds to the `is_identity_verified` field of the X v2 User object."@en ;
    skos:example "false" .

x:lang a owl:DatatypeProperty ;
    rdfs:label "language code"@en ;
    rdfs:domain x:TweetLanguage ;
    rdfs:range xsd:string ;
    skos:definition "The IETF BCP 47 language tag detected for a tweet's text content; corresponds to the `lang` field returned by the X v2 API."@en ;
    skos:example "en",
        "es",
        "fr" .

x:like_count a owl:DatatypeProperty ;
    rdfs:label "like count"@en ;
    rdfs:domain x:TweetPublicMetrics ;
    rdfs:range xsd:integer ;
    skos:definition "The number of likes received by a tweet, as exposed by the X v2 `public_metrics.like_count` field."@en ;
    skos:example "1",
        "127" .

x:listed_count a owl:DatatypeProperty ;
    rdfs:label "listed count"@en ;
    rdfs:domain x:XUserPublicMetrics ;
    rdfs:range xsd:integer ;
    skos:definition "The number of public lists the X user account appears on, as exposed by the X v2 `public_metrics.listed_count` field on User objects."@en ;
    skos:example "89" .

x:max_pages a owl:DatatypeProperty ;
    rdfs:label "max pages"@en ;
    rdfs:domain x:SearchQuery ;
    rdfs:range xsd:integer ;
    skos:definition "Maximum number of result pages to fetch from the X v2 endpoint during a single search process."@en ;
    skos:example "1",
        "5" .

x:max_results a owl:DatatypeProperty ;
    rdfs:label "max results"@en ;
    rdfs:domain x:SearchQuery ;
    rdfs:range xsd:integer ;
    skos:definition "Maximum number of tweets to return per page (10-100) when querying GET /2/tweets/search/recent."@en ;
    skos:example "100" .

x:media_fields a owl:DatatypeProperty ;
    rdfs:label "media fields"@en ;
    rdfs:domain x:SearchQuery ;
    rdfs:range xsd:string ;
    skos:definition "Comma-joined list of fields on expanded Media objects, sent as the `media.fields` parameter."@en ;
    skos:example "url,preview_image_url,type" .

x:media_height a owl:DatatypeProperty ;
    rdfs:label "media height"@en ;
    rdfs:domain x:Media ;
    rdfs:range xsd:integer ;
    skos:definition "Height of the media artifact in pixels; corresponds to the `height` field of the X v2 Media object."@en ;
    skos:example "1080" .

x:media_key a owl:DatatypeProperty ;
    rdfs:label "media key"@en ;
    rdfs:domain x:Media ;
    rdfs:range xsd:string ;
    skos:definition "The unique key of a media artifact on the X platform; corresponds to the `media_key` field of the X v2 Media object."@en ;
    skos:example "13_2063731151118766080" .

x:media_type a owl:DatatypeProperty ;
    rdfs:label "media type"@en ;
    rdfs:domain x:Media ;
    rdfs:range xsd:string ;
    skos:definition "The kind of media artifact ('photo', 'video', 'animated_gif'); corresponds to the `type` field of the X v2 Media object."@en ;
    skos:example "video" .

x:media_url a owl:DatatypeProperty ;
    rdfs:label "media url"@en ;
    rdfs:domain x:Media ;
    rdfs:range xsd:string ;
    skos:definition "Direct URL of the media content (photos); corresponds to the `url` field of the X v2 Media object."@en ;
    skos:example "https://pbs.twimg.com/media/abc.jpg" .

x:media_width a owl:DatatypeProperty ;
    rdfs:label "media width"@en ;
    rdfs:domain x:Media ;
    rdfs:range xsd:integer ;
    skos:definition "Width of the media artifact in pixels; corresponds to the `width` field of the X v2 Media object."@en ;
    skos:example "1920" .

x:most_recent_tweet_id a owl:DatatypeProperty ;
    rdfs:label "most recent tweet id"@en ;
    rdfs:domain x:XUser ;
    rdfs:range xsd:string ;
    skos:definition "Id of the most recent tweet posted by the X user account; corresponds to the `most_recent_tweet_id` field of the X v2 User object."@en ;
    skos:example "2064652453870530755" .

x:newest_id a owl:DatatypeProperty ;
    rdfs:label "newest id"@en ;
    rdfs:domain x:SearchResultSet ;
    rdfs:range xsd:string ;
    skos:definition "Id of the most recent tweet in the result set, as exposed by the X v2 `meta.newest_id` field."@en ;
    skos:example "2064652453870530755" .

x:next_token a owl:DatatypeProperty ;
    rdfs:label "next token"@en ;
    rdfs:domain x:SearchResultSet ;
    rdfs:range xsd:string ;
    skos:definition "Pagination token to retrieve the next page of results, as exposed by the X v2 `meta.next_token` field."@en ;
    skos:example "b26v89c19zqg8o3jueqhsopk6lsleh1vu10ay5rvh2e7x" .

x:oldest_id a owl:DatatypeProperty ;
    rdfs:label "oldest id"@en ;
    rdfs:domain x:SearchResultSet ;
    rdfs:range xsd:string ;
    skos:definition "Id of the oldest tweet in the result set, as exposed by the X v2 `meta.oldest_id` field."@en ;
    skos:example "2064651819750449572" .

x:paid_partnership a owl:DatatypeProperty ;
    rdfs:label "paid partnership"@en ;
    rdfs:domain x:Tweet ;
    rdfs:range xsd:boolean ;
    skos:definition "Whether the tweet is flagged as paid-partnership content via the `paid_partnership` field."@en ;
    skos:example "false" .

x:parody a owl:DatatypeProperty ;
    rdfs:label "parody"@en ;
    rdfs:domain x:XUser ;
    rdfs:range xsd:boolean ;
    skos:definition "Whether the X user account is self-declared as a parody account; corresponds to the `parody` field of the X v2 User object."@en ;
    skos:example "false" .

x:pinned_tweet_id a owl:DatatypeProperty ;
    rdfs:label "pinned tweet id"@en ;
    rdfs:domain x:XUser ;
    rdfs:range xsd:string ;
    skos:definition "Id of the tweet pinned on the X user profile; corresponds to the `pinned_tweet_id` field of the X v2 User object."@en ;
    skos:example "2030437507402415130" .

x:place_fields a owl:DatatypeProperty ;
    rdfs:label "place fields"@en ;
    rdfs:domain x:SearchQuery ;
    rdfs:range xsd:string ;
    skos:definition "Comma-joined list of fields on expanded Place objects, sent as the `place.fields` parameter."@en ;
    skos:example "country,full_name,geo" .

x:poll_fields a owl:DatatypeProperty ;
    rdfs:label "poll fields"@en ;
    rdfs:domain x:SearchQuery ;
    rdfs:range xsd:string ;
    skos:definition "Comma-joined list of fields on expanded Poll objects, sent as the `poll.fields` parameter."@en ;
    skos:example "options,voting_status,end_datetime" .

x:possibly_sensitive a owl:DatatypeProperty ;
    rdfs:label "possibly sensitive"@en ;
    rdfs:domain x:Tweet ;
    rdfs:range xsd:boolean ;
    skos:definition "Whether the tweet content may be sensitive, as flagged by the X platform via the `possibly_sensitive` field."@en ;
    skos:example "false" .

x:preview_image_url a owl:DatatypeProperty ;
    rdfs:label "preview image url"@en ;
    rdfs:domain x:Media ;
    rdfs:range xsd:string ;
    skos:definition "URL of the static preview image of a video or animated gif; corresponds to the `preview_image_url` field of the X v2 Media object."@en ;
    skos:example "https://pbs.twimg.com/amplify_video_thumb/.../img/abc.jpg" .

x:profile_banner_url a owl:DatatypeProperty ;
    rdfs:label "profile banner url"@en ;
    rdfs:domain x:XUser ;
    rdfs:range xsd:string ;
    skos:definition "URL of the profile banner image of the X user account; corresponds to the `profile_banner_url` field of the X v2 User object."@en ;
    skos:example "https://pbs.twimg.com/profile_banners/..." .

x:profile_image_url a owl:DatatypeProperty ;
    rdfs:label "profile image url"@en ;
    rdfs:domain x:XUser ;
    rdfs:range xsd:string ;
    skos:definition "URL of the profile image of the X user account; corresponds to the `profile_image_url` field of the X v2 User object."@en ;
    skos:example "https://pbs.twimg.com/profile_images/.../photo.jpg" .

x:protected a owl:DatatypeProperty ;
    rdfs:label "protected"@en ;
    rdfs:domain x:XUser ;
    rdfs:range xsd:boolean ;
    skos:definition "Whether the X user account's tweets are protected (private); corresponds to the `protected` field of the X v2 User object."@en ;
    skos:example "false" .

x:query_string a owl:DatatypeProperty ;
    rdfs:label "query string"@en ;
    rdfs:domain x:SearchQuery,
        x:TweetCountResultSet ;
    rdfs:range xsd:string ;
    skos:definition "The X v2 search query expression (1-4096 chars) submitted as the `query` parameter to GET /2/tweets/counts/recent that this count result set answers."@en,
        "The X v2 search query expression (1-4096 chars) submitted as the `query` parameter to GET /2/tweets/search/recent."@en ;
    skos:example "(from:TwitterDev OR from:TwitterAPI) has:media -is:retweet",
        "(openai OR anthropic) lang:en -is:retweet" .

x:quote_count a owl:DatatypeProperty ;
    rdfs:label "quote count"@en ;
    rdfs:domain x:TweetPublicMetrics ;
    rdfs:range xsd:integer ;
    skos:definition "The number of quote tweets referencing this tweet, as exposed by the X v2 `public_metrics.quote_count` field."@en ;
    skos:example "0",
        "5" .

x:quotesTweet a owl:ObjectProperty ;
    rdfs:label "quotes tweet"@en ;
    rdfs:domain x:Tweet ;
    rdfs:range x:Tweet ;
    rdfs:subPropertyOf x:referencesTweet ;
    skos:definition "Relates a quote tweet to the tweet it quotes (`referenced_tweets[].type == 'quoted'`)."@en .

x:referenced_count a owl:DatatypeProperty ;
    rdfs:label "referenced count"@en ;
    rdfs:domain x:SearchResultSet ;
    rdfs:range xsd:integer ;
    skos:definition "Number of referenced tweets carried by this search result set as expansion context — the entries of the X v2 `includes.tweets` array that are absent from `data`. These did not match the query and are excluded from result_count."@en ;
    skos:example "12" .

x:repliesToTweet a owl:ObjectProperty ;
    rdfs:label "replies to tweet"@en ;
    rdfs:domain x:Tweet ;
    rdfs:range x:Tweet ;
    rdfs:subPropertyOf x:referencesTweet ;
    skos:definition "Relates a reply tweet to the tweet it replies to (`referenced_tweets[].type == 'replied_to'`)."@en .

x:reply_count a owl:DatatypeProperty ;
    rdfs:label "reply count"@en ;
    rdfs:domain x:TweetPublicMetrics ;
    rdfs:range xsd:integer ;
    skos:definition "The number of replies to a tweet, as exposed by the X v2 `public_metrics.reply_count` field."@en ;
    skos:example "0",
        "3" .

x:reply_settings a owl:DatatypeProperty ;
    rdfs:label "reply settings"@en ;
    rdfs:domain x:Tweet ;
    rdfs:range xsd:string ;
    skos:definition "Who can reply to the tweet ('everyone', 'mentioned_users', 'followers', ...); corresponds to the `reply_settings` field returned by the X v2 API."@en ;
    skos:example "everyone" .

x:result_count a owl:DatatypeProperty ;
    rdfs:label "result count"@en ;
    rdfs:domain x:SearchResultSet ;
    rdfs:range xsd:integer ;
    skos:definition "Number of tweets that matched the query in this search result set, as exposed by the X v2 `meta.result_count` field. Counts only the `data` array — referenced tweets carried for context are counted by referenced_count instead."@en ;
    skos:example "28" .

x:result_set_id a owl:DatatypeProperty ;
    rdfs:label "result set id"@en ;
    rdfs:domain x:SearchResultSet ;
    rdfs:range xsd:string ;
    skos:definition "Short hash identifying the search result set in the local datastore; an 8-character hex digest of the sorted parameter dictionary used as the cache key and filename."@en ;
    skos:example "21dcaa8c" .

x:retweet_count a owl:DatatypeProperty ;
    rdfs:label "retweet count"@en ;
    rdfs:domain x:TweetPublicMetrics ;
    rdfs:range xsd:integer ;
    skos:definition "The number of times a tweet has been retweeted, as exposed by the X v2 `public_metrics.retweet_count` field."@en ;
    skos:example "0",
        "42" .

x:retweetsTweet a owl:ObjectProperty ;
    rdfs:label "retweets tweet"@en ;
    rdfs:domain x:Tweet ;
    rdfs:range x:Tweet ;
    rdfs:subPropertyOf x:referencesTweet ;
    skos:definition "Relates a retweet to the tweet it retweets (`referenced_tweets[].type == 'retweeted'`)."@en .

x:since_id a owl:DatatypeProperty ;
    rdfs:label "since id"@en ;
    rdfs:domain x:SearchQuery ;
    rdfs:range xsd:string ;
    skos:definition "Lower-exclusive tweet-id bound: only tweets with an id greater than this value are returned."@en ;
    skos:example "2061855239876333873" .

x:sort_order a owl:DatatypeProperty ;
    rdfs:label "sort order"@en ;
    rdfs:domain x:SearchQuery ;
    rdfs:range xsd:string ;
    skos:definition "Sort order requested for returned tweets: either 'recency' or 'relevancy'."@en ;
    skos:example "recency",
        "relevancy" .

x:start_time a owl:DatatypeProperty ;
    rdfs:label "start time"@en ;
    rdfs:domain x:SearchQuery,
        x:TweetCountResultSet ;
    rdfs:range xsd:dateTime ;
    skos:definition "The oldest UTC timestamp (inclusive) bounding the count window, sent as the `start_time` parameter."@en,
        "The oldest UTC timestamp (inclusive) bounding the search window, sent as the `start_time` parameter."@en ;
    skos:example "2026-05-26T00:00:00Z",
        "2026-07-01T00:00:00Z" .

x:subscription_type a owl:DatatypeProperty ;
    rdfs:label "subscription type"@en ;
    rdfs:domain x:XUser ;
    rdfs:range xsd:string ;
    skos:definition "The X premium subscription tier of the user account; corresponds to the `subscription_type` field of the X v2 User object."@en ;
    skos:example "Premium" .

x:total_tweet_count a owl:DatatypeProperty ;
    rdfs:label "total tweet count"@en ;
    rdfs:domain x:TweetCountResultSet ;
    rdfs:range xsd:integer ;
    skos:definition "The grand total of tweets matching the query across every bucket of the count result set, as exposed by the summed X v2 `meta.total_tweet_count` field."@en ;
    skos:example "12040" .

x:tweet_created_at a owl:DatatypeProperty ;
    rdfs:label "tweet created at"@en ;
    rdfs:domain x:Tweet ;
    rdfs:range xsd:dateTime ;
    skos:definition "The UTC timestamp at which the tweet was published on the X platform; corresponds to the `created_at` field returned by the X v2 API."@en ;
    skos:example "2026-06-02T17:14:43.000Z" .

x:tweet_fields a owl:DatatypeProperty ;
    rdfs:label "tweet fields"@en ;
    rdfs:domain x:SearchQuery ;
    rdfs:range xsd:string ;
    skos:definition "Comma-joined list of fields to include on each Tweet object, sent as the `tweet.fields` parameter."@en ;
    skos:example "created_at,author_id,public_metrics,lang" .

x:tweet_id a owl:DatatypeProperty ;
    rdfs:label "tweet id"@en ;
    rdfs:domain x:Tweet ;
    rdfs:range xsd:string ;
    skos:definition "The unique numeric identifier of a tweet on the X platform; corresponds to the `id` field returned by the X v2 API."@en ;
    skos:example "2061859064825446876" .

x:tweet_text a owl:DatatypeProperty ;
    rdfs:label "tweet text"@en ;
    rdfs:domain x:Tweet ;
    rdfs:range xsd:string ;
    skos:definition "The text content of a tweet as published on the X platform; corresponds to the `text` field returned by the X v2 API."@en ;
    skos:example "The legendary @gugakuerten set the stage, now Fonseca is absolutely electrifying the 2026 Roland Garros!" .

x:until_id a owl:DatatypeProperty ;
    rdfs:label "until id"@en ;
    rdfs:domain x:SearchQuery ;
    rdfs:range xsd:string ;
    skos:definition "Upper-exclusive tweet-id bound: only tweets with an id less than this value are returned."@en ;
    skos:example "2061859064825446876" .

x:unwound_url a owl:DatatypeProperty ;
    rdfs:label "unwound url"@en ;
    rdfs:domain x:TweetUrl ;
    rdfs:range xsd:string ;
    skos:definition "The final unrolled URL after following redirects; corresponds to `entities.urls[].unwound_url` in the X v2 API."@en ;
    skos:example "https://turdef.com/article/efes-2026-turkiye-to-nato-or-nato-to-turkiye" .

x:url a owl:DatatypeProperty ;
    rdfs:label "url"@en ;
    rdfs:domain x:Tweet,
        x:TweetUrl ;
    rdfs:range xsd:string ;
    skos:definition "A URL associated with the subject. On a Tweet URL entity, the shortened t.co URL as it appears in the tweet text (`entities.urls[].url` in the X v2 API). On a Tweet, the canonical permalink to the tweet, reconstructed as `https://x.com/<author_id>/status/<id>` since the X v2 API does not return it directly."@en ;
    skos:example "https://t.co/EzUWbYROqa",
        "https://x.com/1752407607820607488/status/2061859064825446876" .

x:url_description a owl:DatatypeProperty ;
    rdfs:label "url description"@en ;
    rdfs:domain x:TweetUrl ;
    rdfs:range xsd:string ;
    skos:definition "The HTML meta description of the linked page; corresponds to `entities.urls[].description` in the X v2 API."@en ;
    skos:example "The Turkish Armed Forces completed the Efes 2026 Exercise." .

x:url_title a owl:DatatypeProperty ;
    rdfs:label "url title"@en ;
    rdfs:domain x:TweetUrl ;
    rdfs:range xsd:string ;
    skos:definition "The HTML title of the linked page; corresponds to `entities.urls[].title` in the X v2 API."@en ;
    skos:example "EFES 2026: Turkiye to NATO? or NATO to Turkiye? / Chapter-I" .

x:user_created_at a owl:DatatypeProperty ;
    rdfs:label "user created at"@en ;
    rdfs:domain x:XUser ;
    rdfs:range xsd:dateTime ;
    skos:definition "The UTC timestamp at which the X user account was created; corresponds to the `created_at` field of the X v2 User object."@en ;
    skos:example "2020-12-09T09:12:59.000Z" .

x:user_description a owl:DatatypeProperty ;
    rdfs:label "user description"@en ;
    rdfs:domain x:XUser ;
    rdfs:range xsd:string ;
    skos:definition "The profile bio of the X user account; corresponds to the `description` field of the X v2 User object."@en ;
    skos:example "Turkish Defence News" .

x:user_fields a owl:DatatypeProperty ;
    rdfs:label "user fields"@en ;
    rdfs:domain x:SearchQuery ;
    rdfs:range xsd:string ;
    skos:definition "Comma-joined list of fields on expanded User objects, sent as the `user.fields` parameter."@en ;
    skos:example "username,name,verified" .

x:user_like_count a owl:DatatypeProperty ;
    rdfs:label "user like count"@en ;
    rdfs:domain x:XUserPublicMetrics ;
    rdfs:range xsd:integer ;
    skos:definition "The number of tweets liked by the X user account, as exposed by the X v2 `public_metrics.like_count` field on User objects."@en ;
    skos:example "810" .

x:user_location a owl:DatatypeProperty ;
    rdfs:label "user location"@en ;
    rdfs:domain x:XUser ;
    rdfs:range xsd:string ;
    skos:definition "The free-form location declared on the X user profile; corresponds to the `location` field of the X v2 User object."@en ;
    skos:example "Aziziye Mah. Çankaya Ankara" .

x:user_media_count a owl:DatatypeProperty ;
    rdfs:label "user media count"@en ;
    rdfs:domain x:XUserPublicMetrics ;
    rdfs:range xsd:integer ;
    skos:definition "The number of media items posted by the X user account, as exposed by the X v2 `public_metrics.media_count` field on User objects."@en ;
    skos:example "1915" .

x:user_name a owl:DatatypeProperty ;
    rdfs:label "user display name"@en ;
    rdfs:domain x:XUser ;
    rdfs:range xsd:string ;
    skos:definition "The display name of the X user account; corresponds to the `name` field of the X v2 User object."@en ;
    skos:example "TurDef" .

x:user_tweet_count a owl:DatatypeProperty ;
    rdfs:label "user tweet count"@en ;
    rdfs:domain x:XUserPublicMetrics ;
    rdfs:range xsd:integer ;
    skos:definition "The number of tweets posted by the X user account, as exposed by the X v2 `public_metrics.tweet_count` field on User objects."@en ;
    skos:example "7080" .

x:user_url a owl:DatatypeProperty ;
    rdfs:label "user url"@en ;
    rdfs:domain x:XUser ;
    rdfs:range xsd:string ;
    skos:definition "The website URL declared on the X user profile; corresponds to the `url` field of the X v2 User object."@en ;
    skos:example "https://t.co/abc123" .

x:username a owl:DatatypeProperty ;
    rdfs:label "username"@en ;
    rdfs:domain x:XUser ;
    rdfs:range xsd:string ;
    skos:definition "The unique handle of the X user account (without the @ prefix); corresponds to the `username` field of the X v2 User object."@en ;
    skos:example "turdefcom" .

x:verified a owl:DatatypeProperty ;
    rdfs:label "verified"@en ;
    rdfs:domain x:XUser ;
    rdfs:range xsd:boolean ;
    skos:definition "Whether the X user account is verified; corresponds to the `verified` field of the X v2 User object."@en ;
    skos:example "true" .

x:verified_type a owl:DatatypeProperty ;
    rdfs:label "verified type"@en ;
    rdfs:domain x:XUser ;
    rdfs:range xsd:string ;
    skos:definition "The verification type of the X user account ('blue', 'business', 'government', 'none'); corresponds to the `verified_type` field of the X v2 User object."@en ;
    skos:example "blue" .

x:CountRecentTweets a owl:Class ;
    rdfs:label "Count Recent Tweets"@en ;
    rdfs:subClassOf [ a owl:Restriction ;
            owl:onProperty x:producesCountResult ;
            owl:someValuesFrom x:TweetCountResultSet ],
        [ a owl:Restriction ;
            owl:allValuesFrom x:TweetCountResultSet ;
            owl:onProperty x:producesCountResult ],
        abi:Process ;
    skos:altLabel "Recent Tweet Count"@en ;
    skos:definition "A process by which the X v2 GET /2/tweets/counts/recent endpoint is queried to retrieve the time-bucketed number of tweets posted in the last seven days that match a given query, at minute, hour or day granularity. Unlike SearchRecentTweets it returns only counts (no tweet content) and so does not consume the tweet-retrieval budget; it produces a TweetCountResultSet carrying one TweetCountBucket per time bucket."@en ;
    skos:example "An hourly count for query '(openai OR anthropic) lang:en -is:retweet' executed on 2026-07-08 producing a result set of 168 hourly buckets."@en .

x:CountRecentTweetsProcess a owl:Ontology ;
    abi:ontologyResource "ontologies/processes/XCountRecentTweetsProcess.ttl" ;
    abi:pythonPackage "naas_abi_marketplace.applications.x" ;
    abi:pythonResource "ontologies/processes/XCountRecentTweetsProcess.py" ;
    dc11:contributor "Alice Dupont" ;
    dc11:date "2026-07-23"^^xsd:date ;
    dc1:description "Process ontology for the X v2 GET /2/tweets/counts/recent endpoint. Models the CountRecentTweets process, the time-bucketed count result it produces (TweetCountResultSet), each time-bucketed count (TweetCountBucket) and the temporal interval each bucket occupies (CountInterval). Used to follow how many posts match a query over time without retrieving tweet content."@en ;
    dc1:license <https://creativecommons.org/licenses/by/4.0/> ;
    dc1:title "X (Twitter) Count Recent Tweets Process Ontology"@en ;
    rdfs:comment "Process ontology for following X tweet counts over time."@en ;
    rdfs:seeAlso x:XOntology ;
    owl:imports abi:Ontology .

x:SearchRecentTweetsProcess a owl:Ontology ;
    abi:ontologyResource "ontologies/processes/XSearchRecentTweetsProcess.ttl" ;
    abi:pythonPackage "naas_abi_marketplace.applications.x" ;
    abi:pythonResource "ontologies/processes/XSearchRecentTweetsProcess.py" ;
    dc11:contributor "Alice Dupont" ;
    dc11:date "2026-08-07"^^xsd:date ;
    dc1:description "Process ontology for the X v2 GET /2/tweets/search/recent endpoint. Models the SearchRecentTweets process, the SearchQuery it executes, the SearchResultSet it produces and the SearchInterval it occupies. The response separates two populations that this ontology keeps apart: the tweets that matched the query (`data`, linked to the result set by x:containsTweet) and the ReferencedTweet individuals pulled in by the `referenced_tweets.id` expansion (`includes.tweets`, linked by x:containsReferencedTweet). Only the former are search results; conflating them overstates matched volume."@en ;
    dc1:license <https://creativecommons.org/licenses/by/4.0/> ;
    dc1:title "X (Twitter) Search Recent Tweets Process Ontology"@en ;
    rdfs:comment "Process ontology for searching recent X tweets, separating matched tweets from referenced context tweets."@en ;
    rdfs:seeAlso x:XOntology ;
    owl:imports abi:Ontology,
        x:XOntology .

x:XPlatform a owl:Class ;
    rdfs:label "X Platform"@en ;
    rdfs:subClassOf abi:Site ;
    skos:altLabel "Twitter Platform"@en ;
    skos:definition "A site representing the X (Twitter) social media platform in which user accounts participate, tweets are published, and search processes are executed against the X v2 API."@en ;
    skos:example "x.com",
        "api.x.com"@en .

x:hasAuthoredTweet a owl:ObjectProperty ;
    rdfs:label "has authored tweet"@en ;
    rdfs:domain x:XUser ;
    rdfs:range x:Tweet ;
    rdfs:subPropertyOf abi:isCarrierOf ;
    owl:inverseOf x:isAuthoredBy ;
    skos:definition "Relates an X user account to a tweet authored by it on the X platform."@en .

x:hasLanguage a owl:ObjectProperty ;
    rdfs:label "has language"@en ;
    rdfs:domain x:Tweet ;
    rdfs:range x:TweetLanguage ;
    rdfs:subPropertyOf abi:bearerOf ;
    skos:definition "Relates a tweet to the natural-language quality detected for its text content."@en .

x:hasXUserAccount a owl:ObjectProperty ;
    rdfs:label "has X user account"@en ;
    rdfs:domain abi:Person ;
    rdfs:range x:XUser ;
    rdfs:subPropertyOf abi:isCarrierOf ;
    owl:inverseOf x:isXUserAccountOf ;
    skos:definition "Relates a person to the X user account that generically depends on them within the X platform."@en .

x:inReplyToUser a owl:ObjectProperty ;
    rdfs:label "in reply to user"@en ;
    rdfs:domain x:Tweet ;
    rdfs:range x:XUser ;
    skos:definition "Relates a reply tweet to the X user account whose tweet it replies to, as exposed by the X v2 `in_reply_to_user_id` field."@en .

x:isContainedInSearchResultSet a owl:ObjectProperty ;
    rdfs:label "is contained in search result set"@en ;
    rdfs:domain x:Tweet ;
    rdfs:range x:SearchResultSet ;
    rdfs:subPropertyOf abi:genericallyDependsOn ;
    owl:inverseOf x:containsTweet ;
    skos:definition "Relates a tweet to a search result set in which it appears as a match of the query."@en .

x:isPrecededBy a owl:ObjectProperty ;
    rdfs:label "is preceded by"@en ;
    rdfs:domain abi:Process ;
    rdfs:range abi:Process ;
    rdfs:subPropertyOf bfo:BFO_0000062 ;
    owl:inverseOf x:precedes ;
    skos:definition "Relates a process to another process that precedes it temporally; sub-property of BFO preceded_by (BFO_0000062)."@en .

x:isReferencedByTweet a owl:ObjectProperty ;
    rdfs:label "is referenced by tweet"@en ;
    rdfs:domain x:Tweet ;
    rdfs:range x:Tweet ;
    owl:inverseOf x:referencesTweet ;
    skos:definition "Relates a tweet to another tweet that references it — the referencing tweet replies to it, quotes it or retweets it. This is the inverse of x:referencesTweet: it holds of the reply parent, the quoted tweet or the retweeted original, and it is what the X v2 `referenced_tweets.id` expansion resolves when it returns a tweet under `includes.tweets`."@en .

x:isReferencedTweetOfSearchResultSet a owl:ObjectProperty ;
    rdfs:label "is referenced tweet of search result set"@en ;
    rdfs:domain x:ReferencedTweet ;
    rdfs:range x:SearchResultSet ;
    rdfs:subPropertyOf abi:genericallyDependsOn ;
    owl:inverseOf x:containsReferencedTweet ;
    skos:definition "Relates a referenced tweet to a search result set that carried it as expansion context rather than as a match of the query."@en .

x:isSearchQueryOf a owl:ObjectProperty ;
    rdfs:label "is search query of"@en ;
    rdfs:domain x:SearchQuery ;
    rdfs:range x:SearchRecentTweets ;
    rdfs:subPropertyOf abi:isConcretizedBy ;
    owl:inverseOf x:usesSearchQuery ;
    skos:definition "Relates a search query artifact to the recent-tweet search process that executes it."@en .

x:mentionsUser a owl:ObjectProperty ;
    rdfs:label "mentions user"@en ;
    rdfs:domain x:Tweet ;
    rdfs:range x:XUser ;
    skos:definition "Relates a tweet to an X user account mentioned in its text, as exposed by the X v2 `entities.mentions` field."@en .

x:precedes a owl:ObjectProperty ;
    rdfs:label "precedes"@en ;
    rdfs:domain abi:Process ;
    rdfs:range abi:Process ;
    rdfs:subPropertyOf bfo:BFO_0000063 ;
    owl:inverseOf x:isPrecededBy ;
    skos:definition "Relates a process to another process that follows it temporally; sub-property of BFO precedes (BFO_0000063)."@en .

x:retrievesMedia a owl:ObjectProperty ;
    rdfs:label "retrieves media"@en ;
    rdfs:domain x:SearchRecentTweets ;
    rdfs:range x:Media ;
    rdfs:subPropertyOf abi:hasParticipant ;
    skos:definition "Relates a recent-tweet search process to a media artifact expanded in its response (the `includes.media` of the X v2 search response)."@en .

x:retrievesReferencedTweet a owl:ObjectProperty ;
    rdfs:label "retrieves referenced tweet"@en ;
    rdfs:domain x:SearchRecentTweets ;
    rdfs:range x:ReferencedTweet ;
    rdfs:subPropertyOf abi:hasParticipant ;
    skos:definition "Relates a recent-tweet search process to a referenced tweet expanded in its response (an `includes.tweets` entry absent from `data`), retrieved as context for a match rather than as a match itself."@en .

x:retrievesTweet a owl:ObjectProperty ;
    rdfs:label "retrieves tweet"@en ;
    rdfs:domain x:SearchRecentTweets ;
    rdfs:range x:Tweet ;
    rdfs:subPropertyOf abi:hasParticipant ;
    skos:definition "Relates a recent-tweet search process to a tweet it retrieved as a match of its query (the `data` tweets of the X v2 search response)."@en .

x:retrievesUser a owl:ObjectProperty ;
    rdfs:label "retrieves user"@en ;
    rdfs:domain x:SearchRecentTweets ;
    rdfs:range x:XUser ;
    rdfs:subPropertyOf abi:hasParticipant ;
    skos:definition "Relates a recent-tweet search process to an X user account expanded in its response (the `includes.users` of the X v2 search response)."@en .

x:tweetedAt a owl:ObjectProperty ;
    rdfs:label "tweeted at"@en ;
    rdfs:domain x:Tweet ;
    rdfs:range abi:TemporalInstant ;
    rdfs:subPropertyOf abi:occupiesTemporalRegion ;
    skos:definition "Relates a tweet to the temporal instant at which it was published on the X platform."@en .

x:containsCountBucket a owl:ObjectProperty ;
    rdfs:label "contains count bucket"@en ;
    rdfs:domain x:TweetCountResultSet ;
    rdfs:range x:TweetCountBucket ;
    rdfs:subPropertyOf abi:isCarrierOf ;
    owl:inverseOf x:isCountBucketOf ;
    skos:definition "Relates a count result set to a time-bucketed tweet count it contains."@en .

x:containsReferencedTweet a owl:ObjectProperty ;
    rdfs:label "contains referenced tweet"@en ;
    rdfs:domain x:SearchResultSet ;
    rdfs:range x:ReferencedTweet ;
    rdfs:subPropertyOf abi:isCarrierOf ;
    owl:inverseOf x:isReferencedTweetOfSearchResultSet ;
    skos:definition "Relates a search result set to a referenced tweet returned alongside its matches — an entry of the X v2 `includes.tweets` array that is absent from `data`. The referenced tweet is present only as conversational context for a matched tweet that replies to, quotes or retweets it, and must not be counted as a search result."@en .

x:containsTweet a owl:ObjectProperty ;
    rdfs:label "contains tweet"@en ;
    rdfs:domain x:SearchResultSet ;
    rdfs:range x:Tweet ;
    rdfs:subPropertyOf abi:isCarrierOf ;
    owl:inverseOf x:isContainedInSearchResultSet ;
    skos:definition "Relates a search result set to a tweet that matched its query — an entry of the X v2 `data` array. This relation is the definition of 'was a search result': tweets reachable only through x:containsReferencedTweet did not match the query and are excluded."@en .

x:hasAttachedMedia a owl:ObjectProperty ;
    rdfs:label "has attached media"@en ;
    rdfs:domain x:Tweet ;
    rdfs:range x:Media ;
    rdfs:subPropertyOf abi:isCarrierOf ;
    owl:inverseOf x:isAttachedMediaOf ;
    skos:definition "Relates a tweet to a media artifact (photo, video, animated gif) attached to it, resolved through the X v2 `attachments.media_keys` expansion."@en .

x:hasContextAnnotation a owl:ObjectProperty ;
    rdfs:label "has context annotation"@en ;
    rdfs:domain x:Tweet ;
    rdfs:range x:ContextAnnotation ;
    rdfs:subPropertyOf abi:isCarrierOf ;
    owl:inverseOf x:isContextAnnotationOf ;
    skos:definition "Relates a tweet to a context annotation (domain/entity classification pair) inferred for it by the X platform, as exposed by the X v2 `context_annotations` field."@en .

x:hasPublicMetrics a owl:ObjectProperty ;
    rdfs:label "has public metrics"@en ;
    rdfs:domain x:Tweet ;
    rdfs:range x:TweetPublicMetrics ;
    rdfs:subPropertyOf abi:isCarrierOf ;
    owl:inverseOf x:isPublicMetricsOf ;
    skos:definition "Relates a tweet to the public engagement metrics artifact exposed by the X v2 API."@en .

x:hasSearchInterval a owl:ObjectProperty ;
    rdfs:label "has search interval"@en ;
    rdfs:domain abi:Process ;
    rdfs:range x:SearchInterval ;
    rdfs:subPropertyOf abi:occupiesTemporalRegion ;
    skos:definition "Relates an X process to the temporal interval that bounds its execution, carrying a first instant (searchStartedAt) and a last instant (searchEndedAt)."@en .

x:hasUrlEntity a owl:ObjectProperty ;
    rdfs:label "has url entity"@en ;
    rdfs:domain x:Tweet ;
    rdfs:range x:TweetUrl ;
    rdfs:subPropertyOf abi:isCarrierOf ;
    owl:inverseOf x:isUrlEntityOf ;
    skos:definition "Relates a tweet to a URL entity contained in its text, as exposed by the X v2 `entities.urls` field."@en .

x:hasUserPublicMetrics a owl:ObjectProperty ;
    rdfs:label "has user public metrics"@en ;
    rdfs:domain x:XUser ;
    rdfs:range x:XUserPublicMetrics ;
    rdfs:subPropertyOf abi:isCarrierOf ;
    owl:inverseOf x:isUserPublicMetricsOf ;
    skos:definition "Relates an X user account to the public account metrics artifact (followers, following, tweet, listed, like and media counts) exposed by the X v2 API."@en .

x:isCountBucketOf a owl:ObjectProperty ;
    rdfs:label "is count bucket of"@en ;
    rdfs:domain x:TweetCountBucket ;
    rdfs:range x:TweetCountResultSet ;
    rdfs:subPropertyOf abi:genericallyDependsOn ;
    owl:inverseOf x:containsCountBucket ;
    skos:definition "Relates a time-bucketed tweet count to a count result set it belongs to."@en .

x:isCountIntervalOf a owl:ObjectProperty ;
    rdfs:label "is count interval of"@en ;
    rdfs:domain x:CountInterval ;
    rdfs:range x:TweetCountBucket ;
    owl:inverseOf x:hasCountInterval ;
    skos:definition "Relates a count interval to the time-bucketed tweet count that occupies it."@en .

x:isCountResultProducedBy a owl:ObjectProperty ;
    rdfs:label "is count result produced by"@en ;
    rdfs:domain x:TweetCountResultSet ;
    rdfs:range abi:Process ;
    owl:inverseOf x:producesCountResult ;
    skos:definition "Relates a count result set to the process that produced it."@en .

x:isProducedBy a owl:ObjectProperty ;
    rdfs:label "is produced by"@en ;
    rdfs:domain x:SearchResultSet ;
    rdfs:range abi:Process ;
    owl:inverseOf x:producesSearchResult ;
    skos:definition "Relates a search result set to the process that produced it."@en .

x:isXUserAccountOf a owl:ObjectProperty ;
    rdfs:label "is X user account of"@en ;
    rdfs:domain x:XUser ;
    rdfs:range abi:Person ;
    rdfs:subPropertyOf abi:genericallyDependsOn ;
    owl:inverseOf x:hasXUserAccount ;
    skos:definition "Relates an X user account to the person on which it generically depends."@en .

x:searchEndedAt a owl:ObjectProperty ;
    rdfs:label "search ended at"@en ;
    rdfs:domain x:SearchInterval ;
    rdfs:range abi:TemporalInstant ;
    rdfs:subPropertyOf abi:hasLastInstant ;
    skos:definition "Relates a search interval to the temporal instant at which the search process completed."@en .

x:searchStartedAt a owl:ObjectProperty ;
    rdfs:label "search started at"@en ;
    rdfs:domain x:SearchInterval ;
    rdfs:range abi:TemporalInstant ;
    rdfs:subPropertyOf abi:hasFirstInstant ;
    skos:definition "Relates a search interval to the temporal instant at which the search process started."@en .

x:TweetLanguage a owl:Class ;
    rdfs:label "Tweet Language"@en ;
    rdfs:subClassOf [ a owl:Restriction ;
            owl:onProperty abi:inheresIn ;
            owl:someValuesFrom x:Tweet ],
        abi:Quality ;
    skos:definition "A quality of a tweet representing the natural language detected for its text content, expressed as an IETF BCP 47 language tag."@en ;
    skos:example "en",
        "fr",
        "es"@en .

x:XOntology a owl:Ontology ;
    abi:ontologyResource "ontologies/modules/XOntology.ttl" ;
    abi:pythonPackage "naas_abi_marketplace.applications.x" ;
    abi:pythonResource "ontologies/modules/XOntology.py" ;
    dc11:contributor "Alice Dupont" ;
    dc11:date "2026-06-02"^^xsd:date ;
    dc1:description "Ontology for the X (Twitter) domain. Models tweets — both those matching a query and the ReferencedTweet individuals pulled in as reply/quote/retweet context — along with X user accounts, media, context annotations, URL entities and public engagement metrics. The retrieval processes that produce these individuals live in sibling process ontologies: SearchRecentTweetsProcess (GET /2/tweets/search/recent) and CountRecentTweetsProcess (GET /2/tweets/counts/recent). SearchRecentTweetsProcess imports this ontology rather than the reverse, since it constrains its result sets over the Tweet and ReferencedTweet classes defined here."@en ;
    dc1:license <https://creativecommons.org/licenses/by/4.0/> ;
    dc1:title "X (Twitter) Ontology"@en ;
    rdfs:comment "Ontology for the X (Twitter) domain."@en ;
    rdfs:seeAlso x:SearchRecentTweetsProcess,
        <https://raw.githubusercontent.com/jupyter-naas/abi/refs/heads/main/libs/naas-abi-marketplace/naas_abi_marketplace/applications/x/ontologies/modules/XOntology.ttl> ;
    owl:imports abi:Ontology,
        abi:PersonOntology,
        x:CountRecentTweetsProcess .

x:hasCountInterval a owl:ObjectProperty ;
    rdfs:label "has count interval"@en ;
    rdfs:domain x:TweetCountBucket ;
    rdfs:range x:CountInterval ;
    rdfs:subPropertyOf abi:occupiesTemporalRegion ;
    owl:inverseOf x:isCountIntervalOf ;
    skos:definition "Relates a time-bucketed tweet count to the temporal interval it counts over (its bucket, carrying a first instant bucketStart and a last instant bucketEnd)."@en .

x:hasSearchQueryRole a owl:ObjectProperty ;
    rdfs:label "has search query role"@en ;
    rdfs:domain x:SearchQuery ;
    rdfs:range x:SearchQueryRole ;
    rdfs:subPropertyOf abi:bearerOf ;
    owl:inverseOf x:isSearchQueryRoleOf ;
    skos:definition "Relates a search query artifact to a search query role that concretizes it during search execution."@en .

x:isAttachedMediaOf a owl:ObjectProperty ;
    rdfs:label "is attached media of"@en ;
    rdfs:domain x:Media ;
    rdfs:range x:Tweet ;
    rdfs:subPropertyOf abi:genericallyDependsOn ;
    owl:inverseOf x:hasAttachedMedia ;
    skos:definition "Relates a media artifact to a tweet to which it is attached."@en .

x:isAuthoredBy a owl:ObjectProperty ;
    rdfs:label "is authored by"@en ;
    rdfs:domain x:Tweet ;
    rdfs:range x:XUser ;
    rdfs:subPropertyOf abi:genericallyDependsOn ;
    owl:inverseOf x:hasAuthoredTweet ;
    skos:definition "Relates a tweet to the X user account that authored it."@en .

x:isContextAnnotationOf a owl:ObjectProperty ;
    rdfs:label "is context annotation of"@en ;
    rdfs:domain x:ContextAnnotation ;
    rdfs:range x:Tweet ;
    rdfs:subPropertyOf abi:genericallyDependsOn ;
    owl:inverseOf x:hasContextAnnotation ;
    skos:definition "Relates a context annotation to a tweet it classifies."@en .

x:isPublicMetricsOf a owl:ObjectProperty ;
    rdfs:label "is public metrics of"@en ;
    rdfs:domain x:TweetPublicMetrics ;
    rdfs:range x:Tweet ;
    rdfs:subPropertyOf abi:genericallyDependsOn ;
    owl:inverseOf x:hasPublicMetrics ;
    skos:definition "Relates a public engagement metrics artifact to the tweet on which it depends."@en .

x:isSearchQueryRoleOf a owl:ObjectProperty ;
    rdfs:label "is search query role of"@en ;
    rdfs:domain x:SearchQueryRole ;
    rdfs:range x:SearchQuery ;
    rdfs:subPropertyOf abi:inheresIn ;
    owl:inverseOf x:hasSearchQueryRole ;
    skos:definition "Relates a search query role to the search query artifact in which it inheres."@en .

x:isUrlEntityOf a owl:ObjectProperty ;
    rdfs:label "is url entity of"@en ;
    rdfs:domain x:TweetUrl ;
    rdfs:range x:Tweet ;
    rdfs:subPropertyOf abi:genericallyDependsOn ;
    owl:inverseOf x:hasUrlEntity ;
    skos:definition "Relates a URL entity to a tweet whose text contains it."@en .

x:isUserPublicMetricsOf a owl:ObjectProperty ;
    rdfs:label "is user public metrics of"@en ;
    rdfs:domain x:XUserPublicMetrics ;
    rdfs:range x:XUser ;
    rdfs:subPropertyOf abi:genericallyDependsOn ;
    owl:inverseOf x:hasUserPublicMetrics ;
    skos:definition "Relates a public account metrics artifact to the X user account on which it depends."@en .

x:producesCountResult a owl:ObjectProperty ;
    rdfs:label "produces count result"@en ;
    rdfs:domain abi:Process ;
    rdfs:range x:TweetCountResultSet ;
    owl:inverseOf x:isCountResultProducedBy ;
    skos:definition "Relates a tweet-count process to the time-bucketed count result set it produces."@en .

x:producesSearchResult a owl:ObjectProperty ;
    rdfs:label "produces search result"@en ;
    rdfs:domain abi:Process ;
    rdfs:range x:SearchResultSet ;
    owl:inverseOf x:isProducedBy ;
    skos:definition "Relates a tweet-ingestion process to the search result set it produces."@en .

x:usesSearchQuery a owl:ObjectProperty ;
    rdfs:label "uses search query"@en ;
    rdfs:domain x:SearchRecentTweets ;
    rdfs:range x:SearchQuery ;
    rdfs:subPropertyOf abi:concretizes ;
    owl:inverseOf x:isSearchQueryOf ;
    skos:definition "Relates a recent-tweet search process to the search query artifact it executes against the X v2 API."@en .

x:SearchQueryRole a owl:Class ;
    rdfs:label "Search Query Role"@en ;
    rdfs:subClassOf [ a owl:Restriction ;
            owl:onProperty x:isSearchQueryRoleOf ;
            owl:someValuesFrom x:SearchQuery ],
        [ a owl:Restriction ;
            owl:allValuesFrom x:SearchQuery ;
            owl:onProperty x:isSearchQueryRoleOf ],
        abi:Role ;
    skos:definition "A role borne by a search query artifact in relation to a recent-tweet search process during which it is used as the query input."@en .

x:ReferencedTweet a owl:Class ;
    rdfs:label "Referenced Tweet"@en ;
    rdfs:subClassOf [ a owl:Restriction ;
            owl:onProperty x:isReferencedByTweet ;
            owl:someValuesFrom x:Tweet ],
        x:Tweet ;
    skos:altLabel "Context Tweet"@en ;
    skos:definition "A tweet that is referenced by another tweet — the reply parent, the quoted tweet or the retweeted original — and that a retrieval process returned only for that reason. Referenced tweets are what the X v2 `referenced_tweets.id` expansion resolves under `includes.tweets`: they did not themselves match the query that retrieved them, so they may fall outside its terms, its language filter or its time window, and they must not be counted as results of that query."@en ;
    skos:example "Tweet 2085369152244433088 ('What is the stupidest thing a large number of people believe in?'), returned as the reply parent of matched tweet 2085617548846924013 although it contains none of the query terms."@en .

x:SearchInterval a owl:Class ;
    rdfs:label "Search Interval"@en ;
    rdfs:subClassOf [ a owl:Restriction ;
            owl:onProperty x:searchStartedAt ;
            owl:someValuesFrom abi:TemporalInstant ],
        [ a owl:Restriction ;
            owl:allValuesFrom abi:TemporalInstant ;
            owl:onProperty x:searchStartedAt ],
        [ a owl:Restriction ;
            owl:onProperty x:searchEndedAt ;
            owl:someValuesFrom abi:TemporalInstant ],
        [ a owl:Restriction ;
            owl:allValuesFrom abi:TemporalInstant ;
            owl:onProperty x:searchEndedAt ],
        abi:TemporalRegion ;
    skos:definition "A one-dimensional temporal region that bounds a SearchRecentTweets process, from the start of the API call sequence to its completion."@en ;
    skos:example "Search interval from 2026-06-02T19:15:00Z to 2026-06-02T19:15:50Z"@en .

x:referencesTweet a owl:ObjectProperty ;
    rdfs:label "references tweet"@en ;
    rdfs:domain x:Tweet ;
    rdfs:range x:Tweet ;
    skos:definition "Relates a tweet to another tweet it references (reply, quote or retweet), as exposed by the X v2 `referenced_tweets` field."@en .

x:CountInterval a owl:Class ;
    rdfs:label "Count Interval"@en ;
    rdfs:subClassOf [ a owl:Restriction ;
            owl:onProperty x:isCountIntervalOf ;
            owl:someValuesFrom x:TweetCountBucket ],
        abi:TemporalRegion ;
    skos:altLabel "Count Time Bucket Interval"@en ;
    skos:definition "A one-dimensional temporal region bounding a single tweet-count bucket, from the inclusive start of the bucket (bucket_start) to its exclusive end (bucket_end). For hourly granularity this is a round clock hour."@en ;
    skos:example "Count interval from 2026-07-07T14:00:00Z to 2026-07-07T15:00:00Z."@en .

x:TweetCountBucket a owl:Class ;
    rdfs:label "Tweet Count Bucket"@en ;
    rdfs:subClassOf [ a owl:Restriction ;
            owl:onProperty x:isCountBucketOf ;
            owl:someValuesFrom x:TweetCountResultSet ],
        [ a owl:Restriction ;
            owl:onProperty x:hasCountInterval ;
            owl:someValuesFrom x:CountInterval ],
        [ a owl:Restriction ;
            owl:allValuesFrom x:CountInterval ;
            owl:onProperty x:hasCountInterval ],
        abi:GenericallyDependentContinuant ;
    skos:altLabel "Tweet Count Time Bucket"@en ;
    skos:definition "A generically dependent continuant representing the number of tweets matching a query during a single time bucket (minute, hour or day), as exposed by an entry of the X v2 GET /2/tweets/counts/recent `data` array. It carries a bucket_tweet_count and occupies exactly one CountInterval."@en ;
    skos:example "247 tweets for the hourly bucket 2026-07-07T14:00:00Z→2026-07-07T15:00:00Z."@en .

x:ContextAnnotation a owl:Class ;
    rdfs:label "Context Annotation"@en ;
    rdfs:subClassOf [ a owl:Restriction ;
            owl:onProperty x:isContextAnnotationOf ;
            owl:someValuesFrom x:Tweet ],
        [ a owl:Restriction ;
            owl:allValuesFrom x:Tweet ;
            owl:onProperty x:isContextAnnotationOf ],
        abi:GenericallyDependentContinuant ;
    skos:definition "A generically dependent continuant representing a domain/entity classification pair inferred for a tweet by the X platform, as exposed by the X v2 `context_annotations` field."@en ;
    skos:example "domain 'Political Body' (88) / entity 'North Atlantic Treaty Organization' (1016738021939351558)"@en .

x:SearchRecentTweets a owl:Class ;
    rdfs:label "Search Recent Tweets"@en ;
    rdfs:subClassOf [ a owl:Restriction ;
            owl:onProperty x:producesSearchResult ;
            owl:someValuesFrom x:SearchResultSet ],
        [ a owl:Restriction ;
            owl:allValuesFrom x:SearchResultSet ;
            owl:onProperty x:producesSearchResult ],
        [ a owl:Restriction ;
            owl:onProperty x:hasSearchInterval ;
            owl:someValuesFrom x:SearchInterval ],
        [ a owl:Restriction ;
            owl:allValuesFrom x:SearchInterval ;
            owl:onProperty x:hasSearchInterval ],
        [ a owl:Restriction ;
            owl:allValuesFrom x:Tweet ;
            owl:onProperty x:retrievesTweet ],
        [ a owl:Restriction ;
            owl:allValuesFrom x:ReferencedTweet ;
            owl:onProperty x:retrievesReferencedTweet ],
        [ a owl:Restriction ;
            owl:allValuesFrom x:XUser ;
            owl:onProperty x:retrievesUser ],
        [ a owl:Restriction ;
            owl:allValuesFrom x:Media ;
            owl:onProperty x:retrievesMedia ],
        [ a owl:Restriction ;
            owl:allValuesFrom x:XPlatform ;
            owl:onProperty abi:occursIn ],
        [ a owl:Restriction ;
            owl:onProperty x:usesSearchQuery ;
            owl:someValuesFrom x:SearchQuery ],
        [ a owl:Restriction ;
            owl:allValuesFrom x:SearchQuery ;
            owl:onProperty x:usesSearchQuery ],
        abi:Process ;
    skos:altLabel "Recent Tweet Search"@en ;
    skos:definition "A process by which the X v2 GET /2/tweets/search/recent endpoint is queried to retrieve tweets posted in the last seven days that match a given query and parameter set; the process consumes a SearchQuery and produces a SearchResultSet. It retrieves two populations: the Tweet individuals that matched the query, and the ReferencedTweet individuals the expansions pulled in as context for those matches."@en ;
    skos:example "A search for query '(openai OR anthropic) lang:en -is:retweet' executed on 2026-08-07 producing result set 21dcaa8c with 28 matched tweets and 12 referenced tweets."@en .

x:TweetPublicMetrics a owl:Class ;
    rdfs:label "Tweet Public Metrics"@en ;
    rdfs:subClassOf [ a owl:Restriction ;
            owl:onProperty x:isPublicMetricsOf ;
            owl:someValuesFrom x:Tweet ],
        [ a owl:Restriction ;
            owl:allValuesFrom x:Tweet ;
            owl:onProperty x:isPublicMetricsOf ],
        abi:GenericallyDependentContinuant ;
    skos:definition "A generically dependent continuant representing the public engagement metrics of a tweet (retweet, reply, like, quote, bookmark and impression counts) as exposed by the X v2 API at a point in time."@en ;
    skos:example "retweet_count: 0, reply_count: 0, like_count: 1, quote_count: 0, bookmark_count: 0, impression_count: 37"@en .

x:TweetUrl a owl:Class ;
    rdfs:label "Tweet URL"@en ;
    rdfs:subClassOf [ a owl:Restriction ;
            owl:onProperty x:isUrlEntityOf ;
            owl:someValuesFrom x:Tweet ],
        [ a owl:Restriction ;
            owl:allValuesFrom x:Tweet ;
            owl:onProperty x:isUrlEntityOf ],
        abi:GenericallyDependentContinuant ;
    skos:altLabel "URL Entity"@en ;
    skos:definition "A generically dependent continuant representing a URL contained in the text of a tweet, with its expanded and display forms and any unrolled page title/description, as exposed by the X v2 `entities.urls` field."@en ;
    skos:example "https://t.co/EzUWbYROqa expanding to https://turdef.com/article/efes-2026-turkiye-to-nato-or-nato-to-turkiye"@en .

x:XUserPublicMetrics a owl:Class ;
    rdfs:label "X User Public Metrics"@en ;
    rdfs:subClassOf [ a owl:Restriction ;
            owl:onProperty x:isUserPublicMetricsOf ;
            owl:someValuesFrom x:XUser ],
        [ a owl:Restriction ;
            owl:allValuesFrom x:XUser ;
            owl:onProperty x:isUserPublicMetricsOf ],
        abi:GenericallyDependentContinuant ;
    skos:definition "A generically dependent continuant representing the public account metrics of an X user (followers, following, tweet, listed, like and media counts) as exposed by the X v2 API at a point in time."@en ;
    skos:example "followers_count: 7309, following_count: 2591, tweet_count: 7080, listed_count: 89, like_count: 810, media_count: 1915"@en .

x:Media a owl:Class ;
    rdfs:label "Media"@en ;
    rdfs:subClassOf [ a owl:Restriction ;
            owl:onProperty x:isAttachedMediaOf ;
            owl:someValuesFrom x:Tweet ],
        [ a owl:Restriction ;
            owl:allValuesFrom x:Tweet ;
            owl:onProperty x:isAttachedMediaOf ],
        abi:GenericallyDependentContinuant ;
    skos:altLabel "Tweet Media"@en ;
    skos:definition "A generically dependent continuant representing a media artifact (photo, video or animated gif) attached to a tweet, identified by a media key and resolved through the X v2 `attachments.media_keys` expansion."@en ;
    skos:example "media_key 13_2063731151118766080, a 1920x1080 video of 69149 ms"@en .

x:TweetCountResultSet a owl:Class ;
    rdfs:label "Tweet Count Result Set"@en ;
    rdfs:subClassOf [ a owl:Restriction ;
            owl:onProperty x:isCountResultProducedBy ;
            owl:someValuesFrom x:CountRecentTweets ],
        [ a owl:Restriction ;
            owl:allValuesFrom x:TweetCountBucket ;
            owl:onProperty x:containsCountBucket ],
        abi:GenericallyDependentContinuant ;
    skos:altLabel "Recent Tweet Count Result"@en ;
    skos:definition "A generically dependent continuant representing the time-bucketed counts returned by a CountRecentTweets process for a given query, granularity and time window, persisted as a JSON envelope in the local datastore. It carries the summed total_tweet_count and one TweetCountBucket per time bucket."@en ;
    skos:example "Count result set for query '(openai OR anthropic) lang:en -is:retweet' at hourly granularity over 2026-07-01→2026-07-08, totalling 12040 tweets across 168 hourly buckets."@en .

x:SearchResultSet a owl:Class ;
    rdfs:label "Search Result Set"@en ;
    rdfs:subClassOf [ a owl:Restriction ;
            owl:onProperty x:isProducedBy ;
            owl:someValuesFrom x:SearchRecentTweets ],
        [ a owl:Restriction ;
            owl:allValuesFrom x:Tweet ;
            owl:onProperty x:containsTweet ],
        [ a owl:Restriction ;
            owl:allValuesFrom x:ReferencedTweet ;
            owl:onProperty x:containsReferencedTweet ],
        abi:GenericallyDependentContinuant ;
    skos:altLabel "Tweet Search Result"@en ;
    skos:definition "A generically dependent continuant representing the response returned by a SearchRecentTweets process for a given query and parameter set, persisted as a JSON envelope in the local datastore. It carries two distinct populations: the tweets that matched the query (x:containsTweet, counted by result_count) and the referenced tweets pulled in by expansions to give those matches their conversational context (x:containsReferencedTweet, counted by referenced_count)."@en ;
    skos:example "Result set 21dcaa8c containing 28 matched tweets plus 12 referenced tweets returned for query '(openai OR anthropic) lang:en -is:retweet' on 2026-08-07"@en .

x:SearchQuery a owl:Class ;
    rdfs:label "Search Query"@en ;
    rdfs:subClassOf [ a owl:Restriction ;
            owl:onProperty x:hasSearchQueryRole ;
            owl:someValuesFrom x:SearchQueryRole ],
        [ a owl:Restriction ;
            owl:allValuesFrom x:SearchQueryRole ;
            owl:onProperty x:hasSearchQueryRole ],
        abi:GenericallyDependentContinuant ;
    skos:altLabel "Recent Tweet Search Query"@en ;
    skos:definition "A generically dependent continuant representing an X v2 recent-tweet search query expression and its parameters, used as input to a SearchRecentTweets process."@en ;
    skos:example "query='(from:TwitterDev OR from:TwitterAPI) has:media -is:retweet', max_results=100, sort_order='recency'"@en .

x:XUser a owl:Class ;
    rdfs:label "X User"@en ;
    rdfs:subClassOf [ a owl:Restriction ;
            owl:allValuesFrom abi:Person ;
            owl:onProperty x:isXUserAccountOf ],
        [ a owl:Restriction ;
            owl:allValuesFrom x:XUserPublicMetrics ;
            owl:onProperty x:hasUserPublicMetrics ],
        abi:GenericallyDependentContinuant ;
    skos:altLabel "Twitter User"@en,
        "X Account"@en ;
    skos:definition "A generically dependent continuant representing a user account on the X (Twitter) platform, carrying the identity of a person within X and identified by a numeric author id."@en ;
    skos:example "Account with id 1752407607820607488",
        "@TwitterDev"@en .

x:Tweet a owl:Class ;
    rdfs:label "Tweet"@en ;
    rdfs:subClassOf [ a owl:Restriction ;
            owl:allValuesFrom x:XUser ;
            owl:onProperty x:mentionsUser ],
        [ a owl:Restriction ;
            owl:allValuesFrom x:XUser ;
            owl:onProperty x:inReplyToUser ],
        [ a owl:Restriction ;
            owl:allValuesFrom x:Tweet ;
            owl:onProperty x:referencesTweet ],
        [ a owl:Restriction ;
            owl:onProperty x:tweetedAt ;
            owl:someValuesFrom abi:TemporalInstant ],
        [ a owl:Restriction ;
            owl:onProperty x:isAuthoredBy ;
            owl:someValuesFrom x:XUser ],
        [ a owl:Restriction ;
            owl:allValuesFrom x:XUser ;
            owl:onProperty x:isAuthoredBy ],
        [ a owl:Restriction ;
            owl:allValuesFrom x:TweetPublicMetrics ;
            owl:onProperty x:hasPublicMetrics ],
        [ a owl:Restriction ;
            owl:allValuesFrom x:TweetLanguage ;
            owl:onProperty x:hasLanguage ],
        [ a owl:Restriction ;
            owl:allValuesFrom x:Media ;
            owl:onProperty x:hasAttachedMedia ],
        [ a owl:Restriction ;
            owl:allValuesFrom x:ContextAnnotation ;
            owl:onProperty x:hasContextAnnotation ],
        [ a owl:Restriction ;
            owl:allValuesFrom x:TweetUrl ;
            owl:onProperty x:hasUrlEntity ],
        abi:GenericallyDependentContinuant ;
    skos:altLabel "Post"@en,
        "X Post"@en ;
    skos:definition "A generically dependent continuant representing an individual post published on the X (Twitter) platform, identified by a numeric tweet id and bearing text content, language, creation timestamp, and public engagement metrics as exposed by the X v2 API."@en ;
    skos:example "Tweet 2061859064825446876 by author 1752407607820607488 about Roland Garros"@en .

