query-9026f472e11fbc11f87e2d622b522f7c
Incomplete references (needs work)
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?sr ?propLabel ?val ?valLabel ?type WHERE {
?item p:P106/ps:P106/wdt:P279* wd:Q26270618 .
?item ?property ?statement .
?statement prov:wasDerivedFrom ?source .
VALUES ?database {
wd:Q18002875
}
?source pr:P248 ?database .
?source pr:P1447 ?sr .
VALUES ?mandatoryStatement {
pr:P1476
}
MINUS { ?source ?mandatoryStatement ?foo . }
?statement ?prop ?val .
?prop a ?type .
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;
v5("?database")
v8("?foo")
v1("?item"):::projected
v7("?mandatoryStatement")
v9("?prop")
v2("?property")
v4("?source")
v6("?sr"):::projected
v3("?statement")
v11("?type"):::projected
v10("?val"):::projected
a1((" "))
a2((" "))
c10(["bd:serviceParam"]):::iri
c4(["wd:Q26270618"]):::iri
c12(["en"]):::literal
v1 --"p:P106"--> a1
a1 --"p:statement/P106"--> a2
a2 --"p:direct/P279"--> c4
v1 -->v2--> v3
v3 --"prov:wasDerivedFrom"--> v4
bind0[/VALUES ?database/]
bind0-->v5
bind00(["wd:Q18002875"])
bind00 --> bind0
v4 --"p:reference/P248"--> v5
v4 --"p:reference/P1447"--> v6
bind1[/VALUES ?mandatoryStatement/]
bind1-->v7
bind10(["p:reference/P1476"])
bind10 --> bind1
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
v4 -->v7--> v8
end
v3 -->v9--> v10
v9 --"a"--> v11
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end