line |
true |
false |
branch |
87
|
0 |
0 |
unless my $file = $self->create_schema_file
|
115
|
28 |
13 |
if (my $term = $self->_i2t_cache->get($id))
|
126
|
9 |
4 |
if ($type eq 'iri') { }
|
|
0 |
4 |
elsif ($type eq 'blank') { }
|
|
4 |
0 |
elsif ($type eq 'literal') { }
|
132
|
2 |
2 |
if ($lang)
|
137
|
13 |
0 |
if ($term)
|
147
|
37 |
4 |
if (my $id = $self->_t2i_cache->get($term->as_string))
|
152
|
4 |
0 |
if ($term->does('Attean::API::IRI')) { }
|
|
0 |
0 |
elsif ($term->does('Attean::API::Blank')) { }
|
|
0 |
0 |
elsif ($term->does('Attean::API::Literal')) { }
|
170
|
0 |
4 |
if (defined $tid)
|
180
|
384 |
246 |
if (my $id = $self->_t2i_cache->get($term->as_string))
|
186
|
134 |
112 |
if ($term->does('Attean::API::IRI')) { }
|
|
42 |
70 |
elsif ($term->does('Attean::API::Blank')) { }
|
|
70 |
0 |
elsif ($term->does('Attean::API::Literal')) { }
|
191
|
134 |
0 |
unless (defined $tid)
|
200
|
42 |
0 |
unless (defined $tid)
|
210
|
14 |
56 |
if ($lang)
|
217
|
70 |
0 |
unless (defined $tid)
|
225
|
246 |
0 |
if (defined $tid)
|
294
|
0 |
7 |
ref $_ eq 'ARRAY' ? :
|
300
|
7 |
55 |
if (defined $terms)
|
301
|
5 |
2 |
unless (scalar @$terms == 1 and not defined $terms->[0])
|
302
|
4 |
1 |
unless (&any(sub {
|
304
|
2 |
2 |
unless scalar @ids
|
312
|
2 |
13 |
if (scalar @where)
|
334
|
9 |
6 |
unless ref $row
|
383
|
0 |
4 |
unless (scalar @ids == 4)
|
386
|
0 |
4 |
unless (&all(sub {
|
425
|
0 |
4 |
unless defined $gid
|
529
|
20 |
0 |
if (-r $file)
|
547
|
0 |
0 |
if (-r $file)
|
592
|
0 |
20 |
&blessed($self) ? :
|
603
|
0 |
20 |
if ($type eq 'mysql') { }
|
|
0 |
20 |
elsif ($type eq 'postgresql') { }
|
|
20 |
0 |
elsif ($type eq 'sqlite') { }
|
605
|
0 |
0 |
if (defined $host)
|
608
|
0 |
0 |
if (defined $port)
|
614
|
0 |
0 |
if (defined $host)
|
617
|
0 |
0 |
if (defined $port)
|
641
|
0 |
36 |
unless $algebra
|
646
|
9 |
27 |
if ($algebra->isa('Attean::Algebra::Filter')) { }
|
|
9 |
36 |
elsif ($algebra->isa('Attean::Algebra::BGP') and scalar @{$algebra->triples;} > 0) { }
|
648
|
9 |
0 |
if ($e->isa('Attean::FunctionExpression'))
|
649
|
4 |
5 |
if ($e->operator =~ /IS(IRI|LITERAL|BLANK)/iu) { }
|
|
5 |
0 |
elsif ($e->operator eq 'STRSTARTS' or $e->operator eq 'CONTAINS') { }
|
652
|
4 |
0 |
if ($operand->isa('Attean::ValueExpression') and $operand->value->does('Attean::API::Variable'))
|
654
|
4 |
0 |
if (my($plan) = $self->plans_for_algebra($algebra->child, $model, $active_graphs, $default_graphs, %args))
|
655
|
4 |
0 |
if ($plan->isa('AtteanX::Store::DBI::Plan'))
|
656
|
4 |
0 |
if (exists $plan->variables->{$var->value})
|
669
|
4 |
0 |
if ($varexpr->isa('Attean::ValueExpression') and $varexpr->value->does('Attean::API::Variable') and $pat->isa('Attean::ValueExpression') and $pat->value->does('Attean::API::Literal'))
|
670
|
4 |
0 |
if (my($plan) = $self->plans_for_algebra($algebra->child, $model, $active_graphs, $default_graphs, %args))
|
671
|
4 |
0 |
if ($plan->isa('AtteanX::Store::DBI::Plan'))
|
674
|
4 |
0 |
if (exists $plan->variables->{$var->value})
|
683
|
0 |
4 |
unless $db eq 'mysql' or $db eq 'postgresql' or $db eq 'sqlite'
|
689
|
4 |
0 |
$e->operator eq 'STRSTARTS' ? :
|
690
|
0 |
4 |
if ($db eq 'mysql') { }
|
|
0 |
4 |
elsif ($db eq 'postgresql') { }
|
|
4 |
0 |
elsif ($db eq 'sqlite') { }
|
706
|
2 |
2 |
if (my $lang = $literal->language) { }
|
740
|
9 |
27 |
if ($name =~ /[-._]|\W/u)
|
751
|
0 |
9 |
unless ref $active_graphs eq 'ARRAY'
|
754
|
0 |
9 |
if (&any(sub {
|
775
|
36 |
0 |
if ($node->does('Attean::API::Variable')) { }
|
|
0 |
0 |
elsif ($node->does('Attean::API::Blank')) { }
|
780
|
0 |
0 |
unless (exists $blanks{$id})
|
789
|
0 |
0 |
unless defined $id
|
798
|
27 |
9 |
unless $seen_vars{$var->value}++
|
799
|
0 |
36 |
if (my $tt = $source_table_for_var{$var->value}) { }
|
875
|
3 |
6 |
if ($bind)
|
878
|
0 |
0 |
unless defined $id
|
879
|
0 |
0 |
if (my $cdata = $self->variables->{$var})
|
888
|
0 |
9 |
unless (scalar @select)
|
900
|
9 |
0 |
if (scalar @where)
|
926
|
0 |
3 |
unless ($rv)
|
934
|
7 |
3 |
if (my $row = $sth->fetchrow_hashref) { }
|