query-af1466014ff97dee9bfab9e1e605b998
use Entity Schema to check more to validate more fields? https://www.wikidata.org/wiki/EntitySchema:E257Why don't you use the Politician Entity Schema (SHEX) This query shows 2751 Bulgarian politicians, so I hope the tool will manage with that many: There is a link "check entities against this Schema" that runs the SHEX tool
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#>
SELECT ?item ?itemLabel WHERE {
?item wdt:P27 wd:Q219;
wdt:P106 wd:Q82955
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
c6(["bd:serviceParam"]):::iri
c2(["wd:Q219"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c4(["wd:Q82955"]):::iri
v1 --"wdt:P27"--> c2
v1 --"wdt:P106"--> c4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end