query-d9602de30d118251ad89edfed3949fe9
Alle Gemeinden in D mit zusätzlichen Daten SELECT ?cid ?name ?AGS ?_licence_plate_code ?_official_website ?_local_dialing_code ?_postal_code ?_image ?_head_of_government ?_time_of_earliest_written_record ?_Facebook_Places_ID WHERE { ?cid wdt:P31 wd:Q262166. ?cid wdt:P439 ?AGS. OPTIONAL { ?cid rdfs:label ?name. FILTER((LANG(?name)) = "de") } OPTIONAL { ?cid wdt:P395 ?_licence_plate_code. } OPTIONAL { ?cid wdt:P856 ?_official_website. } OPTIONAL { ?cid wdt:P473 ?_local_dialing_code. } OPTIONAL { ?cid wdt:P281 ?_postal_code. } OPTIONAL { ?cid wdt:P18 ?_image. } OPTIONAL { ?cid wdt:P6 ?_head_of_government. } OPTIONAL { ?cid wdt:P1249 ?_time_of_earliest_written_record. } OPTIONAL { ?cid wdt:P1997 ?_Facebook_Places_ID. } }
Use at
- https://query.wikidata.org/sparql
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#>
# Alle Gemeinden in D mit zusätzlichen Daten
SELECT ?cid ?name ?AGS ?_licence_plate_code ?_official_website ?_local_dialing_code ?_postal_code ?_image ?_head_of_government ?_time_of_earliest_written_record ?_Facebook_Places_ID WHERE {
?cid wdt:P31 wd:Q262166.
?cid wdt:P439 ?AGS.
OPTIONAL {
?cid rdfs:label ?name.
FILTER((LANG(?name)) = "de")
}
OPTIONAL { ?cid wdt:P395 ?_licence_plate_code. }
OPTIONAL { ?cid wdt:P856 ?_official_website. }
OPTIONAL { ?cid wdt:P473 ?_local_dialing_code. }
OPTIONAL { ?cid wdt:P281 ?_postal_code. }
OPTIONAL { ?cid wdt:P18 ?_image. }
OPTIONAL { ?cid wdt:P6 ?_head_of_government. }
OPTIONAL { ?cid wdt:P1249 ?_time_of_earliest_written_record. }
OPTIONAL { ?cid wdt:P1997 ?_Facebook_Places_ID. }
}