SPARQL Examples – Date Range

An example SPARQL query filtering for resources within a given date range (between two given dates).

PREFIX c: <https://carbonldp.com/ns/v1/platform#> SELECT ?document ?createdDate WHERE { ?document c:created ?createdDate FILTER (?createdDate < "2017-04-18T22:29:33.667Z"^^xsd:dateTime && ?createdDate > "2017-04-18T21:37:37.708Z"^^xsd:dateTime) } LIMIT 100