[Mulgara-general] Optimizing variable-graph queries

Alex Hall alexhall at revelytix.com
Sat Nov 7 15:04:09 UTC 2009


Paul Gearon wrote:
> I'm curious, doesn't the following query work?
> 
> SELECT ?graph ?item ?timestamp
> WHERE {
>   GRAPH ?graph {
>     ?item :hasTimestamp ?timestamp .
>     // other criteria to identify the records of interest
>   }
> }
> ORDER BY DESC(?timestamp) LIMIT 50
> 
> (ie. no FROM or FROM NAMED)
> 
> I know that I originally coded SPARQL so that this would *not* work,
> but Andy assured me that it should, so I thought I went back and did
> it correctly. If it doesn't work, then please let me know.

It does now that I've fixed the bug in ConstraintIn. :-)

-Alex



More information about the Mulgara-general mailing list