query-b33c136f6e417170f189b81678f60fed
title: All the Classifications of the Function of Government SELECT ?qid ?item ?itemLabel ?s WHERE { ?item wdt:P31 wd:Q5128413 . ?item wdt:P1813 ?s . SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } BIND(REPLACE(STR(?item), 'http://www.wikidata.org/entity/', '' ) AS ?qid) } ORDER BY ASC(?s)
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 bd: <http://www.bigdata.com/rdf#>
#title: All the Classifications of the Function of Government
SELECT ?qid ?item ?itemLabel ?s WHERE {
?item wdt:P31 wd:Q5128413 .
?item wdt:P1813 ?s .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
BIND(REPLACE(STR(?item), 'http://www.wikidata.org/entity/', '' ) AS ?qid)
} ORDER BY ASC(?s)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v3("?qid"):::projected
v1("?s"):::projected
c2(["wd:Q5128413"]):::iri
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"wdt:P31"--> c2
v2 --"wdt:P1813"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind0[/"replace(str(?item),'http://www.wikidata.org/entity/','')"/]
v2 --o bind0
bind0 --as--o v3