query-60ce3e92f74c3f61cb9d9efc01b7e17f
Statutes of Finland
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?catalog_code ?jurisdictionLabel ?inception ?abolished
WHERE
{
?item wdt:P31/wdt:P279* wd:Q820655.
?item p:P528 ?catalog.
?catalog ps:P528 ?catalog_code;
pq:P972 wd:Q4411194.
OPTIONAL { ?item wdt:P1001 ?jurisdiction. }
OPTIONAL { ?item wdt:P571 ?inception. }
OPTIONAL { ?item wdt:P576 ?abolished. }
FILTER ( ?jurisdiction = wd:Q33 || ?jurisdiction = wd:Q5689 )
SERVICE wikibase:label { bd:serviceParam wikibase:language "fi,en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?abolished"):::projected
v3("?catalog")
v4("?catalog_code"):::projected
v5("?inception"):::projected
v2("?item"):::projected
v1("?jurisdiction")
a1((" "))
c5(["wd:Q820655"]):::iri
c14(["bd:serviceParam"]):::iri
c9(["wd:Q4411194"]):::iri
c16(["fi,en"]):::literal
f0[["(?jurisdiction = 'wd:Q33' || ?jurisdiction = 'wd:Q5689')"]]
f0 --> v1
v2 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c5
v2 --"p:P528"--> v3
v3 --"p:statement/P528"--> v4
v3 --"p:qualifier/P972"--> c9
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P1001".-> v1
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P571".-> v5
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P576".-> v6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c14 --"wikibase:language"--> c16
end