Skip to content

Latest commit

 

History

History
45 lines (28 loc) · 956 Bytes

README.md

File metadata and controls

45 lines (28 loc) · 956 Bytes

Nim OAI Tools

Build and Test

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.