mirror of
https://github.com/markpbaggett/oaitools.nim
synced 2026-01-07 22:11:10 +00:00
No description
| .github/workflows | ||
| docs | ||
| mocks | ||
| src | ||
| tests | ||
| .gitignore | ||
| oaitools.nimble | ||
| README.md | ||
Nim OAI Tools
A high-level OAI-PMH library for Nim.
Installation
nimble install https://github.com/markpbaggett/oaitools.nim
Examples
Get number of records in a request
import oaitools
var x = newOaiRequest("https://dpla.lib.utk.edu/repox/OAIHandler")
echo x.get_complete_size("MODS")
Get metadata prefixes from a provider
import oaitools
var x = newOaiRequest("https://dpla.lib.utk.edu/repox/OAIHandler")
echo x.list_metadata_formats()
Get a list of identifiers as a sequence that match a request
import oaitools
var x = newOaiRequest("https://dpla.lib.utk.edu/repox/OAIHandler", "utk_wderfilms")
echo x.list_identifiers("MODS")
More Documentation
All documentation and code examples can be found in this repository.