query-ceb568853490b5ebfa9378ae32c03db7

rq turtle/ttl

18:39, 7 July 2020 (UTC)) talk (Daanvr which should be a query result by my understanding. Am I missing something or is it some form of bug? --(Q1747689)Ancient Rome It returns 23 results. However non include Of course: 20:05, 9 July 2020 (UTC)) talk (Daanvr was "missing")--(Q1747689)Ancient Rome Is it possible to edit the query to include all results regardless of the rank? (maybe there are more results "missing" the same way as 15:00, 8 July 2020 (UTC)) talk (OravrattasThis sort of question is becoming more common, and each time it comes up the consensus seems to nudge another little bit closer to "In most cases, no P31 statement should be marked as preferred". I don't if we've quite reached the point where we should actively remove lots of those preferreds, but this one doesn't seem like it has any strong reason to be so, so I've restored 'historic country' to normal rank. -- 19:32, 7 July 2020 (UTC)) talk (ArthurPSmith. I don't understand why that was set though. (Q3024240)historical country is not in the result set is because it has a preferred-rank P31 value of (Q1747689)Ancient Rome : The reason Daanvr@

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 ?AncientCivi ?AncientCiviLabel ?rank WHERE {
  ?AncientCivi p:P31 ?stmt.
  ?stmt ps:P31 wd:Q28171280.
  ?stmt wikibase:rank ?rank.
  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("?AncientCivi"):::projected v3("?rank"):::projected v2("?stmt") c3(["wd:Q28171280"]):::iri c6(["bd:serviceParam"]):::iri c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal v1 --"p:P31"--> v2 v2 --"p:statement/P31"--> c3 v2 --"wikibase:rank"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end