query-06e70e60c609a5fd38f47a799b83a818

rq turtle/ttl

unicameral parliament legislature

unicameral parliament legislature

SELECT ?item ?applies_jurisdiction ?LabelEN ?LabelDE ?Label (GROUP_CONCAT(?applies_jurisdictionLabel; separator=", ") as ?applies_jurisdictionLabels) (GROUP_CONCAT(?countryLabel; separator=", ") as ?countryLabels) WHERE { ?item wdt:P31 wd:Q140247 . OPTIONAL{?item wdt:P1001 ?applies_jurisdiction .} OPTIONAL{?item wdt:P17 ?country .} SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . ?item rdfs:label ?LabelEN } . SERVICE wikibase:label { bd:serviceParam wikibase:language "de" . ?item rdfs:label ?LabelDE } . SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,ar,be,bg,bn,ca,cs,da,de,el,en,es,et,fa,fi,he,hi,hu,hy,id,it,ja,jv,ko,nb,nl,eo,pa,pl,pt,ro,ru,sh,sk,sr,sv,sw,te,th,tr,uk,yue,vec,vi,zh" . ?item rdfs:label ?Label . ?applies_jurisdiction rdfs:label ?applies_jurisdictionLabel . ?country rdfs:label ?countryLabel } } GROUP BY ?item ?applies_jurisdiction ?LabelEN ?LabelDE ?Label ORDER BY ?countryLabels ?item

LIMIT 100

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#>
#unicameral parliament legislature
#unicameral parliament legislature
SELECT ?item ?applies_jurisdiction ?LabelEN ?LabelDE ?Label
(GROUP_CONCAT(?applies_jurisdictionLabel; separator=", ") as ?applies_jurisdictionLabels)
(GROUP_CONCAT(?countryLabel; separator=", ") as ?countryLabels)
WHERE
{
    ?item wdt:P31 wd:Q140247 .
    OPTIONAL{?item wdt:P1001 ?applies_jurisdiction .}
    OPTIONAL{?item wdt:P17 ?country .}
    SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . ?item rdfs:label ?LabelEN } .
    SERVICE wikibase:label { bd:serviceParam wikibase:language "de" . ?item rdfs:label ?LabelDE } .
    SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,ar,be,bg,bn,ca,cs,da,de,el,en,es,et,fa,fi,he,hi,hu,hy,id,it,ja,jv,ko,nb,nl,eo,pa,pl,pt,ro,ru,sh,sk,sr,sv,sw,te,th,tr,uk,yue,vec,vi,zh" 
 . ?item rdfs:label ?Label . ?applies_jurisdiction rdfs:label ?applies_jurisdictionLabel . ?country rdfs:label ?countryLabel }
}
GROUP BY ?item ?applies_jurisdiction ?LabelEN ?LabelDE ?Label
ORDER BY ?countryLabels ?item 
#LIMIT 100

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v7("?Label"):::projected v6("?LabelDE"):::projected v5("?LabelEN"):::projected v3("?applies_jurisdiction"):::projected v8("?applies_jurisdictionLabel"):::projected v10("?applies_jurisdictionLabels") v4("?country") v9("?countryLabel"):::projected v11("?countryLabels") v2("?item"):::projected c2(["wd:Q140247"]):::iri c10(["de"]):::literal c11(["fr,ar,be,bg,bn,ca,cs,da,de,el,en,es,et,fa,fi,he,hi,hu,hy,id,it,ja,jv,ko,nb,nl,eo,pa,pl,pt,ro,ru,sh,sk,sr,sv,sw,te,th,tr,uk,yue,vec,vi,zh"]):::literal c6(["bd:serviceParam"]):::iri c8(["en"]):::literal v2 --"wdt:P31"--> c2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P1001".-> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P17".-> v4 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 v2 --"rdfs:label"--> v5 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c10 v2 --"rdfs:label"--> v6 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c11 v2 --"rdfs:label"--> v7 v3 --"rdfs:label"--> v8 v4 --"rdfs:label"--> v9 end bind2[/"?applies_jurisdictionLabel"/] v8 --o bind2 bind2 --as--o v10 bind3[/"?countryLabel"/] v9 --o bind3 bind3 --as--o v11