User:1ucyp/Queries/Denkmale of the Bundesländer Denkmalliste currently in wikidata
< User:1ucyp | Queries
A lot of help from TweetsFactsAndQueries on this one
# Denkmale of the Bundesländer Denkmalliste currently in wikidata
SELECT ?Denkmal ?DenkmalLabel ?property ?propertyLabel ?jurisdiction ?jurisdictionLabel ?coord
WITH {
SELECT ?property ?propertyLabel ?jurisdiction ?jurisdictionLabel ?wdt WHERE {
?property a wikibase:Property;
wdt:P31 wd:Q18618628;
wdt:P17 wd:Q183;
wikibase:directClaim ?wdt.
OPTIONAL { ?property wdt:P1001 ?jurisdiction. }
SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".
?property rdfs:label ?propertyLabel.
?jurisdiction rdfs:label ?jurisdictionLabel.
}
}
} AS %properties
WHERE {
INCLUDE %properties.
?Denkmal ?wdt ?id.
OPTIONAL { ?Denkmal wdt:P625 ?coord. }
SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de".
?Denkmal rdfs:label ?DenkmalLabel.
}
}