query-0112503f48caf28324762d775ba5f73c

rq turtle/ttl

subclass of legislative act (itemsubclass of (P279)statute (Q820655) ) that applies to jurisdiction Norway (itemapplies to jurisdiction (P1001)Norway (Q20) )

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 ?item ?itemLabel ?linkTo {
  ?item wdt:P279* wd:Q820655.
  ?item ( wdt:P1001| wdt:P17 ) wd:Q20.
  OPTIONAL { ?item wdt:P279 ?linkTo }
  SERVICE wikibase:label {bd:serviceParam wikibase:language "en" }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected v2("?linkTo"):::projected c2(["wd:Q820655"]):::iri c7(["bd:serviceParam"]):::iri c4(["wd:Q20"]):::iri c9(["en"]):::literal v1 --"wdt:P279"--> c2 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P17"--> c4 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P1001"--> c4 end union0r <== or ==> union0l end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P279".-> v2 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end