query-bf8ced8782c3b25e2801174f18c9695e

rq turtle/ttl

Query

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Map
SELECT ?item ?itemLabel ?itemDescription ?location ?layer ?is_een ?is_eenLabel WHERE {
  {
    SELECT ?item ?itemLabel ?itemDescription ?location (MIN(LANG(?lang_label)) AS ?layer) (COUNT(?lang_label) AS ?count_label) WHERE {
      ?item wdt:P17 wd:Q55.
      ?item wdt:P625 ?location.
      ?item wdt:P31 wd:Q41176.

      ?item rdfs:label ?lang_label.
      SERVICE wikibase:label { bd:serviceParam wikibase:language "nl,fr,de,en,es,pl,ru,sv,ceb". }
    }
    GROUP BY ?item ?itemLabel ?itemDescription ?location
  }
  FILTER(?count_label = 1)
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?count_label") v2("?item"):::projected v4("?lang_label") v5("?layer"):::projected v3("?location"):::projected c11(["nl,fr,de,en,es,pl,ru,sv,ceb"]):::literal c9(["bd:serviceParam"]):::iri c6(["wd:Q41176"]):::iri c3(["wd:Q55"]):::iri f0[["?count_label = '1^^xsd:integer'"]] f0 --> v6 v2 --"wdt:P17"--> c3 v2 --"wdt:P625"--> v3 v2 --"wdt:P31"--> c6 v2 --"rdfs:label"--> v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end bind3[/"min(?lang_label)"/] v4 --o bind3 bind3 --as--o v5 bind4[/"count(?lang_label)"/] v4 --o bind4 bind4 --as--o v6