query-03bee733922b077e7afd93eabe99f7b9

rq turtle/ttl

Для создания в ру-викиЭлементы с наибольшим число интервик, но без русской:

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 ?sitelinks ?itemLabel WHERE {
  ?item wikibase:sitelinks ?sitelinks.  # https://wiki.blazegraph.com/wiki/index.php/QueryHints
  FILTER(?sitelinks >= 75) # arbitrary limit to optimize the query by removing most items (assuming that the desired results will have more statements than this)
  MINUS {
    ?article schema:isPartOf <https://ru.wikipedia.org/>;
             schema:about ?item.
  }
  MINUS { ?item wdt:P31/wdt:P279* wd:Q17442446. } # remove templates etc.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "ru,[AUTO_LANGUAGE],en". } 
}
ORDER BY DESC(?sitelinks)
LIMIT 30

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?article") v2("?item"):::projected v1("?sitelinks"):::projected a1((" ")) c10(["bd:serviceParam"]):::iri c12(["ru,#91;AUTO_LANGUAGE#93;,en"]):::literal c4([https://ru.wikipedia.org/]):::iri c8(["wd:Q17442446"]):::iri f0[["?sitelinks >= '75^^xsd:integer'"]] f0 --> v1 v2 --"wikibase:sitelinks"--> v1 subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v3 --"schema:isPartOf"--> c4 v3 --"schema:about"--> v2 end subgraph minus2["MINUS"] style minus2 stroke-width:6px,fill:pink,stroke:red; v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c8 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end