New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nameservice hides some results #403
Comments
You are absolutely right. It currently does not have an optional for efficiency reasons and because the OPTIONAL is not yet 100% correct. This will hopefully change soon. Do you need this for anything or is this just something that occurred to you? |
Not needed. Just unexpected behavior. |
The problem occurs more often than I thought. Check the following example: PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?wife ?child WHERE {
wd:Q35332 wdt:P26 ?wife .
OPTIONAL { ?wife wdt:P40 ?child }
} The API request yields only two results:
However, the same request without name_service yields three results:
Other than in the first example, this happens even though there is a label for the result that is hidden by the name_service (Q32522 in this case). Apparently the name_service doesn't let results with any NULL cells pass. |
When ticking the checkbox 'Automatically add names to result', the following query yields 37 results:
If I untick the checkbox and run it again, it yields 105 results instead.
These are the respective API requests:
I expect a name service to add names to entities that have one, but not to hide results that don't have a label.
The generated query is probably missing an 'OPTIONAL'.
The text was updated successfully, but these errors were encountered: