query-1a3b633d9d645382cf36f9316c5683f9
Global map of archives
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Map{"hide": "?coords"}
SELECT DISTINCT ?archive ?archiveLabel (SAMPLE(?coords) AS ?coords) (SAMPLE(?image) AS ?image) ?website ?layer WHERE {
?archive wdt:P31 ?type.
?type (wdt:P279*) wd:Q166118.
?archive wdt:P625 ?coords.
OPTIONAL { ?archive wdt:P18 ?image. }
OPTIONAL { ?archive wdt:P856 ?website. }
SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".
?archive rdfs:label ?archiveLabel.
?type rdfs:label ?layer.
}
}
GROUP BY ?archive ?archiveLabel ?website ?layer
ORDER BY (UCASE(?layer))
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?archive"):::projected
v7("?archiveLabel"):::projected
v8("?coords"):::projected
v8("?image"):::projected
v1("?layer"):::projected
v3("?type")
v6("?website"):::projected
c3(["wd:Q166118"]):::iri
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"wdt:P31"--> v3
v3 --"wdt:P279"--> c3
v2 --"wdt:P625"--> v8
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P18".-> v8
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P856".-> v6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
v2 --"rdfs:label"--> v7
v3 --"rdfs:label"--> v1
end
bind2[/"sample(?coords)"/]
v8 --o bind2
bind2 --as--o v8
bind3[/"sample(?image)"/]
v8 --o bind3
bind3 --as--o v8