query-4dff0f50f2236cb4ad9683a91bee7abe

rq turtle/ttl

Incorrect output of articles with redirect badge badges returns a page without such a badge. (Q70893996)sitelink to redirect A query to output items with

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?ruwiki
WHERE {
  ?item wdt:P31 ?set
   VALUES ?set {     
    wd:Q201658
    }
  ?ruwiki schema:about ?item;
         schema:isPartOf <https://ru.wikipedia.org/>.
  ?ruwiki wikibase:badge wd:Q70893996.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "ru". }
}
GROUP BY ?item ?ruwiki
ORDER BY ASC(?ruwikiLabel)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?item"):::projected v4("?ruwiki"):::projected v1("?ruwikiLabel") v4("?set") c8(["bd:serviceParam"]):::iri c10(["ru"]):::literal c4([https://ru.wikipedia.org/]):::iri c6(["wd:Q70893996"]):::iri v2 --"wdt:P31"--> v4 bind0[/VALUES ?set/] bind0-->v4 bind00(["wd:Q201658"]) bind00 --> bind0 v4 --"schema:about"--> v2 v4 --"schema:isPartOf"--> c4 v4 --"wikibase:badge"--> c6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end