query-dd8ba5d1d93f0e11d0bf32bebcc3d2b9
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 schema: <http://schema.org/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?catcode ?bartsch ?passavant ?CD ?Kurth ?image ?cat WHERE {
?item p:P528 [ pq:P972 wd:Q100320351; ps:P528 ?catcode] .
optional{ ?item p:P528 [ pq:P972 wd:Q18327311; ps:P528 ?bartsch] . }
optional{?item p:P528 [ pq:P972 wd:Q101157511; ps:P528 ?passavant] . }
optional{?item p:P528 [ pq:P972 wd:Q101181018; ps:P528 ?CD] . }
optional{ ?item p:P528 [ pq:P972 wd:Q101542418; ps:P528 ?Kurth] . }
?item wdt:P18 ?image
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
optional{ ?commonsSitelink schema:about ?item; schema:isPartOf <https://commons.wikimedia.org/>; schema:name ?cat . }
} order by ?catcode
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?CD"):::projected
v6("?Kurth"):::projected
v3("?bartsch"):::projected
v9("?cat"):::projected
v1("?catcode"):::projected
v8("?commonsSitelink")
v7("?image"):::projected
v2("?item"):::projected
v4("?passavant"):::projected
a1((" "))
a2((" "))
a3((" "))
a4((" "))
a5((" "))
c16([https://commons.wikimedia.org/]):::iri
c8(["wd:Q101542418"]):::iri
c13(["en"]):::literal
c6(["wd:Q101157511"]):::iri
c11(["bd:serviceParam"]):::iri
c7(["wd:Q101181018"]):::iri
c5(["wd:Q18327311"]):::iri
c2(["wd:Q100320351"]):::iri
a1 --"p:qualifier/P972"--> c2
a1 --"p:statement/P528"--> v1
v2 --"p:P528"--> a1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
a2 -."p:qualifier/P972".-> c5
a2 --"p:statement/P528"--> v3
v2 --"p:P528"--> a2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
a3 -."p:qualifier/P972".-> c6
a3 --"p:statement/P528"--> v4
v2 --"p:P528"--> a3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
a4 -."p:qualifier/P972".-> c7
a4 --"p:statement/P528"--> v5
v2 --"p:P528"--> a4
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
a5 -."p:qualifier/P972".-> c8
a5 --"p:statement/P528"--> v6
v2 --"p:P528"--> a5
end
v2 --"p:direct/P18"--> v7
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v8 -."schema:about".-> v2
v8 --"schema:isPartOf"--> c16
v8 --"schema:name"--> v9
end