query-f51d0b22a9ffdc48e90f50b59b5d4811

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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Timeline
SELECT DISTINCT ?item ?itemLabel ?part_of ?part_ofLabel ?applies_to_jurisdiction ?applies_to_jurisdictionLabel ?point_in_time WHERE {
  ?item wdt:P31 wd:Q40231;
    wdt:P361 ?part_of;
    rdfs:label ?itemLabel.
  { ?item (wdt:P361/(wdt:P361*)) wd:Q65042773. }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  FILTER((LANG(?itemLabel)) = "en")
  OPTIONAL { ?item wdt:P1001 ?applies_to_jurisdiction. }
  OPTIONAL { ?item wdt:P585 ?point_in_time. }
}
ORDER BY ?applies_to_jurisdictionLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?applies_to_jurisdiction"):::projected v1("?applies_to_jurisdictionLabel"):::projected v3("?item"):::projected v2("?itemLabel"):::projected v4("?part_of"):::projected v6("?point_in_time"):::projected a1((" ")) c8(["bd:serviceParam"]):::iri c3(["wd:Q40231"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal c6(["wd:Q65042773"]):::iri f0[["?itemLabel = 'en'"]] f0 --> v2 v3 --"wdt:P31"--> c3 v3 --"wdt:P361"--> v4 v3 --"rdfs:label"--> v2 v3 --"wdt:P361"--> a1 a1 --"wdt:P361"--> c6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P1001".-> v5 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P585".-> v6 end