query-aa14df3a20124cc6ab331f1bbeb7e075

rq turtle/ttl

Orte mit HOV-Code und Beziehung zu anderen Normdateien SELECT DISTINCT ?Orte ?OrteLabel ?HOV_Code ?extId ?extIdLabel ?externe_ID WHERE { ?Orte wdt:P7046 ?HOV_Code. OPTIONAL { ?Orte ?p ?externe_ID. ?extId wikibase:directClaim ?p; (wdt:P31/(wdt:P279*)) wd:Q18614948. } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } ORDER BY ?Orte

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Orte mit HOV-Code und Beziehung zu anderen Normdateien
SELECT DISTINCT ?Orte ?OrteLabel ?HOV_Code ?extId ?extIdLabel ?externe_ID WHERE {
  ?Orte wdt:P7046 ?HOV_Code.
  OPTIONAL {
    ?Orte ?p ?externe_ID.
    ?extId wikibase:directClaim ?p;
      (wdt:P31/(wdt:P279*)) wd:Q18614948.
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY ?Orte

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?HOV_Code"):::projected v1("?Orte"):::projected v5("?extId"):::projected v4("?externe_ID"):::projected v3("?p") a1((" ")) c5(["wd:Q18614948"]):::iri c7(["bd:serviceParam"]):::iri c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal v1 --"wdt:P7046"--> v2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -->v3--> v4 v5 -."wikibase:directClaim".-> v3 v5 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c5 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end