query-27819df8aa1f63d343dbea8e18bbd8fa
title: Geschützte Kulturdenkmäler in Dänemark SELECT DISTINCT ?item ?itemname (GROUP_CONCAT(?instance; SEPARATOR = ", ") AS ?istEin) ?article ?title ?location WHERE { ?item wdt:P1435 wd:Q12312385. OPTIONAL { ?dawiki schema:about ?item; schema:isPartOf https://da.wikipedia.org/; schema:name ?da_title. } OPTIONAL { ?dewiki schema:about ?item; schema:isPartOf https://de.wikipedia.org/; schema:name ?de_title. } OPTIONAL { ?enwiki schema:about ?item; schema:isPartOf https://en.wikipedia.org/; schema:name ?en_title. } OPTIONAL { ?item wdt:P625 ?location. } BIND(IF(BOUND(?dawiki), ?dawiki, IF(BOUND(?dewiki), ?dewiki, ?enwiki)) AS ?article) BIND(IF(BOUND(?da_title), ?da_title, IF(BOUND(?de_title), ?de_title, ?en_title)) AS ?title) FILTER(((BOUND(?dawiki))|| (BOUND(?dewiki))) || (BOUND(?enwiki))) OPTIONAL { ?item wdt:P31 ?class. } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],da". ?item rdfs:label ?itemname. ?class rdfs:label ?instance. } } GROUP BY ?item ?itemname ?article ?title ?location
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
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#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title: Geschützte Kulturdenkmäler in Dänemark
SELECT DISTINCT ?item ?itemname (GROUP_CONCAT(?instance; SEPARATOR = ", ") AS ?istEin) ?article ?title ?location WHERE {
?item wdt:P1435 wd:Q12312385.
OPTIONAL {
?dawiki schema:about ?item;
schema:isPartOf <https://da.wikipedia.org/>;
schema:name ?da_title.
}
OPTIONAL {
?dewiki schema:about ?item;
schema:isPartOf <https://de.wikipedia.org/>;
schema:name ?de_title.
}
OPTIONAL {
?enwiki schema:about ?item;
schema:isPartOf <https://en.wikipedia.org/>;
schema:name ?en_title.
}
OPTIONAL { ?item wdt:P625 ?location. }
BIND(IF(BOUND(?dawiki), ?dawiki, IF(BOUND(?dewiki), ?dewiki, ?enwiki)) AS ?article)
BIND(IF(BOUND(?da_title), ?da_title, IF(BOUND(?de_title), ?de_title, ?en_title)) AS ?title)
FILTER(((BOUND(?dawiki))|| (BOUND(?dewiki))) || (BOUND(?enwiki)))
OPTIONAL { ?item wdt:P31 ?class. }
SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE],da".
?item rdfs:label ?itemname.
?class rdfs:label ?instance.
}
}
GROUP BY ?item ?itemname ?article ?title ?location