query-96ab40c08d20fa6899abe617bd299400
Visualize Las Vegas LGBTQ+ BusinessesGenerate map of LGBTQ+ Businesses
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#>
#defaultView:Map
SELECT DISTINCT ?item ?itemLabel ?itemDescription ?coordinate ?layerLabel ?itemType
WHERE
{
{VALUES (?itemType) {(wd:Q1043639)(wd:Q51167626)(wd:Q61696039)(wd:Q115689759)(wd:Q106634743)(wd:Q1531507)(wd:Q115777618)(wd:Q115769587)(wd:Q105321449)(wd:Q30324198)(wd:Q116167940)(wd:Q52815)(wd:Q116543473)(wd:Q116546701)(wd:Q116547044)(wd:Q2416217)(wd:Q64606659)(wd:Q988108)(wd:Q1887898)(wd:Q124964)(wd:Q116025472)(wd:Q163740)} # -- ADD P31 VALUES HERE --
?item wdt:P31 ?itemType .
OPTIONAL {?item wdt:P625 ?coordinate } .
?item wdt:P5008 wd:Q100202113 .
BIND(?itemType 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;
v4("?coordinate"):::projected
v3("?item"):::projected
v1("?itemLabel"):::projected
v2("?itemType"):::projected
v5("?layer")
c6(["bd:serviceParam"]):::iri
c8(["en"]):::literal
c4(["wd:Q100202113"]):::iri
bind0[/VALUES ?itemType/]
bind0-->v2
bind00(["wd:Q1043639"])
bind00 --> bind0
bind01(["wd:Q51167626"])
bind01 --> bind0
bind02(["wd:Q61696039"])
bind02 --> bind0
bind03(["wd:Q115689759"])
bind03 --> bind0
bind04(["wd:Q106634743"])
bind04 --> bind0
bind05(["wd:Q1531507"])
bind05 --> bind0
bind06(["wd:Q115777618"])
bind06 --> bind0
bind07(["wd:Q115769587"])
bind07 --> bind0
bind08(["wd:Q105321449"])
bind08 --> bind0
bind09(["wd:Q30324198"])
bind09 --> bind0
bind010(["wd:Q116167940"])
bind010 --> bind0
bind011(["wd:Q52815"])
bind011 --> bind0
bind012(["wd:Q116543473"])
bind012 --> bind0
bind013(["wd:Q116546701"])
bind013 --> bind0
bind014(["wd:Q116547044"])
bind014 --> bind0
bind015(["wd:Q2416217"])
bind015 --> bind0
bind016(["wd:Q64606659"])
bind016 --> bind0
bind017(["wd:Q988108"])
bind017 --> bind0
bind018(["wd:Q1887898"])
bind018 --> bind0
bind019(["wd:Q124964"])
bind019 --> bind0
bind020(["wd:Q116025472"])
bind020 --> bind0
bind021(["wd:Q163740"])
bind021 --> bind0
v3 --"wdt:P31"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P625".-> v4
end
v3 --"wdt:P5008"--> c4
bind1[/"?itemType"/]
v2 --o bind1
bind1 --as--o v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end