query-4f0fc35f5abf34323d010835ebaa0346

rq turtle/ttl

TODO

Use at

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#>
SELECT ?item ?itemLabel ?native ?label_de ?desc_de ?label_hsb ?desc_hsb
WHERE 
{
  ?item wdt:P131* wd:Q571947 .  # ?item is within the district 
  ?item wdt:P31 wd:Q532 .       # item is a village
  OPTIONAL {?item rdfs:label ?label_de.
  filter(lang(?label_de)="de") }
  OPTIONAL {?item rdfs:label ?label_hsb.
  filter(lang(?label_hsb)="hsb") }
  OPTIONAL {?item schema:description ?desc_de.
  filter(lang(?desc_de)="de") }
  OPTIONAL {?item schema:description ?desc_hsb.
  filter(lang(?desc_hsb)="hsb") }
  OPTIONAL {?item wdt:P1705 ?native . }
 }

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?desc_de"):::projected v1("?desc_hsb"):::projected v5("?item"):::projected v4("?label_de"):::projected v3("?label_hsb"):::projected v6("?native"):::projected c6(["wd:Q532"]):::iri c4(["wd:Q571947"]):::iri v5 --"wdt:P131"--> c4 v5 --"wdt:P31"--> c6 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v5 -."rdfs:label".-> v4 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v5 -."rdfs:label".-> v3 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v5 -."schema:description".-> v2 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v5 -."schema:description".-> v1 end subgraph optional4["(optional)"] style optional4 fill:#bbf,stroke-dasharray: 5 5; v5 -."wdt:P1705".-> v6 end