query-9a88fb43e8355dbf53b6862f91a68b4e
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?label WHERE {
?item wdt:P31 wd:Q63412991.
MINUS {?incoming ?prop ?item .}
MINUS {?item ?propref [ prov:wasDerivedFrom [ ?ref ?reference ] ] }
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en" .
?item rdfs:label ?label
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?incoming")
v1("?item"):::projected
v7("?label"):::projected
v3("?prop")
v6("?propref")
v4("?ref")
v5("?reference")
a2((" "))
a1((" "))
c5(["bd:serviceParam"]):::iri
c2(["wd:Q63412991"]):::iri
c7(["en"]):::literal
v1 --"wdt:P31"--> c2
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v2 -->v3--> v1
end
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
a1 -->v4--> v5
a2 --"prov:wasDerivedFrom"--> a1
v1 -->v6--> a2
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
v1 --"rdfs:label"--> v7
end