query-2c64af0ded2a5ad3ff91a794c0bdc3be
LIST OF ARCHIVAL COLLECTIONS THAT FOCUS ON LGBTQ+ SELECT DISTINCT ?item ?itemLabel ?inventoryNum ?itemDescription (GROUP_CONCAT(DISTINCT ?subjectLabel; SEPARATOR = "; ") AS ?subjects) ?describedAt WHERE {
VALUES ?subject { wd:Q51393 wd:Q17625913 wd:Q17422 wd:Q116543473 wd:Q64606659 wd:Q337084 wd:Q114856929 wd:Q12199
wd:Q51406 wd:Q51167626 wd:Q116547044 wd:Q116392423 wd:Q33487 wd:Q11076311 wd:Q115777618 wd:Q51402
}
?item wdt:P5008 wd:Q100202113 ; wdt:P921 ?subject .
?subject rdfs:label ?subjectLabel
FILTER (LANG(?subjectLabel) = "en")
?item p:P485 ?archivesAt.
?archivesAt ps:P485 wd:Q73644758 .
OPTIONAL {?archivesAt pq:P217 ?inventoryNum } .
OPTIONAL {?archivesAt pq:P973 ?describedAt } .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
} GROUP BY ?item ?itemLabel ?inventoryNum ?itemDescription ?subjects ?describedAt
ORDER BY ASC (?inventoryNum)
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 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#>
# LIST OF ARCHIVAL COLLECTIONS THAT FOCUS ON LGBTQ+
SELECT DISTINCT ?item ?itemLabel ?inventoryNum ?itemDescription (GROUP_CONCAT(DISTINCT ?subjectLabel; SEPARATOR = "; ") AS ?subjects) ?describedAt
WHERE
{
VALUES ?subject { wd:Q51393 wd:Q17625913 wd:Q17422 wd:Q116543473 wd:Q64606659 wd:Q337084 wd:Q114856929 wd:Q12199
wd:Q51406 wd:Q51167626 wd:Q116547044 wd:Q116392423 wd:Q33487 wd:Q11076311 wd:Q115777618 wd:Q51402
}
?item wdt:P5008 wd:Q100202113 ; wdt:P921 ?subject .
?subject rdfs:label ?subjectLabel
FILTER (LANG(?subjectLabel) = "en")
?item p:P485 ?archivesAt.
?archivesAt ps:P485 wd:Q73644758 .
OPTIONAL {?archivesAt pq:P217 ?inventoryNum } .
OPTIONAL {?archivesAt pq:P973 ?describedAt } .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
} GROUP BY ?item ?itemLabel ?inventoryNum ?itemDescription ?subjects ?describedAt
ORDER BY ASC (?inventoryNum)