Skip to main content

Query string

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.

ApplicationsDatatype property
IRI
http://ontology.naas.ai/x/query_string
Module
x ยท Applications

Domain and rangeโ€‹

Domain
Search Query, Tweet Count Result Set
Range
xsd:string

Examplesโ€‹

  • (from:TwitterDev OR from:TwitterAPI) has:media -is:retweet
  • (openai OR anthropic) lang:en -is:retweet
Turtle
@prefix ex: <https://example.org/> .

ex:subject1 <http://ontology.naas.ai/x/query_string> "Example" . # query string
SPARQL

# Pairs linked by "query string"
SELECT ?subject ?object WHERE {
?subject <http://ontology.naas.ai/x/query_string> ?object .
}
LIMIT 100

Used in ABIโ€‹

Query string 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_post_count_timeseries, find_recent_post_count, find_recent_tweets_for_query, find_tweets_by_search_query, list_followed_count_queries and 1 more.