query-2aa2c5ebf28158c58c78a7ebef034f5f

rq turtle/ttl

Countries not being returned even though they have the instance of property? and thought I should be able to get a complete list of countries with a simple instance of query (instance of country). Wikidata:WikiProject_CountriesI was just having a look at Some countries appear to be missing although the instance of property is clearly there, for example for Albania. What am I missing?

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 ?country ?countryLabel WHERE {
  ?country wdt:P31 wd:Q6256.
  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("?country"):::projected c4(["bd:serviceParam"]):::iri c6(["en"]):::literal c2(["wd:Q6256"]):::iri v1 --"wdt:P31"--> c2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c4 --"wikibase:language"--> c6 end