query-ec949dcaea8d8580c24f32ca1fc231ae

rq turtle/ttl

.on Mastodon and on TwitterOriginally posted

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Map{"hide": ["?layer", "?coordinates"], "layer": "?engineLabel"}
SELECT ?item ?itemLabel ?url ?area ?areaLabel ?engine ?engineLabel ?coordinates WHERE {
  ?item wdt:P31/wdt:P279* wd:Q2132880;
        p:P6269 [
          a wikibase:BestRank;
          ps:P6269 ?url;
          pq:P2700 wd:Q47450936
        ].
  OPTIONAL { ?item wdt:P408 ?engine. }
  OPTIONAL {
    ?item wdt:P2541 ?area.
    OPTIONAL { ?area wdt:P625 ?coordinates. }
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,de". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?area"):::projected v5("?coordinates"):::projected v3("?engine"):::projected v1("?item"):::projected v2("?url"):::projected a1((" ")) a2((" ")) c5(["wikibase:BestRank"]):::iri c14(["bd:serviceParam"]):::iri c8(["wd:Q47450936"]):::iri c3(["wd:Q2132880"]):::iri c16(["#91;AUTO_LANGUAGE#93;,en,de"]):::literal v1 --"p:direct/P31"--> a1 a1 --"p:direct/P279"--> c3 a2 --"a"--> c5 a2 --"p:statement/P6269"--> v2 a2 --"p:qualifier/P2700"--> c8 v1 --"p:P6269"--> a2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."p:direct/P408".-> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v1 -."p:direct/P2541".-> v4 subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v4 -."p:direct/P625".-> v5 end end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c14 --"wikibase:language"--> c16 end