query-5450fcec5945fedc3c1292d39e11dc33

rq turtle/ttl

Graph UNLV Archival Collections with the subject heading 'LGBTQ+ Community'

Use at

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#>
#defaultView:Graph
SELECT ?item ?itemLabel ?inventoryNum ?collection ?itemDescription ?describedAt ?subject ?subjectLabel ("CF0A2C" as ?rgb) 
WHERE
{
 {
  ?item wdt:P5008 wd:Q100202113 ; wdt:P921 wd:Q51393 ; wdt:P973 ?uri ; wdt:P921 ?subject .
  ?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; v4("?archivesAt") v5("?collection"):::projected v7("?describedAt"):::projected v6("?inventoryNum"):::projected v1("?item"):::projected v8("?rgb") v3("?subject"):::projected v2("?uri") c4(["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/P921"--> c4 v1 --"p:direct/P973"--> v2 v1 --"p:direct/P921"--> v3 v1 --"p:P485"--> v4 v4 --"p:statement/P485"--> c8 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v4 -."p:qualifier/P1810".-> v5 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v4 -."p:qualifier/P217".-> v6 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v4 -."p:qualifier/P973".-> v7 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c13 --"wikibase:language"--> c15 end bind0[/"'CF0A2C'"/] bind0 --as--o v8