Overview
The Cultural Japan RDF store contains information about exhibitions. A list can be retrieved using the following query, which specifies type:展覧会 (Exhibition) for rdf:type.
PREFIX type: <https://jpsearch.go.jp/term/type/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
select distinct * where {
?s rdf:type type:展覧会;
rdfs:label ?label .
}
This article introduces an example of how to utilize this exhibition information.
List of Exhibitions
Each exhibition has values such as jps:temporal and jps:spatial (which may have multiple values).
https://ld.cultural.jp/data/apmoa-exhib-2021-soga
The following query can be used to retrieve a list including exhibition metadata.
PREFIX type: <https://jpsearch.go.jp/term/type/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX jps: <https://jpsearch.go.jp/term/property#>
select distinct
?s ?label ?access ?image
(GROUP_CONCAT(DISTINCT ?spatial_labels; separator="|") AS ?spacial_label)
(GROUP_CONCAT(DISTINCT ?temporal_labels; separator="|") AS ?temporal_label)
(GROUP_CONCAT(DISTINCT ?jps_temporals; separator="|") AS ?jps_temporal)
(GROUP_CONCAT(DISTINCT IF(BOUND(?descriptions), CONCAT(str(?descriptions), IF(lang(?descriptions) != "", CONCAT("@", lang(?descriptions)), "")), ""); separator="|") AS ?description)
(COUNT(DISTINCT ?workFeatured) AS ?countOfWorkFeatured)
where {
?s rdf:type type:展覧会;
rdfs:label ?label .
optional { ?s jps:accessInfo/schema:provider/rdfs:label ?access . }
optional { ?s schema:spatial/rdfs:label ?spatial_labels . }
optional { ?s schema:temporal/rdfs:label ?temporal_labels . }
optional { ?s jps:temporal/schema:description ?jps_temporals . }
optional { ?s schema:description ?descriptions . }
optional { ?s schema:image ?image . }
optional {?s schema:workFeatured ?workFeatured }
}
group by ?s ?label ?spatial_label ?temporal_label ?description ?jps_temporal ?access ?image
order by ?s
For schema:description, which can have multiple values, processing has been added to concatenate results with |.
Summary
This article only covers retrieving a list of exhibitions. Topics such as converting to IIIF collections and utilizing individual exhibition information will be covered in a separate article.
I hope this serves as a useful reference for utilizing the Cultural Japan RDF store and for searching records with multiple values in the same field.