query-fa084eaec8c6a11b33f7287b0e3e6dd5
Visualize hotels, casinos, casino hotels, and resorts of Nevada (Color Coded by P31)Generate map of all casino (Q133215), casino hotel (Q16852719), hotel (Q27686), and resort (Q875157) in the state of Nevada (Q1227)
Use at
- https://query.wikidata.org/sparql
#defaultView:Map
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?item ?itemLabel ?coor ?layerLabel
WHERE {
VALUES ?o { wd:Q133215 wd:Q16852719 wd:Q27686 wd:Q875157 }
?item wdt:P31 ?o ;
?range wd:Q1227;
wdt:P625 ?coor.
BIND(?o AS ?layer).
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}ORDER BY ASC(?itemLabel)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?coor"):::projected
v3("?item"):::projected
v1("?itemLabel"):::projected
v6("?layer")
v2("?o")
v4("?range")
c2(["wd:Q1227"]):::iri
c5(["bd:serviceParam"]):::iri
c7(["en"]):::literal
bind0[/VALUES ?o/]
bind0-->v2
bind00(["wd:Q133215"])
bind00 --> bind0
bind01(["wd:Q16852719"])
bind01 --> bind0
bind02(["wd:Q27686"])
bind02 --> bind0
bind03(["wd:Q875157"])
bind03 --> bind0
v3 --"wdt:P31"--> v2
v3 -->v4--> c2
v3 --"wdt:P625"--> v5
bind1[/"?o"/]
v2 --o bind1
bind1 --as--o v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end