blib/lib/RDF/NS/Trine.pm untested

filter: Statementstmt 0.0% 0 / 23 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 8 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 35 SCAR 17.9
CC
2
Cov
0%
BLANK
6.0
GET
2.0
BEGIN
2.0
CRAP 6.0
1 package RDF::NS::Trine;
2 use v5.10;
3 use strict;
4 use warnings;
5  
6 our $VERSION = '20190227';
7  
8 use RDF::Trine::Node::Resource;
9 use RDF::Trine::Node::Blank;
10  
11 use base 'RDF::NS';
12  
13 sub GET {
14 RDF::Trine::Node::Resource->new($_[1]);
15 }
16  
17 sub BLANK {
18 my $id = ($_[1] =~ /^_(:(.+))$/ ? $2 : undef);
19 return RDF::Trine::Node::Blank->new( $id );
20 }
21  
22 1;
23 __END__