query-4332e2be232f860821ddb575ad3ffad7
TODO
Use at
- https://query.wikidata.org/sparql
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#>
SELECT ?id (CONCAT(?rijksmonumentid, ' - ', ?article_fmt, ' - ', ?adres) AS ?title)
WHERE {
?id wdt:P669 wd:Q1083850 ;
wdt:P1435 wd:Q916333 ;
wdt:P6375 ?adres ;
wdt:P359 ?rijksmonumentid ;
rdfs:label ?label .
FILTER (LANG(?label)='nl')
OPTIONAL {
?article schema:about ?id ;
schema:isPartOf <https://nl.wikipedia.org/> ;
schema:name ?articlename .
}
BIND(IF(BOUND(?article), CONCAT('[[', ?articlename, '|', ?label, ']]'), ?label) AS ?article_fmt)
}
LIMIT 200
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?adres"):::projected
v5("?article")
v7("?article_fmt"):::projected
v6("?articlename")
v2("?id"):::projected
v1("?label")
v4("?rijksmonumentid"):::projected
v8("?title")
c3(["wd:Q1083850"]):::iri
c5(["wd:Q916333"]):::iri
c11([https://nl.wikipedia.org/]):::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
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v5 -."schema:about".-> v2
v5 --"schema:isPartOf"--> c11
v5 --"schema:name"--> v6
end
bind1[/"if(bound(?article),concat('#91;#91;',?articlename,'|',?label,'#93;#93;'),?label)"/]
v5 --o bind1
v6 --o bind1
v1 --o bind1
bind1 --as--o v7
bind2[/"concat(?rijksmonumentid,' - ',?article_fmt,' - ',?adres)"/]
v4 --o bind2
v7 --o bind2
v3 --o bind2
bind2 --as--o v8