Search Recent Tweets
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.
Hierarchyβ
Position of Search Recent Tweets in the class hierarchy: its ancestors and direct subclasses.
- entity (BFO)
- occurrent (BFO)
- process (ABI)
- Search Recent Tweets (App)
- process (ABI)
- occurrent (BFO)
Propertiesβ
Declared on this classβ
| Property | Domain β Range | Details |
|---|---|---|
| executed atobject | Domain β RangeSearch Recent Tweets to temporal instant | |
| ||
| executed byobject | Domain β RangeSearch Recent Tweets to X User | |
| ||
| retrieves mediaobject | Domain β RangeSearch Recent Tweets to Media | |
| ||
| retrieves referenced tweetobject | Domain β RangeSearch Recent Tweets to Referenced Tweet | |
| ||
| retrieves tweetobject | Domain β RangeSearch Recent Tweets to Tweet | |
| ||
| retrieves userobject | Domain β RangeSearch Recent Tweets to X User | |
| ||
| uses search queryobject | Domain β RangeSearch Recent Tweets to Search Query | |
| ||
Inherited propertiesβ
From Process (13)
8 of 13 properties declared on process, where all of them are listed.
| Property | Domain β Range | Details |
|---|---|---|
| created at | Domain β Rangeprocess to temporal instant | |
| created by | Domain β Rangeprocess to any | |
| created for | Domain β Rangeprocess to Person | |
| creates | Domain β Rangeprocess to generically dependent continuant | |
| deletes | Domain β Rangeprocess to generically dependent continuant | |
| has search interval | Domain β Rangeprocess to Search Interval | |
| is preceded by | Domain β Rangeprocess to process | |
| occurs in | Domain β Rangeprocess to User Site |
From Occurrent (8)
Declared on occurrent.
| Property | Domain β Range | Details |
|---|---|---|
| caused by | Domain β Rangeoccurrent to occurrent | |
| has occurrent part | Domain β Rangeoccurrent to occurrent | |
| has temporal part | Domain β Rangeoccurrent to occurrent | |
| is cause of | Domain β Rangeoccurrent to occurrent | |
| occurrent part of | Domain β Rangeoccurrent to occurrent | |
| preceded by | Domain β Rangeoccurrent to occurrent | |
| precedes | Domain β Rangeoccurrent to occurrent | |
| temporal part of | Domain β Rangeoccurrent to occurrent |
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 Search Recent Tweets is a subclass of:
- retrieves media only Media
- retrieves referenced tweet only Referenced Tweet
- has search interval only Search Interval
- has search interval some Search Interval
- uses search query only Search Query
- uses search query some Search Query
- produces search result only Search Result Set
- produces search result some Search Result Set
- retrieves tweet only Tweet
- occurs in only X Platform
- retrieves user only X User
Examplesβ
- 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.
@prefix abi: <http://ontology.naas.ai/abi/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix ex: <https://example.org/> .
ex:searchRecentTweets1 a <http://ontology.naas.ai/x/SearchRecentTweets> ; # Search Recent Tweets
rdfs:label "Example Search Recent Tweets" ;
<http://ontology.naas.ai/x/executedAt> ex:temporalInstant1 ; # executed at
<http://ontology.naas.ai/x/executedBy> ex:xUser1 . # executed by
ex:temporalInstant1 a abi:TemporalInstant . # temporal instant
ex:xUser1 a <http://ontology.naas.ai/x/XUser> . # X User
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
# Instances of Search Recent Tweets, including instances of its subclasses
SELECT ?item ?label WHERE {
?item a/rdfs:subClassOf* <http://ontology.naas.ai/x/SearchRecentTweets> .
OPTIONAL { ?item rdfs:label ?label }
}
LIMIT 100
Relatedβ
Sibling classesβ
Used in ABIβ
Search Recent Tweets is referenced in 1 file of jupyter-naas/abi (revision 56f86c1): 1 query file, across the x module.
In SPARQL queriesβ
- XSparqlQueries (
x): queried byfind_recent_tweets_for_query,find_tweets_by_search_queryandlist_ingested_search_queries.