antoniogarrote / rdfstore-js

JS RDF store with SPARQL support
MIT License
564 stars 109 forks source link

SELECT * WHERE { } should return one result #127

Open datokrat opened 8 years ago

datokrat commented 8 years ago

SELECT * WHERE { } doesn't match any result. Normally, it should: https://www.w3.org/TR/rdf-sparql-query/#emptyGroupPattern

This simple case really doesn't bother me but in consequence, SELECT * WHERE { { ?s ?p ?o } . {} } will fail, too. This case can occur with computer-generated queries in which there simply are no restrictions.

datokrat commented 8 years ago

An example of this issue is also "INSERT { ... } WHERE {}" which should be equivalent to "INSERT DATA { ... }", shouldn't it?