Many cultural organizations, such as the US National Archives, provide a read-write web API (Application Programming Interface) for accessing catalog content from a program. Typically, these catalogs when queried through API calls, return JSON-formated data. This data can be viewed through a JSON Browser or through regular browsers (sometimes requiring a JSON extension). An online viewer we have used is: jsoneditoronline.org
Record groups and collections are the highest level of archival description. Record groups most often contain accessioned records from federal agencies. Collections are generally made up of non-federal records that were donated to NARA, usually from presidential administrations.
Beneath the record group or collection is the series. A series is a group of records that are related as the result of being created, received, or used in the course of the same activity. The series is the descriptive level that is connected to the archival creator - the person or organization who created and/or maintained the records.
And beneath the series are file units or items. File units contain a more specific collection of related records within a series. A file unit often contains multiple discrete records, for example a grouping of memos. File units are always contained by series, while items can be contained by either series or file units. An item often reflects a specific record, for example a single memo. Both file units and items can contain digital objects, such as digitized pages produced from analog holdings.
Examples of API calls:
See:
Let's learn more about JSON first:
The following example shows a possible JSON object representation describing a person.
In other words JSON can lend itself to modeling complex hierarchical nested data.
Because Dictionaries in the Python programming languange are one of the four principal collection types (List, Tuple, Set, and Dictionary) and are used to store information in key:value pairs, they are a natural way of expressing and manipulating JSON content.
Python code for creating and printing your first dictionary:
firstdict = {
"filename": "readme.txt",
"year": 2021,
"pagecount": 12
}
print( firstdict )
{'filename': 'readme.txt', 'year': 2021, 'pagecount': 12}
print( firstdict[ "year" ])
2021
Python code for creating and printing your second dictionary:
seconddict = {
"filename": "readme.txt",
"year": 2021,
"pagecount": 12,
"year": 2000
}
print( seconddict )
{'filename': 'readme.txt', 'year': 2000, 'pagecount': 12}
The Second Dictionary example shows that in Python (as of version 3.7), dictionaries are ordered (items have a defined order, and that order will not change), and do not allow duplicates (duplicate values will overwite existing values).
The four Python collection data types are: