query-9fef23eead2cd9175aa6725b2d090b30

rq turtle/ttl

Chess players with DOB precisionI am trying to query all chessgames-people with dob precision "year" or less. This is what I could construct:

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?birth WHERE {
  ?item wdt:P1665 [] .

  MINUS { 
    ?item  p:P569/psv:P569 [
                wikibase:timePrecision "11"^^xsd:integer ; 
                wikibase:timeValue ?birth ;
              ] ;

    }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?birth"):::projected v1("?item"):::projected a1((" ")) a3((" ")) a2((" ")) c3(["11^^xsd:integer"]):::literal c8(["bd:serviceParam"]):::iri c10(["en"]):::literal v1 --"p:direct/P1665"--> a1 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; a2 --"wikibase:timePrecision"--> c3 a2 --"wikibase:timeValue"--> v2 v1 --"p:P569"--> a3 a3 --"p:statement/value/P569"--> a2 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end