line |
true |
false |
branch |
95
|
0 |
0 |
if $self->isa($class)
|
124
|
2 |
0 |
if ($file =~ /[.](\w+)$/)
|
126
|
2 |
0 |
if exists $file_extensions{$ext}
|
152
|
1 |
49 |
if ($name eq 'guess') { }
|
|
48 |
1 |
elsif (my $class = $parser_names{$key}) { }
|
187
|
0 |
1 |
if (defined $args{'base'})
|
192
|
0 |
1 |
if (defined $args{'useragent'}) { }
|
201
|
1 |
0 |
if ($url =~ /^file:/)
|
206
|
0 |
1 |
unless ($resp->is_success)
|
211
|
0 |
1 |
if (my $cb = $args{'content_cb'})
|
218
|
1 |
0 |
if ($pclass and $pclass->can('new'))
|
220
|
1 |
0 |
if (my $e = $encodings{$pclass})
|
231
|
1 |
0 |
if $ok
|
236
|
0 |
0 |
if (defined $args{'canonicalize'})
|
242
|
0 |
0 |
if ($url =~ /[.](x?rdf|owl)$/ or $content =~ /\x{FEFF}?<[?]xml /mos) { }
|
|
0 |
0 |
elsif ($url =~ /[.]ttl$/ or $content =~ /@(prefix|base)/mos) { }
|
|
0 |
0 |
elsif ($url =~ /[.]trig$/) { }
|
|
0 |
0 |
elsif ($url =~ /[.]nt$/) { }
|
|
0 |
0 |
elsif ($url =~ /[.]nq$/) { }
|
|
0 |
0 |
elsif ($url =~ /[.]js(?:on)?$/) { }
|
|
0 |
0 |
elsif ($url =~ /[.]x?html?$/) { }
|
276
|
0 |
0 |
if (my $e = $encodings{$pclass})
|
285
|
0 |
0 |
if $ok
|
291
|
0 |
0 |
if $ok
|
293
|
0 |
0 |
if ($pclass) { }
|
316
|
0 |
0 |
if (defined $args{'base'})
|
321
|
0 |
0 |
if (defined $args{'useragent'}) { }
|
330
|
0 |
0 |
if ($url =~ /^file:/)
|
335
|
0 |
0 |
unless ($resp->is_success)
|
340
|
0 |
0 |
if (my $cb = $args{'content_cb'})
|
347
|
0 |
0 |
if ($pclass and $pclass->can('new'))
|
349
|
0 |
0 |
if (my $e = $encodings{$pclass})
|
360
|
0 |
0 |
if $ok
|
365
|
0 |
0 |
if (defined $args{'canonicalize'})
|
371
|
0 |
0 |
if ($url =~ /[.](x?rdf|owl)$/ or $content =~ /\x{FEFF}?<[?]xml /mos) { }
|
|
0 |
0 |
elsif ($url =~ /[.]ttl$/ or $content =~ /@(prefix|base)/mos) { }
|
|
0 |
0 |
elsif ($url =~ /[.]trig$/) { }
|
|
0 |
0 |
elsif ($url =~ /[.]nt$/) { }
|
|
0 |
0 |
elsif ($url =~ /[.]nq$/) { }
|
|
0 |
0 |
elsif ($url =~ /[.]js(?:on)?$/) { }
|
|
0 |
0 |
elsif ($url =~ /[.]x?html?$/) { }
|
405
|
0 |
0 |
if (my $e = $encodings{$pclass})
|
414
|
0 |
0 |
if $ok
|
420
|
0 |
0 |
if $ok
|
422
|
0 |
0 |
if ($pclass) { }
|
438
|
68 |
0 |
&blessed($proto) ? :
|
440
|
0 |
68 |
if (&blessed($uri) and $uri->isa('RDF::Trine::Node::Resource'))
|
450
|
0 |
2447 |
if ($context) { }
|
474
|
656 |
0 |
&blessed($proto) || $proto eq 'RDF::Trine::Parser' ? :
|
477
|
0 |
656 |
if (&blessed($uri) and $uri->isa('RDF::Trine::Node::Resource'))
|
487
|
1 |
1167 |
if ($context) { }
|
515
|
2 |
0 |
unless (ref $fh)
|
518
|
2 |
0 |
unless ($self->can('parse'))
|
520
|
2 |
0 |
if $pclass and $pclass->can('new')
|
522
|
0 |
2 |
unless open $fh, '<:encoding(UTF-8)', $filename
|
525
|
2 |
0 |
if ($self and $self->can('parse')) { }
|
548
|
0 |
9 |
if (defined $Data::UUID::VERSION) { }
|
|
0 |
9 |
elsif (defined $UUID::Tiny::VERSION and $] < 5.01) { }
|
574
|
4 |
5 |
/(turtle|rdf[+]xml)/ ? :
|