query-04ff74a6eafc726ff0af462400264b7d
Propertiesplace of burial (P119)image of grave (P1442)burial plot reference (P965)coordinate location (P625)image (P18)
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#>
SELECT distinct ?item ?itemLabel ?itemDescription ?graveplot ?coord ?placeofBurial ?imgGrave ?img WHERE {
?item wdt:P119 wd:Q252312 .
?item p:P119 ?placeofBurial .
OPTIONAL { ?item wdt:P1442 ?imgGrave }
OPTIONAL { ?placeofBurial pq:P965 ?graveplot}
OPTIONAL { ?placeofBurial pq:P625 ?coord}
MINUS { ?item pq:P18 ?img}
SERVICE wikibase:label { bd:serviceParam wikibase:language "sv" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?coord"):::projected
v4("?graveplot"):::projected
v6("?img"):::projected
v3("?imgGrave"):::projected
v1("?item"):::projected
v2("?placeofBurial"):::projected
c9(["bd:serviceParam"]):::iri
c11(["sv"]):::literal
c2(["wd:Q252312"]):::iri
v1 --"p:direct/P119"--> c2
v1 --"p:P119"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P1442".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P965".-> v4
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P625".-> v5
end
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v1 --"p:qualifier/P18"--> v6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end