Open labra opened 3 years ago
In the previous ShEx definition, the <country>
shape was not used, so the definition could be cleaned as:
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX : <http://www.wikidata.org/entity/>
start=@<publication>
<publication> EXTRA :P31 {
:P50 @<author> +;
}
<author> EXTRA :P31 {
:P31 @<human> ;
:P27 @<country_value>
}
<human> [ :Q174396 ] # Elf which means it shouldn't return results, could be replaced by Q5
<country_value> [ :Q183 ]
In order to check the results that should be obtained, a SPARQL query for the previous ShEx could be https://w.wiki/4C6n which has no results
If we replace elfs by humans, it should be: https://w.wiki/4C6q which obtains 288651 results
We have reproduced the problem in sparkwdsub and added a new issue
We can start with a query like:
However, @jorgealvarezfidalgo has been running the system and it seems that sparkwdsub only considers properties and not the values...he has been checking this ShEx: