query-fdddd3008179ec4f17f4f7a93457e7d6

rq turtle/ttl

09:11, 10 August 2020 (UTC)) talk (Cdo256 values, you can use this syntax:allTo get , you'll see that there's a different icon just to the left of the "constituent country" entry, with the top arrow highlighted, to indicate that it's preferred.(Q21)England : This is because these values have "preferred" rank - the "wdt:" format of the query says "give me the best answers", which is all the entries of preferred rank, and if there aren't any, all the entries of normal rank. If you look on Cdo56@

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?p31 ?p31Label
WHERE
{
  wd:Q21 p:P31 ?statement . ?statement ps: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; v2("?p31"):::projected v1("?statement") c5(["bd:serviceParam"]):::iri c7(["en"]):::literal c1(["wd:Q21"]):::iri c1 --"p:P31"--> v1 v1 --"p:statement/P31"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end