query-871856ca4a54385f2d6b94f4f7893f8d
Todas las iglesias del Camino de Santiago
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?iglesia ?iglesiaLabel ?coordenadas (SAMPLE(?imagen) AS ?fotografia) WHERE { ?iglesia wdt:P31/wdt:P279* wd:Q16970 ; wdt:P361* wd:Q41150 ; wdt:P625 ?coordenadas . OPTIONAL {?iglesia wdt:P18 ?imagen .} SERVICE wikibase:label { bd:serviceParam wikibase:language "es". } } GROUP BY ?iglesia ?iglesiaLabel ?coordenadas
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?coordenadas"):::projected
v4("?fotografia")
v1("?iglesia"):::projected
v3("?imagen"):::projected
a1((" "))
c9(["bd:serviceParam"]):::iri
c5(["wd:Q41150"]):::iri
c3(["wd:Q16970"]):::iri
c11(["es"]):::literal
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v1 --"wdt:P361"--> c5
v1 --"wdt:P625"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P18".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end
bind1[/"sample(?imagen)"/]
v3 --o bind1
bind1 --as--o v4