😎
Access to MemoryのRESTful APIを試す
概要
Access to MemoryのRESTful APIの一例を試してみます。
以下が公式のドキュメントです。
Browse taxonomy terms
https://demo.accesstomemory.org/api/taxonomies/34
[
{
"name": "Collection"
},
{
"name": "File"
},
{
"name": "Fonds"
},
{
"name": "Item"
},
{
"name": "Part"
},
{
"name": "Record group"
},
{
"name": "Series"
},
{
"name": "Sous-fonds"
},
{
"name": "Subseries"
}
]
Browse information objects endpoint
https://demo.accesstomemory.org/api/informationobjects
{
"total": 460,
"results": [
{
"reference_code": "CA ON00012 SC105",
"slug": "kathleen-munn-fonds",
"title": "Kathleen Munn fonds",
"repository": "Art Gallery of Ontario",
"level_of_description": "Fonds",
"creators": [
"Munn, Kathleen Jean, 1887-1974"
],
"creation_dates": [
"1912-[193-]"
]
},
{
"reference_code": "CA ON00012 SC069",
"slug": "gallery-44-centre-for-contemporary-photography-fonds",
"title": "Gallery 44 Centre for Contemporary Photography fonds",
"repository": "Art Gallery of Ontario",
"level_of_description": "Fonds",
"creators": [
"Gallery 44 Centre for Contemporary Photography"
],
"creation_dates": [
"[ca. 1979] - 2000"
],
"place_access_points": [
"Toronto",
"York, Regional Municipality of",
"Ontario",
"Canada"
]
},
{
"slug": "bitter-paradise-sell-out-of-east-timor-fonds",
"title": "*Bitter Paradise: The Sell-Out of East Timor* fonds",
"repository": "University of British Columbia Archives",
"level_of_description": "Fonds",
"creators": [
"Briere, Elaine"
],
"creation_dates": [
"1985 - 1997"
]
},
...
Read information object endpoint
以下の記事でOAIを通じて取得したレコードを、API経由で取得してみます。
https://demo.accesstomemory.org/api/informationobjects/canadian-water-resources-association-national
以下の結果が得られました。
{
"parent": "canadian-water-resources-association-fonds",
"reference_code": "CA ON00362 S720-1",
"title": "Canadian Water Resources Association : National",
"publication_status": "published",
"level_of_description": "Series",
"creators": [
{
"authorized_form_of_name": "Canadian Water Resources Association",
"dates_of_existence": "1947 -",
"history": "The Canadian Water Resources Association is a national organization of individuals and organizations interested in the management of Canada's water resources. It has branch organizations in most provinces and territories. CWRA history can be traced back to 1947 when the first meeting was held in Alberta as the Western Canada Reclamation Association. CWRA exists to stimulate public awareness and understanding of Canada's water resources, to encourage public recognition of the high priority of water as a valued resource, to provide a forum for the exchange of information and opinion relating to the management of Canada's water resources, and to participate with appropriate agencies in international water resource activities",
"inherited_from": "Canadian Water Resources Association fonds"
}
],
"repository": "Wilfrid Laurier University Archives",
"repository_inherited_from": "Canadian Water Resources Association fonds"
}
まとめ
Browse information objects endpoint
においては、さまざまなフィルタリングが可能なようでした。
AtoMで公開されているデータを色々と応用できそうでした。
Discussion