query-07b1706b10d325705f2c3a3ed384a2da
Subclasses
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#>
# map of libraries from austria with ISIL-code or twitter-handle
#defaultView:Map
SELECT ?item ?itemLabel ?isil (URI(CONCAT("https://twitter.com/",?twitter)) AS ?twitterURL) ?coords
WHERE
{
?item wdt:P17 wd:Q40; wdt:P31/wdt:P279* wd:Q7075
optional { ?item wdt:P791 ?isil.
}
optional {
?item wdt:P2002 ?twitter.
}
optional { ?item wdt:P625 ?coords. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} ORDER BY ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?coords"):::projected
v3("?isil"):::projected
v2("?item"):::projected
v1("?itemLabel"):::projected
v4("?twitter"):::projected
v6("?twitterURL")
a1((" "))
c5(["wd:Q7075"]):::iri
c10(["bd:serviceParam"]):::iri
c2(["wd:Q40"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"wdt:P17"--> c2
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P791".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P2002".-> v4
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P625".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end
bind0[/"concat('https://twitter.com/',?twitter)"/]
v4 --o bind0
bind0 --as--o v6