Tweet
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.
Hierarchyβ
Position of Tweet in the class hierarchy: its ancestors and direct subclasses.
- entity (BFO)
- continuant (BFO)
- generically dependent continuant (ABI)
- Tweet (App)
- Referenced Tweet (App)
- Tweet (App)
- generically dependent continuant (ABI)
- continuant (BFO)
Propertiesβ
Declared on this classβ
| Property | Domain β Range | Details |
|---|---|---|
| card uridatatype | Domain β RangeTweet to xsd:string | |
| ||
| conversation iddatatype | Domain β RangeTweet to xsd:string | |
| ||
| edit history tweet iddatatype | Domain β RangeTweet to xsd:string | |
| ||
| full textdatatype | Domain β RangeTweet to xsd:string | |
| ||
| has attached mediaobject | Domain β RangeTweet to Media | |
| ||
| has context annotationobject | Domain β RangeTweet to Context Annotation | |
| ||
| has languageobject | Domain β RangeTweet to Tweet Language | |
| ||
| has public metricsobject | Domain β RangeTweet to Tweet Public Metrics | |
| ||
| has url entityobject | Domain β RangeTweet to Tweet URL | |
| ||
| in reply to userobject | Domain β RangeTweet to X User | |
| ||
| is authored byobject | Domain β RangeTweet to X User | |
| ||
| is contained in search result setobject | Domain β RangeTweet to Search Result Set | |
| ||
| is referenced by tweetobject | Domain β RangeTweet to Tweet | |
| ||
| mentions userobject | Domain β RangeTweet to X User | |
| ||
| paid partnershipdatatype | Domain β RangeTweet to xsd:boolean | |
| ||
| possibly sensitivedatatype | Domain β RangeTweet to xsd:boolean | |
| ||
| quotes tweetobject | Domain β RangeTweet to Tweet | |
| ||
| references tweetobject | Domain β RangeTweet to Tweet | |
| ||
| replies to tweetobject | Domain β RangeTweet to Tweet | |
| ||
| reply settingsdatatype | Domain β RangeTweet to xsd:string | |
| ||
| retweets tweetobject | Domain β RangeTweet to Tweet | |
| ||
| tweet created atdatatype | Domain β RangeTweet to xsd:dateTime | |
| ||
| tweet iddatatype | Domain β RangeTweet to xsd:string | |
| ||
| tweet textdatatype | Domain β RangeTweet to xsd:string | |
| ||
| tweeted atobject | Domain β RangeTweet to temporal instant | |
| ||
| urldatatype | Domain β RangeTweet, Tweet URL to xsd:string | |
| ||
Inherited propertiesβ
From Generically dependent continuant (7)
Declared on generically dependent continuant.
| Property | Domain β Range | Details |
|---|---|---|
| has part | Domain β Rangegenerically dependent continuant to generically dependent continuant | |
| is about | Domain β Rangegenerically dependent continuant to any | |
| is created by | Domain β Rangegenerically dependent continuant to process | |
| is deleted by | Domain β Rangegenerically dependent continuant to process | |
| is part of | Domain β Rangegenerically dependent continuant to generically dependent continuant | |
| is sourced from | Domain β Rangegenerically dependent continuant to Profile Document | |
| is updated by | Domain β Rangegenerically dependent continuant to process |
From Continuant (6)
Declared on continuant.
| Property | Domain β Range | Details |
|---|---|---|
| continuant part of | Domain β Rangecontinuant to continuant | |
| has continuant part | Domain β Rangecontinuant to continuant | |
| is affected by | Domain β Rangecontinuant to process | |
| is input of | Domain β Rangecontinuant to process | |
| is object of | Domain β Rangecontinuant to process | |
| is output of | Domain β Rangecontinuant to process |
From Entity (15)
8 of 15 properties declared on entity, where all of them are listed.
| Property | Domain β Range | Details |
|---|---|---|
| condition described by | Domain β Rangeentity to Performance Specification | |
| data property | Domain β Rangeentity to xsd:string | |
| described by | Domain β Rangeentity to Descriptive Information Content Entity | |
| designated by | Domain β Rangeentity to Designative Information Content Entity | |
| exists at | Domain β Rangeentity to temporal region | |
| has backing data source | Domain β Rangeentity to Data Source | |
| has nebari class | Domain β Rangeentity to Nebari Class | |
| is measured by | Domain β Rangeentity to Measurement Information Content Entity |
Used as the range ofβ
Logical axiomsβ
Restrictionsβ
Every Tweet is a subclass of:
- tweeted at some temporal instant
- has context annotation only Context Annotation
- has attached media only Media
- references tweet only Tweet
- has language only Tweet Language
- has public metrics only Tweet Public Metrics
- has url entity only Tweet URL
- in reply to user only X User
- is authored by only X User
- is authored by some X User
- mentions user only X User
Examplesβ
- Tweet 2061859064825446876 by author 1752407607820607488 about Roland Garros
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix ex: <https://example.org/> .
ex:tweet1 a <http://ontology.naas.ai/x/Tweet> ; # Tweet
rdfs:label "Example Tweet" ;
<http://ontology.naas.ai/x/card_uri> "Example" ; # card uri
<http://ontology.naas.ai/x/conversation_id> "Example" . # conversation id
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
# Instances of Tweet, including instances of its subclasses
SELECT ?item ?label WHERE {
?item a/rdfs:subClassOf* <http://ontology.naas.ai/x/Tweet> .
OPTIONAL { ?item rdfs:label ?label }
}
LIMIT 100
Relatedβ
Sibling classesβ
- Academic Degree
- Agent
- Agent Intent
- Agent Tool
- AI Model
- Artifact Category
- Authentication Status
- Certification
- Configuration Setting
- Context Annotation
- Conversation
- Document Content Entity
And 42 more under generically dependent continuant.
Used in ABIβ
Tweet is referenced in 2 files of jupyter-naas/abi (revision 56f86c1): 1 process and 1 query file, across the x module.
In processesβ
- XSearchRecentTweetsProcess (
x): in the axioms of Search Recent Tweets and Search Result Set; domain of Is contained in search result set; range of Contains tweet and Retrieves tweet.
In SPARQL queriesβ
- XSparqlQueries (
x): queried byfind_language_distribution,find_recent_tweets_for_query,find_top_authors_by_tweet_count,find_top_engaging_tweets,find_top_impression_tweetsand 10 more.
Modeling guideβ
A Tweet, in the ABI X (Twitter) application ontology, is one post published on X. It is information, a generically dependent continuant: the same post exists in every copy of it. Its data properties mirror the X v2 API fields (tweet id, tweet text, tweet created at, conversation id). Its author is an X user account (is authored by), which can in turn be the account of a person. Engagement counts are not on the tweet itself but on a separate tweet public metrics node (has public metrics), and replies, quotes and retweets are links between tweets (replies to tweet, quotes tweet, retweets tweet).
When to use itβ
- For posts ingested from the X API, one individual per tweet id.
- Read counts (likes, retweets, replies, impressions) through
has public metrics, as the X SPARQL queries do. - A tweet kept only as context for another one (the parent of a reply, a quoted or retweeted original) is also typed referenced tweet; the ranking queries exclude those.
Turtle exampleβ
@prefix x: <http://ontology.naas.ai/x/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix ex: <https://example.org/> .
ex:tweet1 a x:Tweet ;
x:tweet_id "1790000000000000001" ;
x:tweet_text "Shipping a new release of our ontology today." ;
x:tweet_created_at "2026-05-12T09:30:00Z"^^xsd:dateTime ;
x:isAuthoredBy ex:account ;
x:hasPublicMetrics ex:tweet1Metrics .
ex:account a x:XUser ;
x:author_id "12345" ;
x:username "example_account" .
ex:tweet1Metrics a x:TweetPublicMetrics ;
x:like_count 42 ;
x:retweet_count 7 ;
x:reply_count 3 .
# A reply to it.
ex:tweet2 a x:Tweet ;
x:tweet_id "1790000000000000002" ;
x:repliesToTweet ex:tweet1 .
SPARQL exampleβ
PREFIX x: <http://ontology.naas.ai/x/>
# Most-liked tweets, without the referenced (context-only) ones
# (as in the X module's find_top_liked_tweets query).
SELECT ?tweet ?text ?likes ?username WHERE {
?tweet a x:Tweet ;
x:hasPublicMetrics ?metrics .
FILTER NOT EXISTS { ?tweet a x:ReferencedTweet }
?metrics x:like_count ?likes .
OPTIONAL { ?tweet x:tweet_text ?text }
OPTIONAL { ?tweet x:isAuthoredBy ?author . ?author x:username ?username }
}
ORDER BY DESC(?likes)
LIMIT 10