query-c43404bb232a2ef1662c19615f801bcf
Use database item instead of plain link
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 ?property ?propertyLabel ?url WHERE {
{
SELECT DISTINCT ?item ?p ?url WHERE {
?item p:P106/ps:P106/wdt:P279* wd:Q26270618; ?p [ prov:wasDerivedFrom/pr:P854 ?url ] .
}
}.
?property wikibase:claim ?p .
SERVICE wikibase:label { bd:serviceParam wikibase:language 'en' }
} ORDER BY ASC(?url)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v3("?p")
v4("?property"):::projected
v1("?url"):::projected
a1((" "))
a2((" "))
a3((" "))
a4((" "))
c9(["bd:serviceParam"]):::iri
c4(["wd:Q26270618"]):::iri
c11(["en"]):::literal
v2 --"p:P106"--> a1
a1 --"p:statement/P106"--> a2
a2 --"p:direct/P279"--> c4
a3 --"prov:wasDerivedFrom"--> a4
a4 --"p:reference/P854"--> v1
v2 -->v3--> a3
v4 --"wikibase:claim"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end