query-d241262755c44f905ac808cd69e7292c

rq turtle/ttl

TODO

Use at

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 ?cemetary ?cemetaryLabel ?P1920 ?P3038 ?P5956
WHERE {
   {
  SELECT ?cemetary (SAMPLE(?P1920_) AS ?P1920) (SAMPLE(?P3038_) AS ?P3038) (SAMPLE(?P5956_) AS ?P5956) 
  WHERE {
    ?cemetary wdt:P31/wdt:P279* wd:Q39614.
    ?cemetary wdt:P17 wd:Q145.

    { ?cemetary wdt:P1920 ?P1920_ . }
    UNION
    { ?cemetary wdt:P3038 ?P3038_ . }
    UNION
    { ?cemetary wdt:P5956 ?P5956_ . }
  }
  GROUP BY ?cemetary
}  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?P1920"):::projected v2("?P1920_") v6("?P3038"):::projected v3("?P3038_") v7("?P5956"):::projected v4("?P5956_") v1("?cemetary"):::projected a1((" ")) c10(["bd:serviceParam"]):::iri c12(["#91;AUTO_LANGUAGE#93;"]):::literal c5(["wd:Q145"]):::iri c3(["wd:Q39614"]):::iri v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v1 --"wdt:P17"--> c5 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P5956"--> v4 end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P3038"--> v3 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P1920"--> v2 end union0r <== or ==> union0l end bind3[/"sample(?P1920_)"/] v2 --o bind3 bind3 --as--o v5 bind4[/"sample(?P3038_)"/] v3 --o bind4 bind4 --as--o v6 bind5[/"sample(?P5956_)"/] v4 --o bind5 bind5 --as--o v7 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end