line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Catmandu::Store::AAT; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $VERSION = '0.03'; |
4
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
228259
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
44
|
|
6
|
2
|
|
|
2
|
|
5
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
35
|
|
7
|
|
|
|
|
|
|
|
8
|
2
|
|
|
2
|
|
413
|
use Moo; |
|
2
|
|
|
|
|
8021
|
|
|
2
|
|
|
|
|
10
|
|
9
|
2
|
|
|
2
|
|
1542
|
use Catmandu::Sane; |
|
2
|
|
|
|
|
102788
|
|
|
2
|
|
|
|
|
11
|
|
10
|
|
|
|
|
|
|
|
11
|
2
|
|
|
2
|
|
1356
|
use Catmandu::Store::AAT::Bag; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
100
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
with 'Catmandu::Store'; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
has lang => (is => 'ro', default => 'nl'); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
1; |
18
|
|
|
|
|
|
|
__END__ |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=encoding utf-8 |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 NAME |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=for html <a href="https://travis-ci.org/thedatahub/Catmandu-Store-AAT"><img src="https://travis-ci.org/thedatahub/Catmandu-Store-AAT.svg?branch=master"></a> |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
Catmandu::Store::AAT - Retrieve items from the AAT |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 SYNOPSIS |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
lookup_in_store(objectName, AAT, lang:nl) |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 DESCRIPTION |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
lookup_in_store( |
35
|
|
|
|
|
|
|
objectName, |
36
|
|
|
|
|
|
|
AAT, |
37
|
|
|
|
|
|
|
lang: nl |
38
|
|
|
|
|
|
|
) |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
The C<lang> parameter is optional and defaults to I<nl>. It sets |
41
|
|
|
|
|
|
|
the language of the returned I<prefLabel>. If no I<prefLabel> for the |
42
|
|
|
|
|
|
|
I<Subject> in provided I<lang> exists, nothing is returned. |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
The store takes the C<dc:identifier> of a I<Subject> from the AAT and returns the following data: |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
{ |
47
|
|
|
|
|
|
|
'id' => 'The dc:identifier of the Subject', |
48
|
|
|
|
|
|
|
'prefLabel' => 'The prefLabel in the provided language', |
49
|
|
|
|
|
|
|
'uri' => 'The URI of the Subject' |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 AUTHOR |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
Pieter De Praetere E<lt>pieter at packed.be E<gt> |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 COPYRIGHT |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
Copyright 2017- PACKED vzw |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 LICENSE |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
63
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 SEE ALSO |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
L<Catmandu> |
68
|
|
|
|
|
|
|
L<Catmandu::AAT> |
69
|
|
|
|
|
|
|
L<Catmandu::Fix::aat_search> |
70
|
|
|
|
|
|
|
L<Catmandu::Fix::aat_match> |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=cut |