Hello,

I am executing the following count(*) query multiple times for a sliding
date range i.e. count for 1st September, 2nd September etc. Can anyone
suggest a more efficient way of doing this since I have to execute the
query a substantial number of times?

PREFIX xsd:    <http://www.w3.org/2001/XMLSchema#>
SELECT (count(*) as ?count) WHERE
{
?x <http://dateTime> ?datetime
FILTER ( "2013-08-02T00:00:00+01:00"^^xsd:dateTime > ?datetime && ?datetime
> "2013-08-01T00:00:00+01:00"^^xsd:dateTime)
}

Many Thanks.

Reply via email to