Catmandu-Resolver

Store/retrieve items from the Resolver


License
Artistic-1.0-Perl

Documentation

NAME

Catmandu::Store::Resolver - Store/retrieve items from the Resolver

SYNOPSIS

A module that can be used to retrieve or store PIDS for records in the Resolver.

lookup_in_store(
    objectNumber,
    Resolver,
    username: username,
    password: password,
    url: http://www.resolver.be
)

DESCRIPTION

Configure the Resolver as a store for Catmandu.

Museum objects and records require a PID to be uniquely identifiable. The Resolver tool generates and resolves these PIDs. By using this store, PIDs can be queried (based on the object number of the record as stored in the resolver), created, updated and deleted from Catmandu.

Data is returned as JSON.

{
    "data": {
        "documents": [],
        "domain": "",
        "id": "",
        "persistentURIs": [
            dataPid
        ],
        "title": "",
        "type": ""
    }
}

The _id attribute of the data after a add_to_store is set to the workPid, which is the first item of the presistenURIs array.

CONFIGURATION

The Resolver API requires a username and password. These must be provided.

  • url

    base url of the Resolver (e.g. http://www.resolver.be).

  • username

    username for the Resolver.

  • password

    password for the Resolver.

USAGE

See the Catmandu documentation for more information on how to use Stores.

SEE ALSO

Catmandu

AUTHORS

Pieter De Praetere, pieter at packed.be

CONTRIBUTORS

Pieter De Praetere, pieter at packed.be

COPYRIGHT AND LICENSE

This package is copyright (c) 2016 by PACKED vzw. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.