query-9410cf923b1ce1d668fe4c6e602459e3

rq turtle/ttl

title:Humans needing fundamental references SELECT DISTINCT ?item ?itemLabel { ?item wdt:P7613 ?bf . { ?item p:P569 ?dbs . MINUS { ?dbs prov:wasDerivedFrom ?ref . } } UNION { ?item p:P570 ?dds . MINUS { ?dds prov:wasDerivedFrom ?ref . } } UNION { ?item p:P19 ?pbs . MINUS { ?pbs prov:wasDerivedFrom ?ref . } } UNION { ?item p:P20 ?pds . MINUS { ?pds prov:wasDerivedFrom ?ref . } } ?item wdt:P31 wd:Q5 . SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } ORDER BY ?itemLabel

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title:Humans needing fundamental references
SELECT DISTINCT ?item ?itemLabel {
  ?item wdt:P7613 ?bf .
  { ?item p:P569 ?dbs . MINUS { ?dbs prov:wasDerivedFrom ?ref . } }
  UNION
  { ?item p:P570 ?dds . MINUS { ?dds prov:wasDerivedFrom ?ref . } }
  UNION
  { ?item p:P19 ?pbs . MINUS { ?pbs prov:wasDerivedFrom ?ref . } }
  UNION
  { ?item p:P20 ?pds . MINUS { ?pds prov:wasDerivedFrom ?ref . } }
  ?item wdt:P31 wd:Q5 .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY ?itemLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?bf") v4("?dbs") v6("?dds") v2("?item"):::projected v1("?itemLabel"):::projected v7("?pbs") v8("?pds") v5("?ref") c10(["bd:serviceParam"]):::iri c8(["wd:Q5"]):::iri c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal v2 --"p:direct/P7613"--> v3 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; subgraph union2[" Union "] subgraph union2l[" "] style union2l fill:#abf,stroke-dasharray: 3 3; v2 --"p:P20"--> v8 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v8 --"prov:wasDerivedFrom"--> v5 end end subgraph union2r[" "] style union2r fill:#abf,stroke-dasharray: 3 3; v2 --"p:P19"--> v7 subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v7 --"prov:wasDerivedFrom"--> v5 end end union2r <== or ==> union2l end end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v2 --"p:P570"--> v6 subgraph minus2["MINUS"] style minus2 stroke-width:6px,fill:pink,stroke:red; v6 --"prov:wasDerivedFrom"--> v5 end end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v2 --"p:P569"--> v4 subgraph minus3["MINUS"] style minus3 stroke-width:6px,fill:pink,stroke:red; v4 --"prov:wasDerivedFrom"--> v5 end end union0r <== or ==> union0l end v2 --"p:direct/P31"--> c8 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end