| 1 |
NAME |
| 2 |
|
| 3 |
Catmandu::AAT - Retrieve items from the AAT |
| 4 |
|
| 5 |
SYNOPSIS |
| 6 |
|
| 7 |
This module contains a store to lookup a Subject in the AAT |
| 8 |
<https://www.getty.edu/research/tools/vocabularies/aat/> using its |
| 9 |
SPARQL endpoint <http://vocab.getty.edu/sparql>. |
| 10 |
|
| 11 |
Also included is a fix to match a term to a Subject and a fix to search |
| 12 |
for a term in the AAT. |
| 13 |
|
| 14 |
lookup_in_store(objectName, AAT, lang:nl) |
| 15 |
|
| 16 |
aat_match(objectName, -lang:nl) |
| 17 |
|
| 18 |
aat_search(objectName, -lang:nl) |
| 19 |
|
| 20 |
DESCRIPTION |
| 21 |
|
| 22 |
Catmandu::Store::AAT |
| 23 |
|
| 24 |
lookup_in_store( |
| 25 |
objectName, |
| 26 |
AAT, |
| 27 |
lang: nl |
| 28 |
) |
| 29 |
|
| 30 |
The lang parameter is optional and defaults to nl. It sets the language |
| 31 |
of the returned prefLabel. If no prefLabel for the Subject in provided |
| 32 |
lang exists, nothing is returned. |
| 33 |
|
| 34 |
The store takes the dc:identifier of a Subject from the AAT and returns |
| 35 |
the following data: |
| 36 |
|
| 37 |
{ |
| 38 |
'id' => 'The dc:identifier of the Subject', |
| 39 |
'prefLabel' => 'The prefLabel in the provided language', |
| 40 |
'uri' => 'The URI of the Subject' |
| 41 |
} |
| 42 |
|
| 43 |
Catmandu::Fix::aat_match |
| 44 |
|
| 45 |
aat_match( |
| 46 |
path, |
| 47 |
-lang: nl |
| 48 |
) |
| 49 |
|
| 50 |
A fix that performs a match between a term and a prefLabel of an AAT |
| 51 |
Subject. |
| 52 |
|
| 53 |
Catmandu::Fix::aat_search |
| 54 |
|
| 55 |
aat_search( |
| 56 |
path, |
| 57 |
-lang: nl |
| 58 |
) |
| 59 |
|
| 60 |
A fix that performs a search for a term in the AAT. |
| 61 |
|
| 62 |
AUTHOR |
| 63 |
|
| 64 |
Pieter De Praetere <pieter at packed.be > |
| 65 |
|
| 66 |
COPYRIGHT |
| 67 |
|
| 68 |
Copyright 2017- PACKED vzw |
| 69 |
|
| 70 |
LICENSE |
| 71 |
|
| 72 |
This library is free software; you can redistribute it and/or modify it |
| 73 |
under the same terms as Perl itself. |
| 74 |
|
| 75 |
SEE ALSO |
| 76 |
|
| 77 |
Catmandu Catmandu::Store::AAT Catmandu::Fix::aat_search |
| 78 |
Catmandu::Fix::aat_match |
| 79 |
|