query-312e8b19c9e1072cf9e1b1f07d3c66ce
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Theaters and amphitheaters
#defaultView:Map
SELECT DISTINCT ?place ?placeLabel ?coord
(URI(CONCAT("http://amphi-theatrum.de/",?amphitheatrum,".html")) AS ?amphitheatrumUrl)
(URI(CONCAT("http://theatrum.de/",?theatrum,".html")) AS ?theatrumUrl)
WHERE {
{ ?place wdt:P5633 ?amphitheatrum . } UNION
{ ?place wdt:P5634 ?theatrum . }
OPTIONAL { ?place wdt:P625 ?coord . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "it,en,de,es". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?amphitheatrum"):::projected
v5("?amphitheatrumUrl")
v4("?coord"):::projected
v1("?place"):::projected
v3("?theatrum"):::projected
v6("?theatrumUrl")
c5(["bd:serviceParam"]):::iri
c7(["it,en,de,es"]):::literal
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P5634"--> v3
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P5633"--> v2
end
union0r <== or ==> union0l
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P625".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind0[/"concat('http://amphi-theatrum.de/',?amphitheatrum,'.html')"/]
v2 --o bind0
bind0 --as--o v5
bind1[/"concat('http://theatrum.de/',?theatrum,'.html')"/]
v3 --o bind1
bind1 --as--o v6