line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Datahub::Factory::VKC; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
55509
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
74
|
|
4
|
|
|
|
|
|
|
our $VERSION = '0.01'; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
1; |
7
|
|
|
|
|
|
|
__END__ |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=encoding utf-8 |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=head1 NAME |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
Datahub::Factory::Importer::VKC - Import data from the L<CollectiveAccess|http://collectiveaccess.org/> instance of the L<VKC|http://www.vlaamsekunstcollectie.be/> |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=head1 SYNOPSIS |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
use Datahub::Factory::Importer::VKC; |
18
|
|
|
|
|
|
|
use Data::Dumper qw(Dumper); |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
my $vkc = Datahub::Factory::Importer::VKC->new( |
21
|
|
|
|
|
|
|
); |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
$vkc->importer->each(sub { |
24
|
|
|
|
|
|
|
my $item = shift; |
25
|
|
|
|
|
|
|
print Dumper($item); |
26
|
|
|
|
|
|
|
}); |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 DESCRIPTION |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
Datahub::Factory::Importer::VKC uses L<Catmandu|http://librecat.org/Catmandu/> to fetch a list of records |
31
|
|
|
|
|
|
|
from the L<CollectiveAccess|http://collectiveaccess.org/> instance of the L<VKC|http://www.vlaamsekunstcollectie.be/>. |
32
|
|
|
|
|
|
|
It returns an L<Importer|Catmandu::Importer>. |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 PARAMETERS |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=over |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=back |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=over |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=item C<importer> |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
A L<Importer|Catmandu::Importer> that can be used in your script. |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=back |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 AUTHOR |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
Pieter De Praetere E<lt>pieter at packed.be E<gt> |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 COPYRIGHT |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Copyright 2017- PACKED vzw |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 LICENSE |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
62
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 SEE ALSO |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
L<Datahub::Factory> |
67
|
|
|
|
|
|
|
L<Datahub::Factory::CollectiveAccess> |
68
|
|
|
|
|
|
|
L<Catmandu> |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=cut |