query-6c15bbd7f1dda9bbe55faeb2785eb7df
Optional Wikipedia links nl:Lijst van rijksmonumenten aan de BakenessergrachtI'm playing around with queries for Kartographer, see for example The normal query works:
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#>
SELECT ?id ?title WHERE {
?id wdt:P669 wd:Q1083850 ;
wdt:P1435 wd:Q916333 ;
wdt:P6375 ?adres ;
wdt:P359 ?rijksmonumentid ;
rdfs:label ?label .
FILTER (LANG(?label)='nl')
BIND(CONCAT(?rijksmonumentid, ' - ', STR(?label), ' - ', ?adres ) AS ?title )
} LIMIT 200
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?adres")
v2("?id"):::projected
v1("?label")
v4("?rijksmonumentid")
v5("?title"):::projected
c3(["wd:Q1083850"]):::iri
c5(["wd:Q916333"]):::iri
f0[["?label = 'nl'"]]
f0 --> v1
v2 --"wdt:P669"--> c3
v2 --"wdt:P1435"--> c5
v2 --"wdt:P6375"--> v3
v2 --"wdt:P359"--> v4
v2 --"rdfs:label"--> v1
bind1[/"concat(?rijksmonumentid,' - ',str(?label),' - ',?adres)"/]
v4 --o bind1
v1 --o bind1
v3 --o bind1
bind1 --as--o v5