query-f01439dd0f2902b932b4856c62bc4e06

rq turtle/ttl

TODO

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/>
SELECT ?item1 ?item2
WHERE {
  ?article schema:about ?item2 ; schema:isPartOf <https://uk.wikipedia.org/> .
  #?item1 wdt:P31 wd:Q5 .
  #?item2 wikibase:statements 1 .
  FILTER( ?item1 != ?item2 && STR( ?item1 ) < STR( ?item2 ) ) .
  ?item1 wdt:P2671 ?g .
  ?item2 wdt:P2671 ?g .
}
ORDER BY DESC(?item2)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?article") v4("?g") v2("?item1"):::projected v1("?item2"):::projected c3([https://uk.wikipedia.org/]):::iri f0[["?item1 != ?item2str(?item1) < str(?item2)"]] f0 --> v2 f0 --> v1 v3 --"schema:about"--> v1 v3 --"schema:isPartOf"--> c3 v2 --"wdt:P2671"--> v4 v1 --"wdt:P2671"--> v4