logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Catmandu::Fix::aat_match - Perform a direct match between a term and a Subject in the AAT

Author

       Pieter De Praetere <pieter at packed.be >

Description

       Perform a direct match between a term and the SPARQL endpoint <http://vocab.getty.edu/sparql> of the AAT.
       This fix will attempt to find a Subject for which the prefLabel in lang (optional, default "nl") equals
       the term. Will return a single item if one is found, or an empty hash if none was found.

       Returns the following data:

         {
           'id'        => 'The dc:identifier of the Subject',
           'prefLabel' => 'The prefLabel in the provided language',
           'uri'       => 'The URI of the Subject'
         }

   PARAMETERSRequiredparameters

       "path"
           Path to the term.

       Optionalparameters

       "lang"
           Language of both the prefLabel that is matched and the prefLabel that is returned.

License

       This  library  is  free  software;  you can redistribute it and/or modify it under the same terms as Perl
       itself.

Name

       Catmandu::Fix::aat_match - Perform a direct match between a term and a Subject in the AAT

See Also

       Catmandu Catmandu::AAT Catmandu::Store::AAT Catmandu::Fix::aat_search

perl v5.36.0                                       2023-02-04                      Catmandu::Fix::aat_match(3pm)

Synopsis

         aat_match(
             path,
             -lang: nl
         )

See Also