| 1 | package Dist::Inkt::Role::ReadMetaDir; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | our $AUTHORITY = 'cpan:TOBYINK'; | |||||||||
| 4 | 1 | our $VERSION = '0.110'; | |||||||||
| 5 | |||||||||||
| 6 | 1 | ▶ | use Moose::Role; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 1 | ▶ | use RDF::TrineX::Functions 'parse'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 1 | ▶ | use namespace::autoclean; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 1 | with 'Dist::Inkt::Role::RDFModel'; | |||||||||
| 11 | |||||||||||
| 12 | 0 | ▶ | after PopulateModel => sub { | ||||||||
|
Subroutine
__ANON__: not called CC=4 SCAR=30.0
| |||||||||||
| 13 | 0 | my $self = shift; | |||||||||
| 14 | 0 | for my $file ($self->sourcefile('meta')->children) | |||||||||
| 15 | { | ||||||||||
| 16 | 0 | ▶ | next unless $file =~ /\.(pret|pretdsl|ttl|turtle|nt|ntriples|rdf|rdfx)$/i; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 17 | |||||||||||
| 18 | 0 | $self->log('Reading %s', $file); | |||||||||
| 19 | $file =~ /\.pret$/ | ||||||||||
| 20 | 0 | ▶ | ? do { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 21 | 0 | require RDF::TrineX::Parser::Pretdsl; | |||||||||
| 22 | 0 | parse($file, into => $self->model, using => 'RDF::TrineX::Parser::Pretdsl'->new) | |||||||||
| 23 | }: parse($file, into => $self->model); | ||||||||||
| 24 | } | ||||||||||
| 25 | 1 | }; | |||||||||
| 26 | |||||||||||
| 27 | 1 | 1; | |||||||||