query-7431a84e4aefb7568438b9280e723c8e
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 bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?palissy ?item ?itemLabel ?locLabel ?adm ?admLabel WHERE {
?item wdt:P31 wd:Q184296 .
?item wdt:P481 ?palissy .
MINUS {?item wdt:P18 []} .
OPTIONAL {
?item wdt:P276 ?loc
}
OPTIONAL {
?item wdt:P276?/wdt:P131+ ?adm .
?adm wdt:P31 wd:Q6465 .
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],fr,en". }
} ORDER BY ?admLabel ?itemLabel ?palissy
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?adm"):::projected
v1("?admLabel"):::projected
v4("?item"):::projected
v2("?itemLabel"):::projected
v5("?loc")
v3("?palissy"):::projected
a1((" "))
a2((" "))
c2(["wd:Q184296"]):::iri
c9(["bd:serviceParam"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,fr,en"]):::literal
c7(["wd:Q6465"]):::iri
v4 --"wdt:P31"--> c2
v4 --"wdt:P481"--> v3
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v4 --"wdt:P18"--> a1
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P276".-> v5
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v4 -."wdt:P276".-> a2
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
end
union0r <== or ==> union0l
end
a2 --"wdt:P131"--> v6
v6 --"wdt:P31"--> c7
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end