aaltodsg / instans

Incremental Engine for Standing SPARQL
MIT License
10 stars 1 forks source link

LIMIT does not work #36

Open szarnyasg opened 8 years ago

szarnyasg commented 8 years ago

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 with LIMIT would require the same amount of memory as a query without LIMIT 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.)