Pieter De Praetere
and 3 contributors

NAME

Catmandu::Fix::lido_term - create a term and conceptID node in a path

SYNOPSIS

    lido_term(
        path,
        term,
        -conceptid: conceptID,
        -lang:      term.lang,
        -pref:      term.pref,
        -source:    conceptID.source,
        -type:      conceptID.type
    )

DESCRIPTION

Create a node consisting of a term and a conceptID in a path.

PARAMETERS

Required parameters

The parameters term and path are required path parameters.

term
path

Optional parameters

conceptid is an optional path parameter.

conceptid

All other optional parameters are strings.

lang
pref
source
type

MULTIPLE INSTANCES

Multiple instances can be created in two ways, depending on whether you want to repeat the parent element or not.

If you do not want to repeat the parent element, call the fixn multiple times with the same path. Multiple term and conceptID tags will be created on the same level.

If you do want to repeat the parent element (to keep related term and conceptID together), add an $append to your path.

EXAMPLE

Fix

    lido_term(
        category,
        recordList.record.category.value,
        -conceptid: recordList.record.category.id,
        -type: global,
        -source: 'cidoc-crm'
    )

Result

    <lido:category>
        <lido:conceptID lido:type="global" lido:source="cidoc-crm">123</lido:conceptID>
        <lido:term>Paintings</lido:term>
    </lido:category>

SEE ALSO

Catmandu::LIDO and Catmandu

AUTHORS

Pieter De Praetere, pieter at packed.be

CONTRIBUTORS

Pieter De Praetere, pieter at packed.be
Matthias Vandermaesen, matthias.vandermaesen at vlaamsekunstcollectie.be

COPYRIGHT AND LICENSE

The Perl software is copyright (c) 2016 by PACKED vzw and VKC 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.