query-442cf66c62eeb9c2dd53393e832982cd
Map of manuscript collections
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 ?link ?collectionLabel ?coords
WHERE {
{SELECT DISTINCT ?collection ?coords WHERE {?q (wdt:P31/wdt:P279*) wd:Q87167;
wdt:P195 ?collection .
?collection wdt:P625 ?coords.
} }
BIND (URI(CONCAT("/collection/",SUBSTR(STR(?collection),32))) AS ?link).
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?collection")
v3("?coords"):::projected
v4("?link"):::projected
v1("?q")
a1((" "))
c3(["wd:Q87167"]):::iri
c7(["bd:serviceParam"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v1 --"wdt:P195"--> v2
v2 --"wdt:P625"--> v3
bind0[/"concat('/collection/',substring(str(?collection),'32^^xsd:integer'))"/]
v2 --o bind0
bind0 --as--o v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end