query-8903a9d908414165a87b69b891cbc946
List UNLV Archival Collections with the subject heading LGBTQ+ Community
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?inventoryNum ?collection ?itemDescription ?describedAt
WHERE
{
{
?item wdt:P5008 wd:Q100202113 ; wdt:P973 ?uri ; wdt:P921 wd:Q51393 .
?item p:P485 ?archivesAt.
?archivesAt ps:P485 wd:Q73644758 .
OPTIONAL {?archivesAt pq:P1810 ?collection } .
OPTIONAL {?archivesAt pq:P217 ?inventoryNum } .
OPTIONAL {?archivesAt pq:P973 ?describedAt } .
}SERVICE wikibase:label {bd:serviceParam wikibase:language "en" . }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?archivesAt")
v4("?collection"):::projected
v6("?describedAt"):::projected
v5("?inventoryNum"):::projected
v1("?item"):::projected
v2("?uri")
c5(["wd:Q51393"]):::iri
c15(["en"]):::literal
c2(["wd:Q100202113"]):::iri
c13(["bd:serviceParam"]):::iri
c8(["wd:Q73644758"]):::iri
v1 --"p:direct/P5008"--> c2
v1 --"p:direct/P973"--> v2
v1 --"p:direct/P921"--> c5
v1 --"p:P485"--> v3
v3 --"p:statement/P485"--> c8
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:qualifier/P1810".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:qualifier/P217".-> v5
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:qualifier/P973".-> v6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c13 --"wikibase:language"--> c15
end