Overview

Here is how to get a list of properties for a specific vocabulary in Omeka S.

Method

We will target the following.

https://uta.u-tokyo.ac.jp/uta/api/properties?vocabulary_id=5

The following program writes the property list to MS Excel.

import pandas as pd
import requests

url = "https://uta.u-tokyo.ac.jp/uta/api/properties?vocabulary_id=5"

page = 1

data_list = []

while 1:
    response = requests.get(url + "&page=" + str(page))
    data = response.json()
    if len(data) == 0:
        break

    data_list.extend(data)

    page += 1

remove_keys = ["@context", "@id", "@type", "o:vocabulary", "o:id", "o:local_name"]

for data in data_list:
    for key in remove_keys:
        if key in data:
            del data[key]



# DataFrameに変換
df = pd.DataFrame(data_list)

df.to_excel("archiveshub.xlsx", index=False)

Result

The following MS Excel file is obtained.

o:labelo:commento:term
Maintenance AgencyA repository responsible for the maintenance of the archival finding aid.archiveshub:maintenanceAgency
Is Maintenance Agency OfAn archival finding aid for which the repository is responsible for the maintenance.archiveshub:isMaintenanceAgencyOf
Encoded AsAn EAD document that is an encoding of the archival finding aid.archiveshub:encodedAs
Encoding OfAn archival finding aid of which the EAD document is an encoding.archiveshub:encodingOf
AdministersA resource which the agent manages.archiveshub:administers
Is Administered ByAn agent that manages the resource.archiveshub:isAdministeredBy
Provides Access ToA resource to which the agent provides access.archiveshub:providesAccessTo
Access Provided ByAn agent that provides access to the resource.archiveshub:accessProvidedBy
Is Publisher OfA resource which the agent makes available.archiveshub:isPublisherOf
LevelAn indicator of the part of an archival collection constituted by an archival resource.archiveshub:level
Is Represented ByA resource which represents the archival resource, such as an image of a text page, a transcription of text, an audio or video clip, or an aggregation of such resources.archiveshub:isRepresentedBy
OriginationAn agent responsible for the creation or accumulation of the archival resource.archiveshub:origination
Is Origination OfAn archival resource for which the agent is responsible for the creation or accumulation.archiveshub:isOriginationOf
Has Biographical HistoryA narrative or chronology that places archival materials in context by providing information about their creator(s).archiveshub:hasBiographicalHistory
Is Biographical History ForAn archival resource that the narrative or chronology places in context by providing information about their creator(s).archiveshub:isBiographicalHistoryFor
Associated WithA concept adjudged by a cataloguer to have an association with an archival resource which they consider useful for the purposes of discovering that resource.archiveshub:associatedWith
MembersMembersarchiveshub:members
Country CodeThe ISO 3166-1 code for the country of the repository.archiveshub:countryCode
Maintenance Agency CodeThe ISO 15511 code for the repository.archiveshub:maintenanceAgencyCode
BodyA literal representation of the content of the document.archiveshub:body
Date created or accumulatedThe date, represented as a string, of a time interval during which the archival resource was created or accumulated.archiveshub:dateCreatedAccumulatedString
Date created or accumulatedThe date, represented as a typed literal, of a time interval during which the archival resource was created or accumulated.archiveshub:dateCreatedAccumulated
Date created or accumulated (start)The start date, represented as a typed literal, of a time interval during which the archival resource was created or accumulated.archiveshub:dateCreatedAccumulatedStart
Date created or accumulated (end)The end date, represented as a typed literal, of a time interval during which the archival resource was created or accumulated.archiveshub:dateCreatedAccumulatedEnd
Date of BirthThe date of birth of the person.archiveshub:dateBirth
Date of DeathThe date of death of the person.archiveshub:dateDeath
ExtentThe size of the archival resource.archiveshub:extent
Custodial HistoryCustodial Historyarchiveshub:custodialHistory
AcquisitionsAcquisitionsarchiveshub:acquisitions
Scope and ContentScope and Contentarchiveshub:scopecontent
AppraisalAppraisalarchiveshub:appraisal
AccrualsAccrualsarchiveshub:accruals
Access RestrictionsAccess Restrictionsarchiveshub:accessRestrictions
Use RestrictionsUse Restrictionsarchiveshub:useRestrictions
Physical and Technical RequirementsPhysical and Technical Requirementsarchiveshub:physicalTechnicalRequirements
Other Finding AidsOther Finding Aidsarchiveshub:otherFindingAids
Location of OriginalsLocation of Originalsarchiveshub:locationOfOriginals
Alternate Forms AvailableAlternate Forms Availablearchiveshub:alternateFormsAvailable
Related MaterialRelated Materialarchiveshub:relatedMaterial
BibliographyBibliographyarchiveshub:bibliography
NoteNotearchiveshub:note
ProcessingProcessingarchiveshub:processing
NameNamearchiveshub:name
DatesDatesarchiveshub:dates
LocationLocationarchiveshub:location
OtherOtherarchiveshub:other
SurnameThe surname of a person who is the focus of the conceptarchiveshub:surname
ForenameThe forename of a person who is the focus of the conceptarchiveshub:forename
TitleThe title of a person who is the focus of the conceptarchiveshub:title
EpithetEpithetarchiveshub:epithet
Archival BoxA number of archival boxesarchiveshub:archbox
MetreA number of metresarchiveshub:metre
Cubic MetreA number of cubic metresarchiveshub:cubicmetre
FolderA number of foldersarchiveshub:folder
EnvelopeA number of envelopesarchiveshub:envelope
VolumeA number of volumesarchiveshub:volume
FileA number of filesarchiveshub:file
ItemA number of itemsarchiveshub:item
PageA number of pagesarchiveshub:page
PaperA number of papersarchiveshub:paper

Summary

I hope this is helpful when using Omeka S.