Skip to main content

Granularity

The time-bucket size requested from the X v2 counts endpoint: 'minute', 'hour' or 'day'; sent as the `granularity` parameter.

ApplicationsDatatype property
IRI
http://ontology.naas.ai/x/granularity
Module
x · Applications

Domain and range​

Domain
Tweet Count Result Set
Range
xsd:string

Examples​

  • day
  • hour
Turtle
@prefix ex: <https://example.org/> .

ex:tweetCountResultSet1 a <http://ontology.naas.ai/x/TweetCountResultSet> . # Tweet Count Result Set

ex:tweetCountResultSet1 <http://ontology.naas.ai/x/granularity> "Example" . # granularity
SPARQL

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