query-e3edccbc80fac389c22e8f77397fa802
Query #9: Select items which has 'Oral Histories' held by the University of Nevada, Las Vegas Libraries
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
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 DISTINCT ?item ?itemLabel ?itemDescription ?oralHistory ?inventoryNum ?describedAt
WHERE
{
?item p:P9600 ?oralHistoryAt .
?oralHistoryAt ps:P9600 wd:Q73644758 .
OPTIONAL {?oralHistoryAt pq:P1810 ?oralHistory } .
OPTIONAL {?oralHistoryAt pq:P217 ?inventoryNum } .
OPTIONAL {?oralHistoryAt pq:P973 ?describedAt } .
FILTER (REGEX(STR(?describedAt),"^http://n2t.net/"))
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;
v1("?describedAt"):::projected
v5("?inventoryNum"):::projected
v2("?item"):::projected
v4("?oralHistory"):::projected
v3("?oralHistoryAt")
c9(["bd:serviceParam"]):::iri
c11(["en"]):::literal
c4(["wd:Q73644758"]):::iri
f0[["regex(str(?describedAt),'^http://n2t.net/')"]]
f0 --> v1
v2 --"p:P9600"--> v3
v3 --"p:statement/P9600"--> c4
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".-> v1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end