query-36fb7994827996525e138ef52c553b72

rq turtle/ttl

Dänemark

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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Map
#title: Dänemark auf dewiki
SELECT ?item ?page_title ?article (GROUP_CONCAT(DISTINCT ?instanz; SEPARATOR = ", ") AS ?ist_ein) (GROUP_CONCAT(DISTINCT ?standort; SEPARATOR = ", ") AS ?liegt_in) ?dawiki ?location WHERE {
  ?item wdt:P17 wd:Q35;
    wdt:P31 ?instance;
    wdt:P131 ?where.
  ?article schema:about ?item;
    schema:isPartOf <https://de.wikipedia.org/>;
    schema:name ?page_title.
  OPTIONAL { ?item wdt:P625 ?location. }
  OPTIONAL {
    ?dawiki schema:about ?item;
      schema:isPartOf <https://da.wikipedia.org/>;
      schema:name ?da_title.
  }
  FILTER((BOUND(?dawiki)))
  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".
    ?where rdfs:label ?standort.
    ?instance rdfs:label ?instanz.
  }
}
GROUP BY ?item ?page_title ?article ?dawiki ?location
ORDER BY (?page_title)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?article"):::projected v8("?da_title") v2("?dawiki"):::projected v4("?instance") v10("?instanz"):::projected v11("?ist_ein") v3("?item"):::projected v12("?liegt_in") v7("?location"):::projected v1("?page_title"):::projected v9("?standort"):::projected v5("?where") c7([https://de.wikipedia.org/]):::iri c2(["wd:Q35"]):::iri c12(["bd:serviceParam"]):::iri c14(["#91;AUTO_LANGUAGE#93;,en"]):::literal c10([https://da.wikipedia.org/]):::iri f0[["bound(?dawiki)"]] f0 --> v2 v3 --"wdt:P17"--> c2 v3 --"wdt:P31"--> v4 v3 --"wdt:P131"--> v5 v6 --"schema:about"--> v3 v6 --"schema:isPartOf"--> c7 v6 --"schema:name"--> v1 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P625".-> v7 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."schema:about".-> v3 v2 --"schema:isPartOf"--> c10 v2 --"schema:name"--> v8 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c12 --"wikibase:language"--> c14 v5 --"rdfs:label"--> v9 v4 --"rdfs:label"--> v10 end bind3[/"?instanz"/] v10 --o bind3 bind3 --as--o v11 bind4[/"?standort"/] v9 --o bind4 bind4 --as--o v12