query-d7a8b8f191a464626562625a45d0795e
Churches of Saint James the Greater in Spain
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 bd: <http://www.bigdata.com/rdf#>
#Churches of Saint James the Greater in Spain
#Usuario:Galopax/Pintando_mapas_2 (WP-ES)
#User:Galopax/Painting maps (WD)
#added 2021-07-13
#defaultView:Map
SELECT ?a ?aLabel ?coordenadas ?image ?sitelinkES ?website WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?a (wdt:P131*) wd:Q29.
{ ?a wdt:P138 wd:Q43999. }
UNION
{ ?a wdt:P825 wd:Q43999. }
?a wdt:P625 ?coordenadas.
OPTIONAL { ?a wdt:P856 ?website. }
OPTIONAL { ?a wdt:P18 ?image.}
OPTIONAL { ?sitelinkES schema:isPartOf <https://es.wikipedia.org/>;
schema:about ?a.
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?a"):::projected
v2("?coordenadas"):::projected
v4("?image"):::projected
v5("?sitelinkES"):::projected
v3("?website"):::projected
c8(["wd:Q43999"]):::iri
c2(["bd:serviceParam"]):::iri
c6(["wd:Q29"]):::iri
c14([https://es.wikipedia.org/]):::iri
c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v1 --"wdt:P131"--> c6
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P825"--> c8
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P138"--> c8
end
union0r <== or ==> union0l
end
v1 --"wdt:P625"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P856".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P18".-> v4
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v5 -."schema:isPartOf".-> c14
v5 --"schema:about"--> v1
end