sage-org / sage-client

🦄 JS client for evaluating SPARQL queries against a SaGe server
MIT License
3 stars 5 forks source link

incomplete results for Optional Query #8

Closed momo54 closed 5 years ago

momo54 commented 5 years ago

When executing the following query:

prefix dbo: <http://dbpedia.org/ontology/>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix dbp: <http://dbpedia.org/property/>

SELECT ?person ?name ?deathDate WHERE {
  ?person a dbo:Artist;
    rdfs:label ?name;
    dbo:birthPlace [ rdfs:label "York"@en ].
  OPTIONAL { ?person dbp:dateOfDeath ?deathDate. }
}

Get only 8 results on 31...

Callidon commented 5 years ago

Cause: the query engine doesn't output bindings that don't join with the OPTIONAL.

Callidon commented 5 years ago

Fixed in 90cde1c0620087e40d933420d0bcbb40242d6885