query-5fab7e6dcf962135684df24541a56301
Archives with heritage designation (P1435)
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#>
SELECT ?archive ?archiveLabel ?heritage_designation ?heritage_designationLabel ?instance_of ?countryLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?archive (wdt:P31/(wdt:P279*)) wd:Q166118.
OPTIONAL { ?archive wdt:P1435 ?heritage_designation.
?heritage_designation wdt:P31 ?instance_of}
OPTIONAL { ?archive wdt:P17 ?country. }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?archive"):::projected
v4("?country")
v2("?heritage_designation"):::projected
v3("?instance_of"):::projected
a1((" "))
c2(["bd:serviceParam"]):::iri
c7(["wd:Q166118"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c7
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P1435".-> v2
v2 --"wdt:P31"--> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P17".-> v4
end