query-1f6061c2cfcdb1f024c092572319f9e9
Sans photos
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 pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Map
SELECT DISTINCT ?item ?itemLabel ?coord ?image
WHERE { {
SELECT DISTINCT ?item WHERE {
?item wdt:P1435/wdt:P279* wd:Q18341711 .
?item p:P1435 ?heritage_statement .
FILTER NOT EXISTS { ?heritage_statement pq:P582 ?end . }
} }
OPTIONAL { ?item wdt:P625 ?coord . }
FILTER NOT EXISTS { ?item wdt:P18 ?image . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en, fr" . } .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?coord"):::projected
v4("?end")
v3("?heritage_statement")
v2("?image"):::projected
v1("?item"):::projected
a1((" "))
c9(["bd:serviceParam"]):::iri
c11(["en, fr"]):::literal
c5(["wd:Q18341711"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"p:direct/P18"--> e0v2
e0v2("?image"):::projected
e0v1("?item"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> v2
v1 --"p:direct/P18"--> v2
f1[["not "]]
subgraph f1e1["Exists Clause"]
e1v1 --"p:qualifier/P582"--> e1v2
e1v2("?end"):::projected
e1v1("?heritage_statement"):::projected
end
f1--EXISTS--> f1e1
f1 --> v3
f1 --> c2
f1 --> v4
v3 --"p:qualifier/P582"--> v4
v1 --"p:direct/P1435"--> a1
a1 --"p:direct/P279"--> c5
v1 --"p:P1435"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P625".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end