| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Dist::Inkt::Role::RDFModel; |
|
2
|
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:TOBYINK'; |
|
4
|
|
|
|
|
|
|
our $VERSION = '0.022'; |
|
5
|
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
573
|
use Moose::Role; |
|
|
1
|
|
|
|
|
4
|
|
|
|
1
|
|
|
|
|
6
|
|
|
7
|
1
|
|
|
1
|
|
5168
|
use Types::Standard -types; |
|
|
1
|
|
|
|
|
54920
|
|
|
|
1
|
|
|
|
|
11
|
|
|
8
|
1
|
|
|
1
|
|
4337
|
use namespace::autoclean; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
9
|
|
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
has model => ( |
|
11
|
|
|
|
|
|
|
is => 'ro', |
|
12
|
|
|
|
|
|
|
isa => InstanceOf['RDF::Trine::Model'], |
|
13
|
|
|
|
|
|
|
lazy => 1, |
|
14
|
|
|
|
|
|
|
builder => '_build_model', |
|
15
|
|
|
|
|
|
|
); |
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub _build_model |
|
18
|
|
|
|
|
|
|
{ |
|
19
|
0
|
|
|
0
|
|
|
require RDF::Trine; |
|
20
|
0
|
|
|
|
|
|
return 'RDF::Trine::Model'->temporary_model; |
|
21
|
|
|
|
|
|
|
} |
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
has doap_project => ( |
|
24
|
|
|
|
|
|
|
is => 'ro', |
|
25
|
|
|
|
|
|
|
isa => InstanceOf['RDF::DOAP::Project'], |
|
26
|
|
|
|
|
|
|
lazy => 1, |
|
27
|
|
|
|
|
|
|
builder => '_build_doap_project', |
|
28
|
|
|
|
|
|
|
); |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub _build_doap_project |
|
31
|
|
|
|
|
|
|
{ |
|
32
|
0
|
|
|
0
|
|
|
my $self = shift; |
|
33
|
0
|
|
|
|
|
|
require RDF::DOAP::Project; |
|
34
|
0
|
|
|
|
|
|
'RDF::DOAP::Project'->rdf_load( |
|
35
|
|
|
|
|
|
|
$self->project_uri, |
|
36
|
|
|
|
|
|
|
$self->model, |
|
37
|
|
|
|
|
|
|
); |
|
38
|
|
|
|
|
|
|
} |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1; |