I tried to use the LIMIT clause in SPARQL but it does not seem to work. The following query lists all triples in the database:
SELECT *
WHERE { ?s ?p ?o }
LIMIT 1
Is this SPARQL feature not supported? I did implement some Rete prototypes for my PhD (without anything like LIMIT) so I am very curious about the reason behind this. I suspect the Rete network for a query withLIMIT would require the same amount of memory as a query withoutLIMIT which would pretty much destroy the advantage of using it. (Incrementally maintaining minimum and maximum values is also pretty difficult, i.e. it cannot be done with constant memory.)
I tried to use the
LIMIT
clause in SPARQL but it does not seem to work. The following query lists all triples in the database:Is this SPARQL feature not supported? I did implement some Rete prototypes for my PhD (without anything like
LIMIT
) so I am very curious about the reason behind this. I suspect the Rete network for a query withLIMIT
would require the same amount of memory as a query withoutLIMIT
which would pretty much destroy the advantage of using it. (Incrementally maintaining minimum and maximum values is also pretty difficult, i.e. it cannot be done with constant memory.)