query-caf0896da8fd039dfea7d3a8e506e3c5
Todas las clases de playas alrededor de la ciudad de AlmerÃa
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 DISTINCT ?item ?itemLabel ?imagen (SAMPLE(?coords) AS ?coords) ?P131 ?P131Label WHERE {
wd:Q10400 wdt:P625 ?lugar.
VALUES ?clase {
wd:Q40080 wd:Q38051384 wd:Q53800413 wd:Q28060956
wd:Q28060923 wd:Q3390872 wd:Q98375039 wd:Q57409799 wd:Q35800652 wd:Q35101126
wd:Q24633899 wd:Q18751767 wd:Q17155155 wd:Q15849385 wd:Q12353867 wd:Q11959973
wd:Q11941943 wd:Q9089165 wd:Q7900097 wd:Q7493708 wd:Q6881911 wd:Q5655097
wd:Q4831654 wd:Q2892735 wd:Q1059407 wd:Q847935 wd:Q573367 wd:Q567998
}
SERVICE wikibase:around {
?item wdt:P625 ?coords.
bd:serviceParam wikibase:center ?lugar;
wikibase:radius "20".
}
{ ?item wdt:P31 ?clase. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "es". }
OPTIONAL { ?item wdt:P18 ?imagen. }
OPTIONAL { ?item wdt:P131 ?P131. }
}
GROUP BY ?item ?itemLabel ?imagen ?P131 ?P131Label
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?P131"):::projected
v2("?clase")
v7("?coords"):::projected
v5("?imagen"):::projected
v3("?item"):::projected
v1("?lugar")
c11(["es"]):::literal
c4(["bd:serviceParam"]):::iri
c1(["wd:Q10400"]):::iri
c7(["20"]):::literal
c1 --"wdt:P625"--> v1
bind0[/VALUES ?clase/]
bind0-->v2
bind00(["wd:Q40080"])
bind00 --> bind0
bind01(["wd:Q38051384"])
bind01 --> bind0
bind02(["wd:Q53800413"])
bind02 --> bind0
bind03(["wd:Q28060956"])
bind03 --> bind0
bind04(["wd:Q28060923"])
bind04 --> bind0
bind05(["wd:Q3390872"])
bind05 --> bind0
bind06(["wd:Q98375039"])
bind06 --> bind0
bind07(["wd:Q57409799"])
bind07 --> bind0
bind08(["wd:Q35800652"])
bind08 --> bind0
bind09(["wd:Q35101126"])
bind09 --> bind0
bind010(["wd:Q24633899"])
bind010 --> bind0
bind011(["wd:Q18751767"])
bind011 --> bind0
bind012(["wd:Q17155155"])
bind012 --> bind0
bind013(["wd:Q15849385"])
bind013 --> bind0
bind014(["wd:Q12353867"])
bind014 --> bind0
bind015(["wd:Q11959973"])
bind015 --> bind0
bind016(["wd:Q11941943"])
bind016 --> bind0
bind017(["wd:Q9089165"])
bind017 --> bind0
bind018(["wd:Q7900097"])
bind018 --> bind0
bind019(["wd:Q7493708"])
bind019 --> bind0
bind020(["wd:Q6881911"])
bind020 --> bind0
bind021(["wd:Q5655097"])
bind021 --> bind0
bind022(["wd:Q4831654"])
bind022 --> bind0
bind023(["wd:Q2892735"])
bind023 --> bind0
bind024(["wd:Q1059407"])
bind024 --> bind0
bind025(["wd:Q847935"])
bind025 --> bind0
bind026(["wd:Q573367"])
bind026 --> bind0
bind027(["wd:Q567998"])
bind027 --> bind0
subgraph s1["http://wikiba.se/ontology#around"]
style s1 stroke-width:4px;
v3 --"wdt:P625"--> v7
c4 --"wikibase:center"--> v1
c4 --"wikibase:radius"--> c7
end
v3 --"wdt:P31"--> v2
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c4 --"wikibase:language"--> c11
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P18".-> v5
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P131".-> v6
end
bind2[/"sample(?coords)"/]
v7 --o bind2
bind2 --as--o v7