Skip to main content

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.

ApplicationsClassAlso known asRecent Tweet Search
IRI
http://ontology.naas.ai/x/SearchRecentTweets
Parent class
process
Module
x Β· Applications

Hierarchy​

Position of Search Recent Tweets in the class hierarchy: its ancestors and direct subclasses.

Properties​

Declared on this class​

Properties declared on Search Recent Tweets
PropertyDomain β†’ RangeDetails
executed atobjectDomain β†’ RangeSearch Recent Tweets to temporal instant
executed byobjectDomain β†’ RangeSearch Recent Tweets to X User
retrieves mediaobjectDomain β†’ RangeSearch Recent Tweets to Media
retrieves referenced tweetobjectDomain β†’ RangeSearch Recent Tweets to Referenced Tweet
retrieves tweetobjectDomain β†’ RangeSearch Recent Tweets to Tweet
retrieves userobjectDomain β†’ RangeSearch Recent Tweets to X User
uses search queryobjectDomain β†’ RangeSearch Recent Tweets to Search Query

Inherited properties​

From Process (13)

8 of 13 properties declared on process, where all of them are listed.

Properties inherited from process
PropertyDomain β†’ RangeDetails
created atDomain β†’ Rangeprocess to temporal instant
created byDomain β†’ Rangeprocess to any
created forDomain β†’ Rangeprocess to Person
createsDomain β†’ Rangeprocess to generically dependent continuant
deletesDomain β†’ Rangeprocess to generically dependent continuant
has search intervalDomain β†’ Rangeprocess to Search Interval
is preceded byDomain β†’ Rangeprocess to process
occurs inDomain β†’ Rangeprocess to User Site
From Occurrent (8)

Declared on occurrent.

Properties inherited from occurrent
PropertyDomain β†’ RangeDetails
caused byDomain β†’ Rangeoccurrent to occurrent
has occurrent partDomain β†’ Rangeoccurrent to occurrent
has temporal partDomain β†’ Rangeoccurrent to occurrent
is cause ofDomain β†’ Rangeoccurrent to occurrent
occurrent part ofDomain β†’ Rangeoccurrent to occurrent
preceded byDomain β†’ Rangeoccurrent to occurrent
precedesDomain β†’ Rangeoccurrent to occurrent
temporal part ofDomain β†’ Rangeoccurrent to occurrent
From Entity (15)

8 of 15 properties declared on entity, where all of them are listed.

Properties inherited from entity
PropertyDomain β†’ RangeDetails
condition described byDomain β†’ Rangeentity to Performance Specification
data propertyDomain β†’ Rangeentity to xsd:string
described byDomain β†’ Rangeentity to Descriptive Information Content Entity
designated byDomain β†’ Rangeentity to Designative Information Content Entity
exists atDomain β†’ Rangeentity to temporal region
has backing data sourceDomain β†’ Rangeentity to Data Source
has nebari classDomain β†’ Rangeentity to Nebari Class
is measured byDomain β†’ Rangeentity to Measurement Information Content Entity

Used as the range of​

Logical axioms​

Restrictions​

Every Search Recent Tweets is a subclass of:

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.
Turtle
@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
SPARQL
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

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 by find_recent_tweets_for_query, find_tweets_by_search_query and list_ingested_search_queries.