query-97f9954f18d28cd958d74e01fd364213
Certain countries have P31s in the wiki pages but not in query result. Does anyone know what's causing this? (Q25)Wales . This isn't the case however for (Q6256)country 's, most critically for me (P31)instance of , seem to be missing all but one (Q22)Scotland and (Q21)England I'm trying to find a list of all countries contained within countries but certain countries, namely . (Q21)England Compare the result of the following query to the page for
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 DISTINCT ?p31 ?p31Label
WHERE
{
wd:Q21 wdt:P31 ?p31 .
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("?p31"):::projected
c4(["bd:serviceParam"]):::iri
c6(["en"]):::literal
c1(["wd:Q21"]):::iri
c1 --"wdt:P31"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end