A collection of Jupyter notebooks to convert Sinopia RDF to Alma RDF/XML and MARCXML. Also includes a pilot test to generate OCLC RDF from Alma BF.
ALMA_API_KEY=apikey
ALMA_URI_REGION=url
Region details and API key generation for your Alma system can be found here: Alma Developer Network. Consider using Alma Sandbox API for testing. The API key should have read/write permissions for bib operations.
Region | URL |
---|---|
North America | https://api-na.hosted.exlibrisgroup.com |
Europe | https://api-eu.hosted.exlibrisgroup.com |
Asia Pacific | https://api-ap.hosted.exlibrisgroup.com |
Canada | https://api-ca.hosted.exlibrisgroup.com |
China | https://api-cn.hosted.exlibrisgroup.com.cn |
To generate RDF/XML for Alma Work or Instance start the binder and navigate to the notebooks. If posting to Alma, the system requires the Work resource to be sent in first before the Instance. Run the notebook for Work first, then the Instance notebook.
To preview MARCXML from sinopia RDF using the Library of Congress transformation code simply run the rdf2marcxml.ipynb notebook.
Note: In the notebook replace the URI with your sinopia Instance URI. The setup uses the Work linked to that Instance URI.
This is a pilot test to generate OCLC RDF structure from Alma BF. Available by way of an SRU query, examples in the almabf2oclc.ipynb notebook.