query-66efd0fbda0be7b95da421aa7993be19

rq turtle/ttl

Propertiesinstance of (P31)place of burial (P119)image of grave (P1442)burial plot reference (P965)coordinate location (P625)

Use at

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 ?image ?plotRef ?plotCoords WHERE {
  ?item wdt:P31 wd:Q5 .
  ?item wdt:P119 wd:Q5501472 .
  OPTIONAL { ?item wdt:P1442 ?image . }
  OPTIONAL { ?item p:P119/pq:P965 ?plotRef . }
  OPTIONAL { ?item p:P119/pq:P625 ?plotCoords . }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?image"):::projected v1("?item"):::projected v4("?plotCoords"):::projected v3("?plotRef"):::projected a1((" ")) a2((" ")) c10(["bd:serviceParam"]):::iri c2(["wd:Q5"]):::iri c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal c4(["wd:Q5501472"]):::iri v1 --"p:direct/P31"--> c2 v1 --"p:direct/P119"--> c4 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."p:direct/P1442".-> v2 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v1 -."p:P119".-> a1 a1 --"p:qualifier/P965"--> v3 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v1 -."p:P119".-> a2 a2 --"p:qualifier/P625"--> v4 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end