query-501d67214e7e525e7134fe981b038505
Version for web pages:
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 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 ?property ?propLbl ?value WHERE {
?property a wikibase:Property .
?property wikibase:claim ?claimprop; wikibase:statementProperty ?stmtprop; rdfs:label ?propLbl .
FILTER(LANG(?propLbl) = 'en') .
?item p:P106/ps:P106/wdt:P279* wd:Q26270618 .
?item ?claimprop ?statement .
?statement ?stmtprop ?value; prov:wasDerivedFrom ?source .
?source pr:P854 ?referenceUrl .
VALUES ?mandatoryStatement {
# pr:P248 # stated in (if applicable)
pr:P813 # retrieved
# pr:P1476 # title
# pr:P577 # publication date
# pr:P1065 # archive url
# pr:P2960 # archive date
# pr:P2439 # language
# pr:P50 # author
# pr:P123 # publisher
# pr:P1683 # quote
}
MINUS {
?source ?mandatoryStatement ?foo .
}
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;
v3("?claimprop")
v11("?foo")
v5("?item"):::projected
v10("?mandatoryStatement")
v1("?propLbl"):::projected
v2("?property"):::projected
v9("?referenceUrl")
v8("?source")
v6("?statement")
v4("?stmtprop")
v7("?value"):::projected
a1((" "))
a2((" "))
c3(["wikibase:Property"]):::iri
c1(["en"]):::literal
c14(["bd:serviceParam"]):::iri
c10(["wd:Q26270618"]):::iri
f0[["?propLbl = 'en'"]]
f0 --> v1
v2 --"a"--> c3
v2 --"wikibase:claim"--> v3
v2 --"wikibase:statementProperty"--> v4
v2 --"rdfs:label"--> v1
v5 --"p:P106"--> a1
a1 --"p:statement/P106"--> a2
a2 --"p:direct/P279"--> c10
v5 -->v3--> v6
v6 -->v4--> v7
v6 --"prov:wasDerivedFrom"--> v8
v8 --"p:reference/P854"--> v9
bind1[/VALUES ?mandatoryStatement/]
bind1-->v10
bind10(["p:reference/P813"])
bind10 --> bind1
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
v8 -->v10--> v11
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c14 --"wikibase:language"--> c1
end