line |
true |
false |
branch |
99
|
0 |
0 |
if $debug
|
104
|
0 |
0 |
if (ref $context eq "HASH" and exists $context->{'@context'})
|
108
|
0 |
0 |
if $debug
|
115
|
0 |
0 |
if (ref $out_ctx eq "HASH" and scalar @{[keys %$out_ctx];} or ref $out_ctx eq "ARRAY" and scalar @$out_ctx)
|
138
|
0 |
1 |
if (my $ec = $args{'expandContext'})
|
139
|
0 |
0 |
if (ref $ec eq "HASH" and exists $ec->{'@context'})
|
194
|
0 |
0 |
if $debug
|
200
|
0 |
0 |
if $debug
|
213
|
0 |
0 |
if (ref $result eq "ARRAY")
|
215
|
0 |
0 |
if (scalar @$result == 0) { }
|
232
|
1 |
0 |
if (ref $expanded_output eq "HASH")
|
234
|
0 |
1 |
if (scalar @keys == 1 and $keys[0] eq "\@graph")
|
235
|
0 |
0 |
if $debug
|
240
|
0 |
1 |
unless (defined $expanded_output)
|
241
|
0 |
0 |
if $debug
|
245
|
1 |
0 |
if (ref $expanded_output ne "ARRAY")
|
246
|
0 |
1 |
if $debug
|
265
|
0 |
0 |
if (ref $value eq 'ARRAY') { }
|
275
|
0 |
0 |
unless defined $v
|
276
|
0 |
0 |
unless defined $big
|
277
|
0 |
0 |
if length $v > length $big
|
283
|
1 |
1 |
unless ref $v
|
284
|
0 |
1 |
if &JSON::is_bool($v)
|
290
|
0 |
5 |
unless defined $v
|
291
|
2 |
3 |
if ref $v
|
301
|
0 |
0 |
unless _is_numeric($v)
|
309
|
0 |
0 |
unless defined $v
|
310
|
0 |
0 |
if ref $v
|
320
|
0 |
0 |
unless length $value
|
322
|
0 |
0 |
unless ($i)
|
341
|
0 |
0 |
if $debug
|
360
|
0 |
6 |
if (ref $container_mapping) { }
|
361
|
0 |
0 |
unless ref $container_mapping eq "ARRAY"
|
363
|
0 |
0 |
if $m eq $value
|
375
|
0 |
3 |
if $self->_cm_contains($container_mapping, $value)
|
384
|
0 |
12 |
unless ref $ctx eq "HASH"
|
401
|
0 |
0 |
if $ctx->{'terms'}{$term}{'protected'}
|
409
|
0 |
0 |
unless ref $value eq "HASH"
|
411
|
0 |
0 |
if exists $value->{$p}
|
420
|
0 |
0 |
unless ref $value eq "HASH"
|
427
|
0 |
0 |
unless ref $value eq "HASH"
|
434
|
0 |
0 |
unless ref $value eq "HASH"
|
441
|
0 |
0 |
unless ref $value eq "HASH"
|
448
|
0 |
0 |
unless $self->_is_graph_object($value)
|
457
|
0 |
0 |
unless (defined $value)
|
462
|
0 |
0 |
if ($as_array and ref $value ne "ARRAY")
|
466
|
0 |
0 |
if (not exists $object->{$key}) { }
|
469
|
0 |
0 |
if (ref $object->{$key} ne "ARRAY")
|
473
|
0 |
0 |
if (ref $value eq 'ARRAY') { }
|
484
|
0 |
0 |
if $self->_is_well_formed_iri($value)
|
485
|
0 |
0 |
if $value =~ /^_:/u
|
493
|
0 |
0 |
unless ($ok)
|
494
|
0 |
0 |
if $debug
|
502
|
0 |
0 |
if $value eq "\@json"
|
503
|
0 |
0 |
if $self->_is_well_formed_iri($value)
|
511
|
0 |
0 |
unless ($ok)
|
512
|
0 |
0 |
if $debug
|
521
|
0 |
0 |
unless ($ok)
|
522
|
0 |
0 |
if $debug
|
530
|
0 |
0 |
if $debug
|
535
|
0 |
1 |
if $debug
|
541
|
0 |
1 |
if $debug
|
542
|
0 |
1 |
if $debug
|
550
|
0 |
1 |
if $debug
|
552
|
0 |
1 |
unless ref $activeCtx eq "HASH"
|
553
|
0 |
1 |
if (ref $localCtx eq "HASH" and exists $localCtx->{'@propagate'})
|
554
|
0 |
0 |
if $debug
|
558
|
0 |
0 |
unless ($propagate or exists $result->{'previous_context'})
|
559
|
0 |
0 |
if $debug
|
563
|
1 |
0 |
if (ref $localCtx ne "ARRAY")
|
564
|
0 |
1 |
if $debug
|
568
|
0 |
1 |
if $debug
|
571
|
0 |
1 |
if $debug
|
572
|
0 |
1 |
if $debug
|
573
|
0 |
1 |
if $debug
|
574
|
0 |
1 |
unless (defined $context)
|
576
|
0 |
0 |
if $debug
|
577
|
0 |
0 |
if (not $override_protected and $self->_ctx_contains_protected_terms($activeCtx)) { }
|
579
|
0 |
0 |
if $debug
|
582
|
0 |
0 |
if $debug
|
587
|
0 |
0 |
if ($propagate)
|
594
|
0 |
1 |
unless (ref $context)
|
595
|
0 |
0 |
if $debug
|
597
|
0 |
0 |
if $debug
|
600
|
0 |
0 |
if (scalar @$remote_contexts > $self->max_remote_contexts)
|
601
|
0 |
0 |
if $debug
|
606
|
0 |
0 |
if (not $validate_scoped_context and $already{$context})
|
610
|
0 |
0 |
unless ($already{$context})
|
615
|
0 |
0 |
if (my $c = $self->parsed_remote_contexts->{$context}) { }
|
616
|
0 |
0 |
if $debug
|
619
|
0 |
0 |
if $debug
|
621
|
0 |
0 |
unless ($resp->is_success)
|
622
|
0 |
0 |
if $debug
|
625
|
0 |
0 |
$resp->content_is_text ? :
|
627
|
0 |
0 |
if ($@)
|
628
|
0 |
0 |
if $debug
|
634
|
0 |
0 |
if $debug
|
637
|
0 |
0 |
if $debug
|
641
|
0 |
1 |
if (ref $context ne "HASH")
|
642
|
0 |
0 |
if $debug
|
646
|
0 |
1 |
if $debug
|
648
|
0 |
1 |
if (exists $context->{'@version'})
|
649
|
0 |
0 |
if $debug
|
651
|
0 |
0 |
if ($v ne "1.1")
|
652
|
0 |
0 |
if $debug
|
655
|
0 |
0 |
if ($self->processing_mode eq "json-ld-1.0")
|
656
|
0 |
0 |
if $debug
|
661
|
0 |
1 |
if (exists $context->{'@import'})
|
662
|
0 |
0 |
if $debug
|
663
|
0 |
0 |
if ($self->processing_mode eq "json-ld-1.0")
|
664
|
0 |
0 |
if $debug
|
669
|
0 |
0 |
if (ref $value)
|
670
|
0 |
0 |
if $debug
|
674
|
0 |
0 |
if $debug
|
677
|
0 |
0 |
if $debug
|
680
|
0 |
0 |
unless ($resp->is_success)
|
681
|
0 |
0 |
if $debug
|
685
|
0 |
0 |
$resp->content_is_text ? :
|
687
|
0 |
0 |
if ($@)
|
688
|
0 |
0 |
if $debug
|
692
|
0 |
0 |
unless (ref $j eq "HASH")
|
693
|
0 |
0 |
if $debug
|
698
|
0 |
0 |
if (exists $import_context->{'@import'})
|
699
|
0 |
0 |
if $debug
|
703
|
0 |
0 |
if $debug
|
705
|
0 |
0 |
if $debug
|
708
|
0 |
1 |
if (exists $context->{'@base'} and scalar @$remote_contexts == 0)
|
709
|
0 |
0 |
if $debug
|
710
|
0 |
0 |
if $debug
|
712
|
0 |
0 |
if $debug
|
714
|
0 |
0 |
if (not defined $value) { }
|
|
0 |
0 |
elsif ($self->_is_abs_iri($value)) { }
|
|
0 |
0 |
elsif ($self->_is_iri($value) and defined $result->{'@base'}) { }
|
715
|
0 |
0 |
if $debug
|
718
|
0 |
0 |
if $debug
|
721
|
0 |
0 |
if $debug
|
726
|
0 |
0 |
if $debug
|
731
|
1 |
0 |
if (exists $context->{'@vocab'})
|
732
|
0 |
1 |
if $debug
|
733
|
0 |
1 |
if $debug
|
735
|
0 |
1 |
if (not defined $value) { }
|
|
1 |
0 |
elsif ($value =~ /^_/u or $self->_is_iri($value)) { }
|
736
|
0 |
0 |
if $debug
|
739
|
0 |
1 |
if $debug
|
747
|
0 |
1 |
if (exists $context->{'@language'})
|
748
|
0 |
0 |
if $debug
|
749
|
0 |
0 |
if $debug
|
752
|
0 |
0 |
if (not defined $value) { }
|
|
0 |
0 |
elsif (_is_string($value)) { }
|
753
|
0 |
0 |
if $debug
|
756
|
0 |
0 |
if $debug
|
760
|
0 |
0 |
if $debug
|
765
|
0 |
1 |
if (exists $context->{'@direction'})
|
766
|
0 |
0 |
if $debug
|
767
|
0 |
0 |
if ($self->processing_mode eq "json-ld-1.0")
|
768
|
0 |
0 |
if $debug
|
772
|
0 |
0 |
if $debug
|
775
|
0 |
0 |
if (not defined $value) { }
|
|
0 |
0 |
elsif (_is_string($value)) { }
|
776
|
0 |
0 |
if $debug
|
779
|
0 |
0 |
if $debug
|
780
|
0 |
0 |
if ($value ne "ltr" and $value ne "rtl")
|
787
|
0 |
1 |
if (exists $context->{'@propagate'})
|
788
|
0 |
0 |
if $debug
|
789
|
0 |
0 |
if ($self->processing_mode eq "json-ld-1.0")
|
790
|
0 |
0 |
if $debug
|
795
|
0 |
0 |
if ($p ne 1 and $p ne 0 and ref $p ne "JSON::PP::Boolean")
|
796
|
0 |
0 |
if $debug
|
800
|
0 |
0 |
if $debug
|
803
|
0 |
1 |
if $debug
|
807
|
0 |
1 |
if $debug
|
810
|
0 |
0 |
if $debug
|
817
|
0 |
1 |
if $debug
|
827
|
0 |
0 |
if $debug
|
830
|
0 |
0 |
if $debug
|
831
|
0 |
0 |
if $debug
|
832
|
0 |
0 |
if $debug
|
841
|
0 |
0 |
if (exists $defined->{$term})
|
843
|
0 |
0 |
if $debug
|
844
|
0 |
0 |
if ($defined->{$term}) { }
|
|
0 |
0 |
elsif (exists $defined->{$term}) { }
|
845
|
0 |
0 |
if $debug
|
852
|
0 |
0 |
if $debug
|
854
|
0 |
0 |
if ($term_copy eq '') { }
|
860
|
0 |
0 |
if $debug
|
862
|
0 |
0 |
if $debug
|
865
|
0 |
0 |
if ($self->processing_mode eq 'json-ld-1.1' and $term eq '@type') { }
|
867
|
0 |
0 |
if $debug
|
868
|
0 |
0 |
unless (ref $value eq "HASH")
|
872
|
0 |
0 |
unless scalar @keys == 1 and $keys[0] eq "\@container"
|
873
|
0 |
0 |
unless $value->{'@container'} eq "\@set"
|
876
|
0 |
0 |
if $debug
|
877
|
0 |
0 |
if (exists $keywords{$term})
|
878
|
0 |
0 |
if $debug
|
881
|
0 |
0 |
if ($term =~ /^\@[A-Za-z]+$/u)
|
884
|
0 |
0 |
if $debug
|
889
|
0 |
0 |
if $debug
|
894
|
0 |
0 |
if (not defined $value) { }
|
|
0 |
0 |
elsif (_is_string($value)) { }
|
|
0 |
0 |
elsif (ref $value eq 'HASH') { }
|
895
|
0 |
0 |
if $debug
|
899
|
0 |
0 |
if $debug
|
903
|
0 |
0 |
if $debug
|
906
|
0 |
0 |
if $debug
|
910
|
0 |
0 |
if $debug
|
913
|
0 |
0 |
if ($value->{'@protected'}) { }
|
|
0 |
0 |
elsif (not exists $value->{'@protected'} and $protected) { }
|
914
|
0 |
0 |
if $debug
|
916
|
0 |
0 |
if $debug
|
918
|
0 |
0 |
if $debug
|
922
|
0 |
0 |
if (exists $value->{'@type'})
|
924
|
0 |
0 |
if $debug
|
926
|
0 |
0 |
if (ref $type)
|
927
|
0 |
0 |
if $debug
|
931
|
0 |
0 |
if $debug
|
933
|
0 |
0 |
if $debug
|
935
|
0 |
0 |
if ($type eq '@json' || $type eq '@none' and $self->processing_mode eq "json-ld-1.0")
|
937
|
0 |
0 |
if $debug
|
941
|
0 |
0 |
if ($type ne "\@id" and $type ne "\@vocab" and $type ne "\@none" and $type ne "\@json" and not $self->_is_abs_iri($type))
|
943
|
0 |
0 |
if $debug
|
947
|
0 |
0 |
if $debug
|
951
|
0 |
0 |
if (exists $value->{'@reverse'})
|
953
|
0 |
0 |
if $debug
|
954
|
0 |
0 |
if (exists $value->{'@id'} or exists $value->{'@nest'})
|
955
|
0 |
0 |
if $debug
|
959
|
0 |
0 |
if (ref $reverse)
|
960
|
0 |
0 |
if $debug
|
963
|
0 |
0 |
if ($reverse =~ /^\@[A-Za-z]+$/u) { }
|
964
|
0 |
0 |
if $debug
|
969
|
0 |
0 |
if $debug
|
971
|
0 |
0 |
unless ($self->_is_abs_iri($m) or $m =~ /^:/u)
|
977
|
0 |
0 |
if (exists $value->{'@container'})
|
979
|
0 |
0 |
if $debug
|
981
|
0 |
0 |
if ($c ne "\@set" and $c ne "\@index" and defined $c)
|
987
|
0 |
0 |
if $debug
|
991
|
0 |
0 |
if $debug
|
995
|
0 |
0 |
if $debug
|
999
|
0 |
0 |
if $debug
|
1002
|
0 |
0 |
if (exists $value->{'@id'} and !defined($value->{'@id'}) || $value->{'@id'} ne $term) { }
|
|
0 |
0 |
elsif ($term =~ /.:/u) { }
|
|
0 |
0 |
elsif ($term =~ m[/]u) { }
|
|
0 |
0 |
elsif ($term eq '@type') { }
|
1004
|
0 |
0 |
if $debug
|
1005
|
0 |
0 |
if (not defined $value->{'@id'}) { }
|
1006
|
0 |
0 |
if $debug
|
1008
|
0 |
0 |
if $debug
|
1010
|
0 |
0 |
unless (_is_string($id))
|
1011
|
0 |
0 |
if $debug
|
1015
|
0 |
0 |
if (defined $id and not exists $keywords{$id} and $id =~ /^\@[A-Za-z]+$/u) { }
|
1016
|
0 |
0 |
if $debug
|
1020
|
0 |
0 |
if $debug
|
1022
|
0 |
0 |
unless (exists $keywords{$iri} or $self->_is_abs_iri($iri) or $iri =~ /:/u)
|
1025
|
0 |
0 |
if ($iri eq "\@context")
|
1030
|
0 |
0 |
if ($term =~ /.:./u or index($term, "/") >= 0)
|
1031
|
0 |
0 |
if $debug
|
1032
|
0 |
0 |
if $debug
|
1036
|
0 |
0 |
if ($iri ne $definition->{'iri_mapping'})
|
1037
|
0 |
0 |
if $debug
|
1042
|
0 |
0 |
if (not $term =~ m[[:/]]u and $simple_term and $definition->{'iri_mapping'} =~ m[[][:/?#@]$]u)
|
1043
|
0 |
0 |
if $debug
|
1050
|
0 |
0 |
if $debug
|
1052
|
0 |
0 |
if (exists $localCtx->{$prefix})
|
1053
|
0 |
0 |
if $debug
|
1056
|
0 |
0 |
if (exists $activeCtx->{'terms'}{$prefix}) { }
|
1057
|
0 |
0 |
if $debug
|
1060
|
0 |
0 |
if $debug
|
1064
|
0 |
0 |
if $debug
|
1067
|
0 |
0 |
if $debug
|
1069
|
0 |
0 |
unless ($self->_is_iri($definition->{'iri_mapping'}))
|
1074
|
0 |
0 |
if $debug
|
1078
|
0 |
0 |
if (exists $activeCtx->{'@vocab'}) { }
|
1079
|
0 |
0 |
if $debug
|
1082
|
0 |
0 |
if $debug
|
1087
|
0 |
0 |
if (exists $value->{'@container'})
|
1089
|
0 |
0 |
if $debug
|
1091
|
0 |
0 |
if $debug
|
1096
|
0 |
0 |
if (exists $acceptable{$container}) { }
|
|
0 |
0 |
elsif (ref $container eq 'ARRAY') { }
|
1098
|
0 |
0 |
if (scalar @$container == 1) { }
|
|
0 |
0 |
elsif (&any(sub {
|
|
0 |
0 |
elsif (&any(sub {
|
1100
|
0 |
0 |
unless (exists $acceptable{$c})
|
1101
|
0 |
0 |
if $debug
|
1109
|
0 |
0 |
if $debug
|
1113
|
0 |
0 |
if $debug
|
1117
|
0 |
0 |
if ($self->processing_mode eq "json-ld-1.0")
|
1118
|
0 |
0 |
if (&any(sub {
|
1119
|
0 |
0 |
if $debug
|
1124
|
0 |
0 |
if $debug
|
1125
|
0 |
0 |
if (ref $container eq 'ARRAY') { }
|
1131
|
0 |
0 |
if ($container eq "\@type")
|
1132
|
0 |
0 |
if $debug
|
1133
|
0 |
0 |
unless (defined $definition->{'type_mapping'})
|
1134
|
0 |
0 |
if $debug
|
1139
|
0 |
0 |
if ($tm ne "\@id" and $tm ne "\@vocab")
|
1140
|
0 |
0 |
if $debug
|
1146
|
0 |
0 |
if (exists $value->{'@index'})
|
1147
|
0 |
0 |
if $debug
|
1149
|
0 |
0 |
if ($self->processing_mode eq "json-ld-1.0" or not $self->_cm_contains($container_mapping, "\@index"))
|
1150
|
0 |
0 |
if $debug
|
1154
|
0 |
0 |
if $debug
|
1157
|
0 |
0 |
unless ($self->_is_abs_iri($expanded))
|
1161
|
0 |
0 |
if $debug
|
1165
|
0 |
0 |
if (exists $value->{'@context'})
|
1166
|
0 |
0 |
if $debug
|
1167
|
0 |
0 |
if ($self->processing_mode eq "json-ld-1.0")
|
1168
|
0 |
0 |
if $debug
|
1172
|
0 |
0 |
if $debug
|
1175
|
0 |
0 |
if $debug
|
1183
|
0 |
0 |
if (exists $value->{'@language'} and not exists $value->{'@type'})
|
1184
|
0 |
0 |
if $debug
|
1185
|
0 |
0 |
if $debug
|
1187
|
0 |
0 |
if (defined $language and ref $language)
|
1192
|
0 |
0 |
if $debug
|
1197
|
0 |
0 |
if (exists $value->{'@direction'} and not exists $value->{'@type'})
|
1198
|
0 |
0 |
if $debug
|
1201
|
0 |
0 |
if $debug
|
1202
|
0 |
0 |
if (not defined $direction) { }
|
|
0 |
0 |
elsif ($direction ne 'ltr' and $direction ne 'rtl') { }
|
1210
|
0 |
0 |
if (exists $value->{'@nest'})
|
1211
|
0 |
0 |
if $debug
|
1212
|
0 |
0 |
if ($self->processing_mode eq "json-ld-1.0")
|
1213
|
0 |
0 |
if $debug
|
1217
|
0 |
0 |
if $debug
|
1219
|
0 |
0 |
if (not defined $nv or ref $nv) { }
|
|
0 |
0 |
elsif (exists $keywords{$nv} and $nv ne '@nest') { }
|
1227
|
0 |
0 |
if (exists $value->{'@prefix'})
|
1228
|
0 |
0 |
if $debug
|
1229
|
0 |
0 |
if ($self->processing_mode eq "json-ld-1.0" or $term =~ m[[:/]]u)
|
1230
|
0 |
0 |
if $debug
|
1234
|
0 |
0 |
if $debug
|
1236
|
0 |
0 |
unless (&JSON::is_bool($value->{'@prefix'}))
|
1240
|
0 |
0 |
if ($definition->{'prefix_flag'} and exists $keywords{$definition->{'iri_mapping'}})
|
1241
|
0 |
0 |
if $debug
|
1247
|
0 |
0 |
if (scalar @keys)
|
1248
|
0 |
0 |
if $debug
|
1252
|
0 |
0 |
if (not $override_protected and $previous_defn->{'protected'})
|
1254
|
0 |
0 |
if $debug
|
1258
|
0 |
0 |
if ($j->encode(\%cmp_a) ne $j->encode(\%cmp_b))
|
1259
|
0 |
0 |
if $debug
|
1262
|
0 |
0 |
if $debug
|
1266
|
0 |
0 |
if $debug
|
1267
|
0 |
0 |
if $debug
|
1271
|
0 |
0 |
if $debug
|
1280
|
0 |
0 |
if $debug
|
1283
|
0 |
0 |
if $debug
|
1286
|
0 |
0 |
if $debug
|
1288
|
0 |
0 |
if (exists $activeCtx->{'@language'})
|
1292
|
0 |
0 |
if $debug
|
1293
|
0 |
0 |
unless length $a <=> length $b
|
1295
|
0 |
0 |
if $debug
|
1297
|
0 |
0 |
unless (defined $tdef)
|
1298
|
0 |
0 |
if $debug
|
1302
|
0 |
0 |
if $debug
|
1305
|
0 |
0 |
if (scalar @$container_mapping)
|
1309
|
0 |
0 |
if $debug
|
1312
|
0 |
0 |
unless (exists $result->{$var})
|
1313
|
0 |
0 |
if $debug
|
1317
|
0 |
0 |
if $debug
|
1320
|
0 |
0 |
unless (exists $container_map->{$container})
|
1321
|
0 |
0 |
if $debug
|
1331
|
0 |
0 |
if $debug
|
1334
|
0 |
0 |
if $debug
|
1337
|
0 |
0 |
if ($tdef->{'reverse'}) { }
|
|
0 |
0 |
elsif (($tdef->{'type_mapping'} // '') eq '@none') { }
|
|
0 |
0 |
elsif (exists $tdef->{'type_mapping'}) { }
|
1338
|
0 |
0 |
if $debug
|
1339
|
0 |
0 |
unless (exists $type_map->{'@reverse'})
|
1340
|
0 |
0 |
if $debug
|
1344
|
0 |
0 |
if $debug
|
1345
|
0 |
0 |
if $debug
|
1348
|
0 |
0 |
unless (exists $language_map->{'@any'})
|
1349
|
0 |
0 |
if $debug
|
1353
|
0 |
0 |
unless (exists $type_map->{'@any'})
|
1354
|
0 |
0 |
if $debug
|
1358
|
0 |
0 |
if $debug
|
1359
|
0 |
0 |
unless (exists $$type_map{$tdef->{'type_mapping'}})
|
1360
|
0 |
0 |
if $debug
|
1365
|
0 |
0 |
if $debug
|
1369
|
0 |
0 |
if (exists $tdef->{'language_mapping'} and exists $tdef->{'direction_mapping'}) { }
|
|
0 |
0 |
elsif (exists $tdef->{'language_mapping'}) { }
|
|
0 |
0 |
elsif (exists $tdef->{'direction_mapping'}) { }
|
|
0 |
0 |
elsif (exists $activeCtx->{'@direction'}) { }
|
1370
|
0 |
0 |
if $debug
|
1371
|
0 |
0 |
if $debug
|
1374
|
0 |
0 |
if (defined $tdef->{'language_mapping'} and defined $tdef->{'direction_mapping'}) { }
|
|
0 |
0 |
elsif (defined $tdef->{'language_mapping'}) { }
|
|
0 |
0 |
elsif (defined $tdef->{'direction_mapping'}) { }
|
1375
|
0 |
0 |
if $debug
|
1378
|
0 |
0 |
if $debug
|
1381
|
0 |
0 |
if $debug
|
1384
|
0 |
0 |
if $debug
|
1387
|
0 |
0 |
unless (exists $language_map->{$lang_dir})
|
1388
|
0 |
0 |
if $debug
|
1392
|
0 |
0 |
if $debug
|
1393
|
0 |
0 |
if $debug
|
1394
|
0 |
0 |
!defined($tdef->{'language_mapping'}) ? :
|
1396
|
0 |
0 |
unless (exists $language_map->{$language})
|
1397
|
0 |
0 |
if $debug
|
1401
|
0 |
0 |
if $debug
|
1402
|
0 |
0 |
if $debug
|
1403
|
0 |
0 |
!defined($tdef->{'direction_mapping'}) ? :
|
1405
|
0 |
0 |
unless (exists $language_map->{$direction})
|
1406
|
0 |
0 |
if $debug
|
1410
|
0 |
0 |
if $debug
|
1411
|
0 |
0 |
if $debug
|
1414
|
0 |
0 |
unless (exists $language_map->{$lang_dir})
|
1415
|
0 |
0 |
if $debug
|
1419
|
0 |
0 |
unless (exists $language_map->{'@none'})
|
1420
|
0 |
0 |
if $debug
|
1424
|
0 |
0 |
unless (exists $type_map->{'@none'})
|
1425
|
0 |
0 |
if $debug
|
1429
|
0 |
0 |
if $debug
|
1430
|
0 |
0 |
unless (exists $$language_map{lc $default_language})
|
1431
|
0 |
0 |
if $debug
|
1435
|
0 |
0 |
unless (exists $language_map->{'@none'})
|
1436
|
0 |
0 |
if $debug
|
1440
|
0 |
0 |
unless (exists $type_map->{'@none'})
|
1441
|
0 |
0 |
if $debug
|
1447
|
0 |
0 |
if $debug
|
1458
|
0 |
0 |
if $debug
|
1460
|
0 |
0 |
if $debug
|
1463
|
0 |
0 |
if $debug
|
1465
|
0 |
0 |
if $debug
|
1466
|
0 |
0 |
unless (exists $container_map->{$container})
|
1467
|
0 |
0 |
if $debug
|
1470
|
0 |
0 |
if $debug
|
1473
|
0 |
0 |
if $debug
|
1476
|
0 |
0 |
if $debug
|
1478
|
0 |
0 |
unless (exists $value_map->{$item})
|
1479
|
0 |
0 |
if $debug
|
1483
|
0 |
0 |
if $debug
|
1488
|
0 |
0 |
if $debug
|
1499
|
0 |
2 |
if $debug
|
1503
|
0 |
2 |
if $debug
|
1504
|
0 |
2 |
if $debug
|
1505
|
0 |
2 |
if $debug
|
1511
|
0 |
2 |
unless (defined $element)
|
1512
|
0 |
0 |
if $debug
|
1515
|
0 |
2 |
if (defined $activeProp and $activeProp eq "\@default")
|
1516
|
0 |
0 |
if $debug
|
1523
|
0 |
0 |
if ($tdef and exists $tdef->{'@context'})
|
1527
|
0 |
0 |
if $debug
|
1530
|
1 |
1 |
if (_is_scalar($element))
|
1532
|
0 |
1 |
if $debug
|
1533
|
0 |
1 |
if (not defined $activeProp or $activeProp eq "\@graph")
|
1534
|
0 |
0 |
if $debug
|
1537
|
0 |
1 |
if ($property_scoped_ctx_defined)
|
1538
|
0 |
0 |
if $debug
|
1540
|
0 |
0 |
if $debug
|
1543
|
0 |
1 |
if $debug
|
1546
|
0 |
1 |
if $debug
|
1550
|
0 |
1 |
if (ref $element eq "ARRAY")
|
1552
|
0 |
0 |
if $debug
|
1554
|
0 |
0 |
if $debug
|
1557
|
0 |
0 |
if $debug
|
1558
|
0 |
0 |
if $debug
|
1560
|
0 |
0 |
if $debug
|
1565
|
0 |
0 |
if ($self->_cm_contains($container_mapping, "\@list") and ref $expandedItem eq "ARRAY")
|
1566
|
0 |
0 |
if $debug
|
1571
|
0 |
0 |
if $debug
|
1572
|
0 |
0 |
if (ref $expandedItem eq 'ARRAY') { }
|
|
0 |
0 |
elsif (defined $expandedItem) { }
|
1580
|
0 |
0 |
if $debug
|
1584
|
0 |
1 |
unless (ref $element eq "HASH")
|
1585
|
0 |
0 |
if $debug
|
1589
|
0 |
1 |
if (my $prevCtx = $activeCtx->{'previous_context'})
|
1590
|
0 |
0 |
unless ($fromMap)
|
1593
|
0 |
0 |
unless (exists $expandedKeys{'@value'})
|
1594
|
0 |
0 |
unless (scalar @keys == 1 and $self->_5_2_2_iri_expansion($activeCtx, $keys[0], "vocab", 1) eq "\@id")
|
1595
|
0 |
0 |
if $debug
|
1602
|
0 |
1 |
if ($property_scoped_ctx_defined)
|
1603
|
0 |
0 |
if $debug
|
1605
|
0 |
0 |
if ($tdef and exists $tdef->{'__source_base_iri'})
|
1609
|
0 |
0 |
if $debug
|
1611
|
0 |
0 |
if $debug
|
1614
|
1 |
0 |
if (exists $element->{'@context'})
|
1615
|
0 |
1 |
if $debug
|
1620
|
0 |
1 |
if $debug
|
1623
|
0 |
1 |
if $debug
|
1628
|
0 |
2 |
if $debug
|
1631
|
2 |
0 |
unless ("\@type" eq $self->_5_2_2_iri_expansion($activeCtx, $key, "vocab", 1))
|
1632
|
0 |
2 |
if $debug
|
1637
|
0 |
2 |
if $debug
|
1639
|
2 |
0 |
unless (ref $value eq "ARRAY")
|
1640
|
0 |
2 |
if $debug
|
1648
|
0 |
2 |
if $debug
|
1649
|
1 |
1 |
if (_is_string($term))
|
1651
|
0 |
1 |
if (exists $tdef->{'@context'})
|
1652
|
0 |
0 |
if $debug
|
1656
|
0 |
0 |
if $debug
|
1662
|
0 |
1 |
if $debug
|
1664
|
0 |
1 |
if $debug
|
1671
|
0 |
2 |
if ($expandedKey eq "\@type")
|
1676
|
0 |
1 |
if $debug
|
1679
|
0 |
1 |
if $debug
|
1681
|
0 |
1 |
if (exists $result->{'@value'}) { }
|
|
0 |
1 |
elsif (exists $result->{'@type'} and ref $result->{'@type'} ne 'ARRAY') { }
|
|
0 |
1 |
elsif (exists $result->{'@set'} or exists $result->{'@list'}) { }
|
1683
|
0 |
0 |
if $debug
|
1687
|
0 |
0 |
unless ($acceptable{$k})
|
1688
|
0 |
0 |
if $debug
|
1692
|
0 |
0 |
if (exists $result->{'@language'} or exists $result->{'@direction'})
|
1693
|
0 |
0 |
if $debug
|
1694
|
0 |
0 |
if exists $result->{'@type'}
|
1698
|
0 |
0 |
if (defined $result->{'@type'} and $result->{'@type'} eq '@json') { }
|
|
0 |
0 |
elsif (not defined $result->{'@value'} or ref $result->{'@value'} eq 'ARRAY' and not scalar @{$result->{'@value'};}) { }
|
|
0 |
0 |
elsif (ref $result->{'@value'} and exists $result->{'@language'}) { }
|
|
0 |
0 |
elsif (exists $result->{'@type'} and not $self->_is_iri($result->{'@type'})) { }
|
1699
|
0 |
0 |
if $debug
|
1702
|
0 |
0 |
if $debug
|
1705
|
0 |
0 |
if $debug
|
1709
|
0 |
0 |
if $debug
|
1722
|
0 |
0 |
if $debug
|
1724
|
0 |
0 |
if $debug
|
1726
|
0 |
0 |
if $debug
|
1729
|
0 |
0 |
if $debug
|
1730
|
0 |
0 |
if $_ ne "\@set"
|
1731
|
0 |
0 |
if (scalar @keys)
|
1732
|
0 |
0 |
if $debug
|
1733
|
0 |
0 |
unless scalar @keys == 1 and $keys[0] eq "\@index"
|
1735
|
0 |
0 |
if (exists $result->{'@set'})
|
1736
|
0 |
0 |
if $debug
|
1739
|
0 |
0 |
if $debug
|
1742
|
0 |
1 |
if $debug
|
1743
|
1 |
0 |
ref $result eq 'HASH' ? :
|
1744
|
1 |
0 |
if (ref $result eq "HASH")
|
1745
|
0 |
1 |
if (scalar @keys == 1 and $keys[0] eq "\@language")
|
1746
|
0 |
0 |
if $debug
|
1750
|
0 |
1 |
if $debug
|
1751
|
1 |
0 |
if (not defined $activeProp or $activeProp eq "\@graph")
|
1754
|
0 |
1 |
if $debug
|
1755
|
0 |
1 |
if (ref $result eq 'HASH' and scalar @keys == 0 || exists $result->{'@value'} || exists $result->{'@list'}) { }
|
|
0 |
1 |
elsif (ref $result eq 'HASH' and scalar @keys == 1 and $keys[0] eq '@id') { }
|
1756
|
0 |
0 |
if $debug
|
1759
|
0 |
0 |
unless ($frameExpansion)
|
1760
|
0 |
0 |
if $debug
|
1765
|
0 |
1 |
if $debug
|
1769
|
0 |
1 |
if $debug
|
1784
|
0 |
1 |
if $debug
|
1789
|
0 |
2 |
if $debug
|
1790
|
0 |
2 |
if $debug
|
1791
|
1 |
1 |
if ($key eq "\@context")
|
1792
|
0 |
1 |
if $debug
|
1796
|
0 |
1 |
if $debug
|
1798
|
0 |
1 |
if $debug
|
1800
|
0 |
1 |
if $debug
|
1801
|
0 |
1 |
if $debug
|
1802
|
0 |
0 |
unless (defined $expandedProperty and $expandedProperty =~ /:/u || exists $keywords{$expandedProperty})
|
1803
|
0 |
0 |
if $debug
|
1808
|
0 |
1 |
if (exists $keywords{$expandedProperty})
|
1810
|
0 |
0 |
if $debug
|
1812
|
0 |
0 |
if (defined $activeProp and $activeProp eq "\@reverse")
|
1813
|
0 |
0 |
if $debug
|
1817
|
0 |
0 |
if (exists $result->{$expandedProperty})
|
1819
|
0 |
0 |
if ($expandedProperty ne "\@included" and $expandedProperty ne "\@type")
|
1820
|
0 |
0 |
if $debug
|
1826
|
0 |
0 |
if ($expandedProperty eq "\@id")
|
1827
|
0 |
0 |
if $debug
|
1828
|
0 |
0 |
if (ref $value or not defined $value) { }
|
1829
|
0 |
0 |
if $debug
|
1832
|
0 |
0 |
if $debug
|
1834
|
0 |
0 |
if $debug
|
1838
|
0 |
0 |
if ($expandedProperty eq "\@type")
|
1839
|
0 |
0 |
if $debug
|
1843
|
0 |
0 |
unless ($is_string or $is_array_of_strings)
|
1844
|
0 |
0 |
if $debug
|
1848
|
0 |
0 |
if (ref $value eq 'HASH' and scalar %$value == 0) { }
|
|
0 |
0 |
elsif ($self->_is_default_object($value)) { }
|
1849
|
0 |
0 |
if $debug
|
1851
|
0 |
0 |
if $debug
|
1853
|
0 |
0 |
if $debug
|
1855
|
0 |
0 |
if $debug
|
1857
|
0 |
0 |
if $debug
|
1858
|
0 |
0 |
if (ref $value) { }
|
1863
|
0 |
0 |
if $debug
|
1866
|
0 |
0 |
if (my $t = $result->{'@type'})
|
1867
|
0 |
0 |
if $debug
|
1868
|
0 |
0 |
if (ref $expandedValue ne "ARRAY")
|
1872
|
0 |
0 |
if $debug
|
1876
|
0 |
0 |
if ($expandedProperty eq "\@graph")
|
1877
|
0 |
0 |
if $debug
|
1879
|
0 |
0 |
ref $v eq 'ARRAY' ? :
|
1880
|
0 |
0 |
if $debug
|
1881
|
0 |
0 |
if $debug
|
1882
|
0 |
0 |
if $debug
|
1883
|
0 |
0 |
if $debug
|
1884
|
0 |
0 |
if $debug
|
1887
|
0 |
0 |
if ($expandedProperty eq '@included') { }
|
|
0 |
0 |
elsif ($expandedProperty eq '@value') { }
|
1888
|
0 |
0 |
if $debug
|
1889
|
0 |
0 |
if ($self->processing_mode eq "json-ld-1.0")
|
1890
|
0 |
0 |
if $debug
|
1894
|
0 |
0 |
if $debug
|
1896
|
0 |
0 |
unless (ref $expandedValue eq "ARRAY")
|
1901
|
0 |
0 |
unless ($self->_is_node_object($v))
|
1902
|
0 |
0 |
if $debug
|
1907
|
0 |
0 |
if (exists $result->{'@included'})
|
1909
|
0 |
0 |
if $debug
|
1912
|
0 |
0 |
if $debug
|
1914
|
0 |
0 |
if $debug
|
1915
|
0 |
0 |
if ($input_type eq '@json') { }
|
|
0 |
0 |
elsif (not _is_scalar($value) || !defined($value)) { }
|
1916
|
0 |
0 |
if $debug
|
1918
|
0 |
0 |
if ($self->processing_mode eq "json-ld-1.0")
|
1922
|
0 |
0 |
if $debug
|
1925
|
0 |
0 |
if $debug
|
1929
|
0 |
0 |
unless (defined $expandedValue)
|
1930
|
0 |
0 |
if $debug
|
1934
|
0 |
0 |
if $debug
|
1938
|
0 |
0 |
if ($expandedProperty eq "\@language")
|
1939
|
0 |
0 |
if $debug
|
1940
|
0 |
0 |
if (ref $value)
|
1941
|
0 |
0 |
if $debug
|
1942
|
0 |
0 |
if ($frameExpansion)
|
1947
|
0 |
0 |
if $debug
|
1950
|
0 |
0 |
if $debug
|
1953
|
0 |
0 |
if ($expandedProperty eq "\@direction")
|
1954
|
0 |
0 |
if $debug
|
1955
|
0 |
0 |
if ($self->processing_mode eq "json-ld-1.0")
|
1956
|
0 |
0 |
if $debug
|
1960
|
0 |
0 |
if ($value ne "ltr" and $value ne "rtl")
|
1961
|
0 |
0 |
if $debug
|
1965
|
0 |
0 |
if $debug
|
1968
|
0 |
0 |
if ($frameExpansion)
|
1971
|
0 |
0 |
if $debug
|
1974
|
0 |
0 |
if ($expandedProperty eq "\@index")
|
1975
|
0 |
0 |
if $debug
|
1976
|
0 |
0 |
if (ref $value)
|
1977
|
0 |
0 |
if $debug
|
1981
|
0 |
0 |
if $debug
|
1983
|
0 |
0 |
if $debug
|
1986
|
0 |
0 |
if ($expandedProperty eq "\@list")
|
1987
|
0 |
0 |
if $debug
|
1988
|
0 |
0 |
if (not defined $activeProp or $activeProp eq "\@graph")
|
1989
|
0 |
0 |
if $debug
|
1993
|
0 |
0 |
if $debug
|
1995
|
0 |
0 |
if (ref $expandedValue ne "ARRAY")
|
1999
|
0 |
0 |
if $debug
|
2002
|
0 |
0 |
if ($expandedProperty eq "\@set")
|
2003
|
0 |
0 |
if $debug
|
2005
|
0 |
0 |
if $debug
|
2010
|
0 |
0 |
if ($expandedProperty eq "\@reverse")
|
2011
|
0 |
0 |
if $debug
|
2012
|
0 |
0 |
if (ref $value ne "HASH")
|
2013
|
0 |
0 |
if $debug
|
2017
|
0 |
0 |
if $debug
|
2019
|
0 |
0 |
if $debug
|
2021
|
0 |
0 |
if (ref $expandedValue eq "HASH" and exists $expandedValue->{'@reverse'})
|
2022
|
0 |
0 |
if $debug
|
2025
|
0 |
0 |
if $debug
|
2027
|
0 |
0 |
unless (exists $result->{$property})
|
2028
|
0 |
0 |
if $debug
|
2032
|
0 |
0 |
if $debug
|
2037
|
0 |
0 |
if (ref $expandedValue eq "HASH")
|
2039
|
0 |
0 |
if (scalar @keys)
|
2040
|
0 |
0 |
if $debug
|
2042
|
0 |
0 |
unless (exists $result->{'@reverse'})
|
2043
|
0 |
0 |
if $debug
|
2047
|
0 |
0 |
if $debug
|
2050
|
0 |
0 |
if $debug
|
2053
|
0 |
0 |
if $debug
|
2056
|
0 |
0 |
if $debug
|
2059
|
0 |
0 |
if ($self->_is_value_object($item) or $self->_is_list_object($item))
|
2060
|
0 |
0 |
if $debug
|
2064
|
0 |
0 |
unless (exists $reverse_map->{$property})
|
2065
|
0 |
0 |
if $debug
|
2069
|
0 |
0 |
if $debug
|
2075
|
0 |
0 |
if $debug
|
2079
|
0 |
0 |
if ($expandedProperty eq "\@nest")
|
2080
|
0 |
0 |
if $debug
|
2085
|
0 |
0 |
if ($frameExpansion)
|
2087
|
0 |
0 |
if ($other_framings{$expandedProperty})
|
2088
|
0 |
0 |
if $debug
|
2090
|
0 |
0 |
if $debug
|
2094
|
0 |
0 |
if $debug
|
2095
|
0 |
0 |
unless (not defined $expandedValue and $expandedProperty eq "\@value" and $input_type ne "\@json")
|
2096
|
0 |
0 |
if $debug
|
2099
|
0 |
0 |
if $debug
|
2102
|
0 |
0 |
if $debug
|
2109
|
0 |
1 |
if $debug
|
2111
|
0 |
1 |
if $debug
|
2113
|
0 |
1 |
if (exists $tdef->{'type_mapping'} and $tdef->{'type_mapping'} eq '@json') { }
|
|
0 |
1 |
elsif ($self->_cm_contains($container_mapping, '@language') and ref $value eq 'HASH') { }
|
|
0 |
1 |
elsif ($self->_cm_contains_any($container_mapping, '@index', '@type', '@id') and ref $value eq 'HASH') { }
|
2114
|
0 |
0 |
if $debug
|
2116
|
0 |
0 |
if $debug
|
2118
|
0 |
0 |
if $debug
|
2119
|
0 |
0 |
if $debug
|
2122
|
0 |
0 |
if $debug
|
2125
|
0 |
0 |
if (exists $tdef->{'direction_mapping'})
|
2126
|
0 |
0 |
if $debug
|
2130
|
0 |
0 |
if $debug
|
2134
|
0 |
0 |
if $debug
|
2136
|
0 |
0 |
if (ref $language_value ne "ARRAY")
|
2137
|
0 |
0 |
if $debug
|
2141
|
0 |
0 |
if $debug
|
2144
|
0 |
0 |
unless (defined $item)
|
2145
|
0 |
0 |
if $debug
|
2149
|
0 |
0 |
if (ref $item)
|
2150
|
0 |
0 |
if $debug
|
2154
|
0 |
0 |
if $debug
|
2157
|
0 |
0 |
if ($item ne "\@none" and not $well_formed)
|
2163
|
0 |
0 |
if ($language eq "\@none" or $expandedLanguage eq "\@none")
|
2164
|
0 |
0 |
if $debug
|
2168
|
0 |
0 |
if (defined $direction)
|
2169
|
0 |
0 |
if $debug
|
2173
|
0 |
0 |
if $debug
|
2177
|
0 |
0 |
if $debug
|
2180
|
0 |
0 |
if $debug
|
2181
|
0 |
0 |
if $debug
|
2184
|
0 |
0 |
if $debug
|
2187
|
0 |
0 |
if $debug
|
2191
|
0 |
0 |
if $debug
|
2192
|
0 |
0 |
if $debug
|
2194
|
0 |
0 |
if ($self->_cm_contains_any($container_mapping, '@id', '@type')) { }
|
2195
|
0 |
0 |
if $debug
|
2202
|
0 |
0 |
if ($self->_cm_contains_any($container_mapping, '@type') and exists $index_tdef->{'@context'}) { }
|
2203
|
0 |
0 |
if $debug
|
2206
|
0 |
0 |
if $debug
|
2210
|
0 |
0 |
if $debug
|
2213
|
0 |
0 |
if (ref $index_value ne "ARRAY")
|
2214
|
0 |
0 |
if $debug
|
2218
|
0 |
0 |
if $debug
|
2220
|
0 |
0 |
if $debug
|
2222
|
0 |
0 |
if $debug
|
2225
|
0 |
0 |
if $debug
|
2226
|
0 |
0 |
if $debug
|
2227
|
0 |
0 |
if ($self->_cm_contains($container_mapping, "\@graph") and not $self->_is_graph_object($item))
|
2228
|
0 |
0 |
if $debug
|
2229
|
0 |
0 |
if $debug
|
2230
|
0 |
0 |
ref $item eq 'ARRAY' ? :
|
2231
|
0 |
0 |
if $debug
|
2234
|
0 |
0 |
if ($self->_cm_contains($container_mapping, '@index') and $index_key ne '@index' and $expanded_index ne '@none') { }
|
|
0 |
0 |
elsif ($self->_cm_contains($container_mapping, '@index') and not exists $item->{'@index'} and $expanded_index ne '@none') { }
|
|
0 |
0 |
elsif ($self->_cm_contains($container_mapping, '@id') and not exists $item->{'@id'} and $expanded_index ne '@none') { }
|
|
0 |
0 |
elsif ($self->_cm_contains($container_mapping, '@type') and $expanded_index ne '@none') { }
|
2235
|
0 |
0 |
if $debug
|
2236
|
0 |
0 |
if $debug
|
2238
|
0 |
0 |
if $debug
|
2240
|
0 |
0 |
if $debug
|
2242
|
0 |
0 |
if (exists $item->{$expanded_index_key})
|
2244
|
0 |
0 |
if (ref $v eq 'ARRAY') { }
|
2250
|
0 |
0 |
if $debug
|
2253
|
0 |
0 |
if ($self->_is_value_object($item))
|
2255
|
0 |
0 |
if (scalar @keys > 1)
|
2260
|
0 |
0 |
if $debug
|
2262
|
0 |
0 |
if $debug
|
2264
|
0 |
0 |
if $debug
|
2268
|
0 |
0 |
if $debug
|
2270
|
0 |
0 |
if (exists $item->{'@type'})
|
2272
|
0 |
0 |
if (ref $v eq 'ARRAY') { }
|
2279
|
0 |
0 |
if $debug
|
2282
|
0 |
0 |
if $debug
|
2286
|
0 |
0 |
if $debug
|
2288
|
0 |
1 |
if $debug
|
2290
|
0 |
1 |
if $debug
|
2294
|
0 |
1 |
unless (defined $expandedValue)
|
2295
|
0 |
0 |
if $debug
|
2299
|
0 |
1 |
if ($self->_cm_contains($container_mapping, "\@list") and not $self->_is_list_object($expandedValue))
|
2301
|
0 |
0 |
if $debug
|
2302
|
0 |
0 |
unless (ref $expandedValue eq "ARRAY")
|
2306
|
0 |
0 |
if $debug
|
2309
|
0 |
0 |
if ($self->_cm_contains($container_mapping, "\@graph") and not $self->_cm_contains($container_mapping, "\@id") and not $self->_cm_contains($container_mapping, "\@index"))
|
2312
|
0 |
0 |
if $debug
|
2313
|
0 |
0 |
if (ref $expandedValue ne "ARRAY")
|
2318
|
0 |
0 |
if $debug
|
2319
|
0 |
0 |
ref $ev eq 'ARRAY' ? :
|
2323
|
0 |
0 |
if $debug
|
2326
|
0 |
1 |
if ($tdef->{'reverse'}) { }
|
2328
|
0 |
0 |
if $debug
|
2329
|
0 |
0 |
unless (exists $result->{'@reverse'})
|
2330
|
0 |
0 |
if $debug
|
2334
|
0 |
0 |
if $debug
|
2337
|
0 |
0 |
if (ref $expandedValue ne "ARRAY")
|
2338
|
0 |
0 |
if $debug
|
2343
|
0 |
0 |
if $debug
|
2344
|
0 |
0 |
if ($self->_is_value_object($item) or $self->_is_list_object($item))
|
2345
|
0 |
0 |
if $debug
|
2349
|
0 |
0 |
unless (exists $reverse_map->{$expandedProperty})
|
2350
|
0 |
0 |
if $debug
|
2354
|
0 |
0 |
if $debug
|
2357
|
0 |
0 |
if $debug
|
2360
|
0 |
1 |
if $debug
|
2361
|
1 |
0 |
unless (exists $result->{$expandedProperty})
|
2362
|
0 |
1 |
if $debug
|
2366
|
0 |
1 |
if $debug
|
2367
|
0 |
1 |
if (ref $expandedValue eq 'ARRAY') { }
|
|
1 |
0 |
elsif (ref $expandedValue) { }
|
2370
|
0 |
1 |
if $debug
|
2373
|
0 |
1 |
if $debug
|
2392
|
0 |
1 |
if $debug
|
2398
|
0 |
0 |
if $debug
|
2399
|
0 |
0 |
if $debug
|
2402
|
0 |
0 |
unless (defined $nested_values)
|
2405
|
0 |
0 |
if (not ref $nested_values or ref $nested_values ne "ARRAY")
|
2409
|
0 |
0 |
if $debug
|
2410
|
0 |
0 |
if $debug
|
2413
|
0 |
0 |
if $debug
|
2414
|
0 |
0 |
if $debug
|
2415
|
0 |
0 |
if (ref $nested_value ne "HASH")
|
2416
|
0 |
0 |
if $debug
|
2422
|
0 |
0 |
if (exists $expandedKeys{'@value'})
|
2423
|
0 |
0 |
if $debug
|
2427
|
0 |
0 |
if $debug
|
2433
|
0 |
1 |
if $debug
|
2440
|
0 |
6 |
if $debug
|
2445
|
0 |
5 |
unless exists $acceptable{$k}
|
2452
|
0 |
6 |
if $debug
|
2453
|
0 |
6 |
if $debug
|
2454
|
0 |
6 |
if $debug
|
2458
|
2 |
4 |
unless (defined $value and not exists $keywords{$value})
|
2459
|
0 |
2 |
if $debug
|
2463
|
0 |
4 |
if ($value =~ /^\@[A-Za-z]+$/u)
|
2464
|
0 |
0 |
if $debug
|
2469
|
0 |
4 |
if (defined $localCtx and my $v = $localCtx->{$value})
|
2470
|
0 |
0 |
unless ($defined->{$v})
|
2471
|
0 |
0 |
if $debug
|
2476
|
0 |
4 |
if (my $tdef = $self->_ctx_term_defn($activeCtx, $value))
|
2478
|
0 |
0 |
if ($keywords{$i})
|
2479
|
0 |
0 |
if $debug
|
2484
|
0 |
4 |
if ($vocab and my $tdef = $self->_ctx_term_defn($activeCtx, $value))
|
2486
|
0 |
0 |
if $debug
|
2490
|
1 |
3 |
if ($value =~ /.:/u)
|
2492
|
0 |
1 |
if $debug
|
2493
|
0 |
1 |
if $debug
|
2496
|
1 |
0 |
if ($prefix eq "_" or $suffix =~ m[^//]u)
|
2497
|
0 |
1 |
if $debug
|
2501
|
0 |
0 |
if ($localCtx and exists $localCtx->{$prefix} and not $defined->{$prefix})
|
2502
|
0 |
0 |
if $debug
|
2507
|
0 |
0 |
if ($tdef and $tdef->{'iri_mapping'} and $tdef->{'prefix_flag'})
|
2509
|
0 |
0 |
if $debug
|
2513
|
0 |
0 |
if ($self->_is_abs_iri($value))
|
2514
|
0 |
0 |
if $debug
|
2519
|
2 |
1 |
if ($vocab and exists $activeCtx->{'@vocab'}) { }
|
|
0 |
1 |
elsif ($documentRelative) { }
|
2521
|
0 |
2 |
if $debug
|
2525
|
0 |
0 |
if $debug
|
2527
|
0 |
0 |
if (defined $base)
|
2533
|
0 |
1 |
if $debug
|
2543
|
0 |
1 |
if $debug
|
2548
|
0 |
1 |
if (exists $tdef->{'type_mapping'})
|
2549
|
0 |
0 |
if ($tdef->{'type_mapping'} eq "\@id" and _is_string($value))
|
2551
|
0 |
0 |
if $debug
|
2555
|
0 |
0 |
if ($tdef->{'type_mapping'} eq "\@vocab" and _is_string($value))
|
2557
|
0 |
0 |
if $debug
|
2562
|
0 |
1 |
if $debug
|
2566
|
0 |
1 |
if (exists $tdef->{'type_mapping'} and $tm ne '@id' and $tm ne '@vocab' and $tm ne '@none') { }
|
|
1 |
0 |
elsif (_is_string($value)) { }
|
2567
|
0 |
0 |
if $debug
|
2570
|
0 |
1 |
if $debug
|
2571
|
0 |
1 |
if $debug
|
2572
|
0 |
1 |
exists $tdef->{'language_mapping'} ? :
|
2574
|
0 |
1 |
if $debug
|
2575
|
0 |
1 |
exists $tdef->{'direction_mapping'} ? :
|
2577
|
0 |
1 |
if (defined $language)
|
2578
|
0 |
0 |
if $debug
|
2582
|
0 |
1 |
if (defined $direction)
|
2583
|
0 |
0 |
if $debug
|
2588
|
0 |
1 |
if $debug
|
2600
|
0 |
0 |
if $debug
|
2606
|
0 |
0 |
if $debug
|
2611
|
0 |
0 |
if $debug
|
2614
|
0 |
0 |
if (_is_scalar($element))
|
2615
|
0 |
0 |
if $debug
|
2619
|
0 |
0 |
if (ref $element eq "ARRAY")
|
2620
|
0 |
0 |
if $debug
|
2621
|
0 |
0 |
if $debug
|
2624
|
0 |
0 |
if $debug
|
2626
|
0 |
0 |
if $debug
|
2628
|
0 |
0 |
if (defined $compactedItem)
|
2629
|
0 |
0 |
if $debug
|
2640
|
0 |
0 |
if (scalar @$result == 1 and $not_graph && $not_set || !$self->_cm_contains_any($container_mapping, '@list', '@set') && $compactArrays)
|
2642
|
0 |
0 |
if $debug
|
2646
|
0 |
0 |
if $debug
|
2650
|
0 |
0 |
if $debug
|
2652
|
0 |
0 |
if (exists $activeCtx->{'previous_context'})
|
2653
|
0 |
0 |
unless (exists $element->{'@value'})
|
2655
|
0 |
0 |
unless (scalar @keys == 1 and $keys[0] eq "\@id")
|
2656
|
0 |
0 |
if $debug
|
2663
|
0 |
0 |
if (exists $tdef->{'@context'})
|
2664
|
0 |
0 |
if $debug
|
2665
|
0 |
0 |
if $debug
|
2668
|
0 |
0 |
if $debug
|
2672
|
0 |
0 |
if (exists $element->{'@value'} or exists $element->{'@id'})
|
2673
|
0 |
0 |
if $debug
|
2676
|
0 |
0 |
if (_is_scalar($v) or $tm eq "\@json")
|
2677
|
0 |
0 |
if $debug
|
2683
|
0 |
0 |
if (_is_list_object($element) and $self->_cm_contains($container_mapping, "\@list"))
|
2684
|
0 |
0 |
if $debug
|
2686
|
0 |
0 |
if $debug
|
2690
|
0 |
0 |
if $debug
|
2693
|
0 |
0 |
if $debug
|
2696
|
0 |
0 |
if (exists $element->{'@type'})
|
2697
|
0 |
0 |
if $debug
|
2702
|
0 |
0 |
if $debug
|
2704
|
0 |
0 |
if (exists $tdef->{'@context'})
|
2705
|
0 |
0 |
if $debug
|
2708
|
0 |
0 |
if $debug
|
2714
|
0 |
0 |
if $debug
|
2717
|
0 |
0 |
if $debug
|
2719
|
0 |
0 |
if $debug
|
2724
|
0 |
0 |
if ($expandedProperty eq '@id') { }
|
|
0 |
0 |
elsif ($expandedProperty eq '@type') { }
|
|
0 |
0 |
elsif ($expandedProperty eq '@reverse') { }
|
|
0 |
0 |
elsif ($expandedProperty eq '@preserve') { }
|
|
0 |
0 |
elsif ($expandedProperty eq '@index' and $self->_cm_contains($container_mapping, '@index')) { }
|
|
0 |
0 |
elsif ($expandedProperty =~ /^@(direction|index|language|value)$/u) { }
|
2725
|
0 |
0 |
if $debug
|
2726
|
0 |
0 |
if (_is_string($expandedValue))
|
2727
|
0 |
0 |
if $debug
|
2730
|
0 |
0 |
if $debug
|
2733
|
0 |
0 |
if $debug
|
2738
|
0 |
0 |
if $debug
|
2740
|
0 |
0 |
if (_is_string($expandedValue)) { }
|
2741
|
0 |
0 |
if $debug
|
2744
|
0 |
0 |
if $debug
|
2745
|
0 |
0 |
if $debug
|
2748
|
0 |
0 |
if $debug
|
2750
|
0 |
0 |
if $debug
|
2753
|
0 |
0 |
if $debug
|
2757
|
0 |
0 |
if $debug
|
2758
|
0 |
0 |
if (scalar @$compactedValue == 1)
|
2763
|
0 |
0 |
if $debug
|
2766
|
0 |
0 |
if $debug
|
2769
|
0 |
0 |
$self->_cm_contains($container_mapping, '@set') ? :
|
2772
|
0 |
0 |
if $debug
|
2775
|
0 |
0 |
if $debug
|
2778
|
0 |
0 |
if $debug
|
2779
|
0 |
0 |
if $debug
|
2783
|
0 |
0 |
if $debug
|
2787
|
0 |
0 |
if ($tdef->{'reverse'})
|
2788
|
0 |
0 |
if $debug
|
2789
|
0 |
0 |
if $debug
|
2792
|
0 |
0 |
if ($self->_cm_contains($container_mapping, '@set')) { }
|
2798
|
0 |
0 |
if $debug
|
2801
|
0 |
0 |
if $debug
|
2807
|
0 |
0 |
if (scalar @keys)
|
2808
|
0 |
0 |
if $debug
|
2809
|
0 |
0 |
if $debug
|
2812
|
0 |
0 |
if $debug
|
2816
|
0 |
0 |
if $debug
|
2819
|
0 |
0 |
if $debug
|
2820
|
0 |
0 |
if $debug
|
2823
|
0 |
0 |
unless (ref $expandedValue eq "ARRAY" and scalar @$expandedValue == 0)
|
2824
|
0 |
0 |
if $debug
|
2828
|
0 |
0 |
if $debug
|
2831
|
0 |
0 |
if $debug
|
2832
|
0 |
0 |
if $debug
|
2835
|
0 |
0 |
if $debug
|
2840
|
0 |
0 |
if (ref $expandedValue eq "ARRAY" and scalar @$expandedValue == 0)
|
2841
|
0 |
0 |
if $debug
|
2842
|
0 |
0 |
if $debug
|
2846
|
0 |
0 |
if $debug
|
2849
|
0 |
0 |
if (exists $tdef->{'nest_value'}) { }
|
2851
|
0 |
0 |
if ($nest_term ne "\@nest")
|
2854
|
0 |
0 |
unless (exists $result->{$nest_term})
|
2857
|
0 |
0 |
if (not exists $result->{$nest_term}{$item_active_property}) { }
|
|
0 |
0 |
elsif (ref $result->{$nest_term}{$item_active_property} ne 'ARRAY') { }
|
2863
|
0 |
0 |
if $debug
|
2864
|
0 |
0 |
if (not exists $result->{$item_active_property}) { }
|
|
0 |
0 |
elsif (ref $result->{$item_active_property} ne 'ARRAY') { }
|
2872
|
0 |
0 |
if $debug
|
2875
|
0 |
0 |
if $debug
|
2877
|
0 |
0 |
if $debug
|
2881
|
0 |
0 |
if (exists $tdef->{'nest_value'}) { }
|
2882
|
0 |
0 |
if $debug
|
2884
|
0 |
0 |
if ($nest_term ne "\@nest")
|
2889
|
0 |
0 |
if $debug
|
2893
|
0 |
0 |
if $debug
|
2896
|
0 |
0 |
if (defined $container_mapping)
|
2902
|
0 |
0 |
if $debug
|
2905
|
0 |
0 |
if $debug
|
2908
|
0 |
0 |
(ref $expandedItem ne 'HASH' || !exists $expandedItem->{'@list'}) && !($self->_is_graph_object($expandedItem) && exists $expandedItem->{'@list'}) ? :
|
2911
|
0 |
0 |
if ($self->_is_list_object($expandedItem))
|
2912
|
0 |
0 |
if $debug
|
2913
|
0 |
0 |
if (ref $compactedItem ne "ARRAY")
|
2914
|
0 |
0 |
if $debug
|
2918
|
0 |
0 |
unless ($self->_cm_contains($container, "\@list"))
|
2919
|
0 |
0 |
if $debug
|
2920
|
0 |
0 |
if $debug
|
2924
|
0 |
0 |
if $debug
|
2925
|
0 |
0 |
if (exists $expandedItem->{'@index'})
|
2932
|
0 |
0 |
if ($self->_is_graph_object($expandedItem)) { }
|
|
0 |
0 |
elsif ($self->_cm_contains_any($container, '@language', '@index', '@id', '@type') and not $self->_cm_contains($container, '@graph')) { }
|
2934
|
0 |
0 |
if ($self->_cm_contains($container, '@graph') and $self->_cm_contains($container, '@id')) { }
|
|
0 |
0 |
elsif ($self->_cm_contains($container, '@graph') and $self->_cm_contains($container, '@index') and $self->_is_simple_graph_object($expandedItem)) { }
|
|
0 |
0 |
elsif ($container eq '@graph' and $self->_is_simple_graph_object($expandedItem)) { }
|
|
0 |
0 |
elsif ($container ne '@graph') { }
|
2935
|
0 |
0 |
if $debug
|
2936
|
0 |
0 |
if $debug
|
2939
|
0 |
0 |
if $debug
|
2942
|
0 |
0 |
if $debug
|
2945
|
0 |
0 |
if $debug
|
2946
|
0 |
0 |
if $debug
|
2949
|
0 |
0 |
if $debug
|
2952
|
0 |
0 |
if $debug
|
2955
|
0 |
0 |
if $debug
|
2956
|
0 |
0 |
if (ref $compactedItem eq "ARRAY" and scalar @$compactedItem > 1)
|
2957
|
0 |
0 |
if $debug
|
2962
|
0 |
0 |
if $debug
|
2965
|
0 |
0 |
if $debug
|
2966
|
0 |
0 |
if $debug
|
2970
|
0 |
0 |
if (exists $expandedItem->{'@id'})
|
2971
|
0 |
0 |
if $debug
|
2978
|
0 |
0 |
if (exists $expandedItem->{'@index'})
|
2979
|
0 |
0 |
if $debug
|
2984
|
0 |
0 |
if $debug
|
2989
|
0 |
0 |
if $debug
|
2990
|
0 |
0 |
if $debug
|
2993
|
0 |
0 |
if $debug
|
2996
|
0 |
0 |
if $self->_cm_contains_any($container, $k)
|
3000
|
0 |
0 |
if $debug
|
3005
|
0 |
0 |
if ($self->_cm_contains_any($container, '@language') and exists $expandedItem->{'@value'}) { }
|
|
0 |
0 |
elsif ($self->_cm_contains_any($container, '@index') and $index_key eq '@index') { }
|
|
0 |
0 |
elsif ($self->_cm_contains_any($container, '@index') and $index_key ne '@index') { }
|
|
0 |
0 |
elsif ($self->_cm_contains_any($container, '@id')) { }
|
|
0 |
0 |
elsif ($self->_cm_contains_any($container, '@type')) { }
|
3006
|
0 |
0 |
if $debug
|
3010
|
0 |
0 |
if $debug
|
3013
|
0 |
0 |
if $debug
|
3015
|
0 |
0 |
unless $compactedItem->{$container_key}
|
3016
|
0 |
0 |
ref $compactedItem eq 'ARRAY' ? :
|
3018
|
0 |
0 |
if (scalar @values) { }
|
3024
|
0 |
0 |
if $debug
|
3027
|
0 |
0 |
if $debug
|
3028
|
0 |
0 |
if $debug
|
3029
|
0 |
0 |
unless $compactedItem->{$container_key}
|
3032
|
0 |
0 |
if (scalar @values) { }
|
3033
|
0 |
0 |
if $debug
|
3036
|
0 |
0 |
if $debug
|
3041
|
0 |
0 |
if (scalar @keys == 1 and $keys[0] eq "\@id")
|
3042
|
0 |
0 |
if $debug
|
3047
|
0 |
0 |
unless (defined $map_key)
|
3048
|
0 |
0 |
if $debug
|
3052
|
0 |
0 |
if $debug
|
3055
|
0 |
0 |
if $debug
|
3056
|
0 |
0 |
if (not $compactArrays and $as_array and ref $compactedItem ne "ARRAY")
|
3057
|
0 |
0 |
if $debug
|
3061
|
0 |
0 |
if (not exists $result->{$item_active_property}) { }
|
3062
|
0 |
0 |
if $debug
|
3065
|
0 |
0 |
if $debug
|
3066
|
0 |
0 |
if (ref $nest_result->{$item_active_property} ne "ARRAY")
|
3070
|
0 |
0 |
if (ref $compactedItem eq 'ARRAY') { }
|
3078
|
0 |
0 |
if $debug
|
3081
|
0 |
0 |
if $debug
|
3097
|
0 |
0 |
if $debug
|
3103
|
0 |
0 |
unless (defined $var)
|
3104
|
0 |
0 |
if $debug
|
3108
|
0 |
0 |
if ($vocab and exists $inverseCtx->{$var})
|
3109
|
0 |
0 |
if $debug
|
3110
|
0 |
0 |
if $debug
|
3112
|
0 |
0 |
if (defined $activeCtx->{'default_base_direction'}) { }
|
3113
|
0 |
0 |
if $debug
|
3116
|
0 |
0 |
if $debug
|
3117
|
0 |
0 |
if (exists $activeCtx->{'@language'}) { }
|
3124
|
0 |
0 |
if (ref $value eq "HASH" and exists $value->{'@preserve'})
|
3125
|
0 |
0 |
if $debug
|
3129
|
0 |
0 |
if $debug
|
3132
|
0 |
0 |
if $debug
|
3136
|
0 |
0 |
if (ref $value eq "HASH" and exists $value->{'@index'} and not $self->_is_graph_object($value))
|
3137
|
0 |
0 |
if $debug
|
3141
|
0 |
0 |
if ($reverse) { }
|
|
0 |
0 |
elsif ($self->_is_list_object($value)) { }
|
|
0 |
0 |
elsif ($self->_is_graph_object($value)) { }
|
3142
|
0 |
0 |
if $debug
|
3147
|
0 |
0 |
if $debug
|
3148
|
0 |
0 |
unless (exists $value->{'@index'})
|
3149
|
0 |
0 |
if $debug
|
3153
|
0 |
0 |
if $debug
|
3156
|
0 |
0 |
if $debug
|
3159
|
0 |
0 |
unless (scalar @$list)
|
3163
|
0 |
0 |
if $debug
|
3165
|
0 |
0 |
if $debug
|
3169
|
0 |
0 |
if (exists $item->{'@value'}) { }
|
3170
|
0 |
0 |
if $debug
|
3171
|
0 |
0 |
if (exists $item->{'@direction'}) { }
|
|
0 |
0 |
elsif (exists $item->{'@language'}) { }
|
|
0 |
0 |
elsif (exists $item->{'@type'}) { }
|
3172
|
0 |
0 |
if $debug
|
3175
|
0 |
0 |
if $debug
|
3178
|
0 |
0 |
if $debug
|
3181
|
0 |
0 |
if $debug
|
3185
|
0 |
0 |
if $debug
|
3189
|
0 |
0 |
if (not defined $common_language) { }
|
|
0 |
0 |
elsif ($item_language ne $common_language and exists $item->{'@value'}) { }
|
3190
|
0 |
0 |
if $debug
|
3193
|
0 |
0 |
if $debug
|
3197
|
0 |
0 |
if (not defined $common_type) { }
|
|
0 |
0 |
elsif ($item_type ne $common_type) { }
|
3198
|
0 |
0 |
if $debug
|
3201
|
0 |
0 |
if $debug
|
3205
|
0 |
0 |
if ($common_language eq "\@none" and $common_type eq "\@none")
|
3206
|
0 |
0 |
if $debug
|
3211
|
0 |
0 |
unless (defined $common_language)
|
3212
|
0 |
0 |
if $debug
|
3216
|
0 |
0 |
unless (defined $common_type)
|
3217
|
0 |
0 |
if $debug
|
3221
|
0 |
0 |
if ($common_type ne '@none') { }
|
3222
|
0 |
0 |
if $debug
|
3226
|
0 |
0 |
if $debug
|
3231
|
0 |
0 |
if $debug
|
3232
|
0 |
0 |
if (exists $value->{'@index'})
|
3233
|
0 |
0 |
if $debug
|
3237
|
0 |
0 |
if (exists $value->{'@id'})
|
3238
|
0 |
0 |
if $debug
|
3242
|
0 |
0 |
if $debug
|
3245
|
0 |
0 |
unless (exists $value->{'@index'})
|
3246
|
0 |
0 |
if $debug
|
3250
|
0 |
0 |
unless (exists $value->{'@id'})
|
3251
|
0 |
0 |
if $debug
|
3255
|
0 |
0 |
if $debug
|
3258
|
0 |
0 |
if $debug
|
3262
|
0 |
0 |
if $debug
|
3263
|
0 |
0 |
if ($self->_is_value_object($value)) { }
|
3264
|
0 |
0 |
if $debug
|
3265
|
0 |
0 |
if (exists $value->{'@direction'} and not exists $value->{'@index'}) { }
|
|
0 |
0 |
elsif (exists $value->{'@language'} and not exists $value->{'@index'}) { }
|
|
0 |
0 |
elsif (exists $value->{'@type'}) { }
|
3266
|
0 |
0 |
if $debug
|
3270
|
0 |
0 |
if $debug
|
3274
|
0 |
0 |
if $debug
|
3279
|
0 |
0 |
if $debug
|
3285
|
0 |
0 |
if $debug
|
3289
|
0 |
0 |
if $debug
|
3296
|
0 |
0 |
if ($self->processing_mode ne "json-ld-1.0" and not ref $value eq 'HASH' && exists $value->{'@index'})
|
3298
|
0 |
0 |
if $debug
|
3302
|
0 |
0 |
ref $value eq 'HASH' ? :
|
3303
|
0 |
0 |
if ($self->processing_mode ne "json-ld-1.0" and scalar @keys == 1 and $keys[0] eq "\@value")
|
3304
|
0 |
0 |
if $debug
|
3308
|
0 |
0 |
unless (defined $type_language_value)
|
3309
|
0 |
0 |
if $debug
|
3313
|
0 |
0 |
if $debug
|
3316
|
0 |
0 |
if ($type_language_value eq "\@reverse")
|
3317
|
0 |
0 |
if $debug
|
3321
|
0 |
0 |
if ($type_language_value eq '@id' || $type_language_value eq '@reverse' and ref $value eq 'HASH' and exists $value->{'@id'}) { }
|
3323
|
0 |
0 |
if $debug
|
3326
|
0 |
0 |
if ($tdef and $tdef->{'iri_mapping'} eq $value->{'@id'}) { }
|
3327
|
0 |
0 |
if $debug
|
3330
|
0 |
0 |
if $debug
|
3334
|
0 |
0 |
if $debug
|
3336
|
0 |
0 |
if ($self->_is_list_object($value) and not scalar @{$value->{'@list'};})
|
3342
|
0 |
0 |
if $debug
|
3346
|
0 |
0 |
if (scalar @underscored)
|
3347
|
0 |
0 |
if $debug
|
3351
|
0 |
0 |
if $debug
|
3354
|
0 |
0 |
if (defined $term)
|
3355
|
0 |
0 |
if $debug
|
3360
|
0 |
0 |
if ($vocab and exists $activeCtx->{'@vocab'})
|
3361
|
0 |
0 |
if $debug
|
3363
|
0 |
0 |
if (substr($var, 0, length $vm) eq $vm and length $var > length $vm)
|
3364
|
0 |
0 |
if $debug
|
3367
|
0 |
0 |
unless ($tdef)
|
3368
|
0 |
0 |
if $debug
|
3374
|
0 |
0 |
if $debug
|
3377
|
0 |
0 |
if $debug
|
3379
|
0 |
0 |
if $debug
|
3384
|
0 |
0 |
if (not defined $tdef or ($iri_mapping // "") eq $var or not $iri_is_prefix or not exists $tdef->{'prefix_flag'} && $tdef->{'prefix_flag'})
|
3385
|
0 |
0 |
if $debug
|
3389
|
0 |
0 |
if $debug
|
3392
|
0 |
0 |
if $debug
|
3393
|
0 |
0 |
if (not defined $compact_iri) { }
|
3394
|
0 |
0 |
if $debug
|
3401
|
0 |
0 |
if $debug
|
3402
|
0 |
0 |
if ($shorter || $less and $no_tdef) { }
|
|
0 |
0 |
elsif (exists $cand_tdef->{'iri_mapping'} and $cand_tdef->{'iri_mapping'} eq $var and not defined $value) { }
|
3403
|
0 |
0 |
if $debug
|
3406
|
0 |
0 |
if $debug
|
3412
|
0 |
0 |
if (defined $compact_iri)
|
3413
|
0 |
0 |
if $debug
|
3418
|
0 |
0 |
unless ($@)
|
3421
|
0 |
0 |
if ($scheme_tdef and $scheme_tdef->{'prefix_flag'} and substr($var, length($scheme) + 1, 2) ne "//")
|
3422
|
0 |
0 |
if $debug
|
3427
|
0 |
0 |
unless ($vocab)
|
3428
|
0 |
0 |
if $debug
|
3429
|
0 |
0 |
exists $activeCtx->{'@base'} ? :
|
3430
|
0 |
0 |
unless ($@)
|
3438
|
0 |
0 |
if $debug
|
3450
|
0 |
0 |
if $debug
|
3453
|
0 |
0 |
if $debug
|
3455
|
0 |
0 |
if $debug
|
3458
|
0 |
0 |
if $debug
|
3462
|
0 |
0 |
exists $tdef->{'language_mapping'} ? :
|
3464
|
0 |
0 |
if $debug
|
3467
|
0 |
0 |
exists $tdef->{'direction_mapping'} ? :
|
3469
|
0 |
0 |
if $_ ne "\@id"
|
3472
|
0 |
0 |
if (exists $value->{'@id'} and scalar @keys == 0) { }
|
|
0 |
0 |
elsif (exists $value->{'@type'} and $value->{'@type'} eq $type_mapping) { }
|
|
0 |
0 |
elsif ($type_mapping eq '@none' or exists $value->{'@type'} and $value->{'@type'} ne $type_mapping) { }
|
|
0 |
0 |
elsif (not _is_string($value->{'@value'})) { }
|
3473
|
0 |
0 |
if $debug
|
3474
|
0 |
0 |
if ($type_mapping eq '@id') { }
|
|
0 |
0 |
elsif ($type_mapping eq '@vocab') { }
|
3475
|
0 |
0 |
if $debug
|
3478
|
0 |
0 |
if $debug
|
3482
|
0 |
0 |
if $debug
|
3485
|
0 |
0 |
if $debug
|
3486
|
0 |
0 |
if (exists $result->{'@type'})
|
3487
|
0 |
0 |
if $debug
|
3488
|
0 |
0 |
ref $value->{'@type'} eq 'ARRAY' ? :
|
3492
|
0 |
0 |
if $debug
|
3494
|
0 |
0 |
if (scalar @keys == 1 and $keys[0] eq '@value') { }
|
|
0 |
0 |
elsif (exists $value->{'@index'} and $self->_cm_contains($container_mapping, '@index')) { }
|
3498
|
0 |
0 |
if $debug
|
3503
|
0 |
0 |
if $debug
|
3523
|
0 |
0 |
defined $language ? :
|
3526
|
0 |
0 |
defined $direction ? :
|
3527
|
0 |
0 |
if ($lang_cmp_1 and $dir_cmp_1)
|
3528
|
0 |
0 |
if $debug
|
3529
|
0 |
0 |
if (exists $value->{'@index'} and $self->_cm_contains($container_mapping, "\@index") or not exists $value->{'@index'})
|
3530
|
0 |
0 |
if $debug
|
3535
|
0 |
0 |
if $debug
|
3536
|
0 |
0 |
if $debug
|
3539
|
0 |
0 |
if (ref $result eq "HASH")
|
3540
|
0 |
0 |
if $debug
|
3544
|
0 |
0 |
if $debug
|
3545
|
0 |
0 |
if $debug
|
3551
|
0 |
0 |
if $debug
|
3564
|
0 |
0 |
if $debug
|
3570
|
0 |
0 |
if $debug
|
3571
|
0 |
0 |
if $debug
|
3576
|
0 |
0 |
if $debug
|
3577
|
0 |
0 |
if (ref $element eq "ARRAY")
|
3584
|
0 |
0 |
if $debug
|
3588
|
0 |
0 |
if (not defined $activeSubject) { }
|
3594
|
0 |
0 |
unless (ref $element eq "HASH")
|
3598
|
0 |
0 |
if (exists $element->{'@type'})
|
3599
|
0 |
0 |
if $debug
|
3601
|
0 |
0 |
if (ref $element and ref $element ne "HASH")
|
3604
|
0 |
0 |
if (ref $element->{'@type'}) { }
|
3607
|
0 |
0 |
if ($item =~ /^_:/u)
|
3608
|
0 |
0 |
if $debug
|
3613
|
0 |
0 |
if ($element->{'@type'} =~ /^_:/u)
|
3620
|
0 |
0 |
if (exists $element->{'@value'}) { }
|
|
0 |
0 |
elsif (exists $element->{'@list'}) { }
|
3621
|
0 |
0 |
if $debug
|
3622
|
0 |
0 |
if (not defined $list) { }
|
3623
|
0 |
0 |
if $debug
|
3625
|
0 |
0 |
if (not exists $subjectNode->{$activeProp}) { }
|
3626
|
0 |
0 |
if $debug
|
3629
|
0 |
0 |
if $debug
|
3632
|
0 |
0 |
unless ($exists)
|
3637
|
0 |
0 |
if $debug
|
3641
|
0 |
0 |
if $debug
|
3642
|
0 |
0 |
if $debug
|
3645
|
0 |
0 |
if $debug
|
3648
|
0 |
0 |
if (not defined $list) { }
|
3649
|
0 |
0 |
if $debug
|
3650
|
0 |
0 |
if $debug
|
3653
|
0 |
0 |
if $debug
|
3657
|
0 |
0 |
if $debug
|
3659
|
0 |
0 |
if (exists $element->{'@id'}) { }
|
3660
|
0 |
0 |
if $debug
|
3662
|
0 |
0 |
if ($id =~ /^_:/u)
|
3666
|
0 |
0 |
if $debug
|
3670
|
0 |
0 |
unless (exists $graph->{$id})
|
3671
|
0 |
0 |
if $debug
|
3675
|
0 |
0 |
if $debug
|
3678
|
0 |
0 |
if (ref $activeSubject eq 'HASH') { }
|
|
0 |
0 |
elsif (defined $activeProp) { }
|
3679
|
0 |
0 |
if $debug
|
3680
|
0 |
0 |
if (not exists $node->{$activeProp}) { }
|
3681
|
0 |
0 |
if $debug
|
3684
|
0 |
0 |
if $debug
|
3687
|
0 |
0 |
unless ($exists)
|
3692
|
0 |
0 |
if $debug
|
3693
|
0 |
0 |
if $debug
|
3696
|
0 |
0 |
if (not defined $list) { }
|
3697
|
0 |
0 |
if $debug
|
3698
|
0 |
0 |
if (not exists $subjectNode->{$activeProp}) { }
|
3699
|
0 |
0 |
if $debug
|
3702
|
0 |
0 |
if $debug
|
3705
|
0 |
0 |
unless ($exists)
|
3714
|
0 |
0 |
if (exists $element->{'@type'})
|
3715
|
0 |
0 |
if $debug
|
3721
|
0 |
0 |
if (exists $element->{'@index'})
|
3722
|
0 |
0 |
if $debug
|
3723
|
0 |
0 |
if $debug
|
3727
|
0 |
0 |
if (exists $element->{'@reverse'})
|
3728
|
0 |
0 |
if $debug
|
3729
|
0 |
0 |
if $debug
|
3732
|
0 |
0 |
if $debug
|
3735
|
0 |
0 |
if $debug
|
3737
|
0 |
0 |
if $debug
|
3740
|
0 |
0 |
if $debug
|
3742
|
0 |
0 |
if $debug
|
3747
|
0 |
0 |
if $debug
|
3751
|
0 |
0 |
if (exists $element->{'@graph'})
|
3752
|
0 |
0 |
if $debug
|
3757
|
0 |
0 |
if (exists $element->{'@included'})
|
3758
|
0 |
0 |
if $debug
|
3763
|
0 |
0 |
if $debug
|
3765
|
0 |
0 |
if $debug
|
3766
|
0 |
0 |
if $debug
|
3768
|
0 |
0 |
if ($property =~ /^_:/u)
|
3769
|
0 |
0 |
if $debug
|
3772
|
0 |
0 |
unless (exists $node->{$property})
|
3773
|
0 |
0 |
if $debug
|
3777
|
0 |
0 |
if $debug
|
3784
|
0 |
0 |
if $debug
|
3788
|
0 |
0 |
if (defined $ident and exists $self->identifier_map->{$ident})
|
3789
|
0 |
0 |
if $debug
|
3793
|
0 |
0 |
if $debug
|
3798
|
0 |
0 |
if (defined $ident)
|
3799
|
0 |
0 |
if $debug
|
3803
|
0 |
0 |
if $debug
|
3808
|
0 |
0 |
if $debug
|
3817
|
0 |
0 |
if $debug
|
3820
|
0 |
0 |
if $debug
|
3821
|
0 |
0 |
if $debug
|
3824
|
0 |
0 |
unless ($self->_is_well_formed_graphname($graphName))
|
3825
|
0 |
0 |
if $debug
|
3830
|
0 |
0 |
if $debug
|
3831
|
0 |
0 |
if ($graphName eq '@default') { }
|
3837
|
0 |
0 |
if $debug
|
3840
|
0 |
0 |
if $debug
|
3841
|
0 |
0 |
if $debug
|
3844
|
0 |
0 |
if $debug
|
3846
|
0 |
0 |
if $debug
|
3848
|
0 |
0 |
if $debug
|
3849
|
0 |
0 |
if ($property eq '@type') { }
|
|
0 |
0 |
elsif (exists $keywords{$property}) { }
|
|
0 |
0 |
elsif ($property =~ /^_:(.*)$/u and not $produce_genrdf) { }
|
|
0 |
0 |
elsif (not $self->_is_well_formed_iri($property)) { }
|
3850
|
0 |
0 |
if $debug
|
3852
|
0 |
0 |
if ($self->_is_well_formed_graph_node($type))
|
3863
|
0 |
0 |
if $debug
|
3866
|
0 |
0 |
if $debug
|
3869
|
0 |
0 |
if $debug
|
3872
|
0 |
0 |
if $debug
|
3874
|
0 |
0 |
if $debug
|
3875
|
0 |
0 |
if $debug
|
3879
|
0 |
0 |
if ($o)
|
3880
|
0 |
0 |
if $debug
|
3887
|
0 |
0 |
if ($q)
|
3891
|
0 |
0 |
if $debug
|
3904
|
0 |
0 |
if $debug
|
3909
|
0 |
0 |
if ($self->_is_node_object($item) and not $self->_is_well_formed_graph_node($item->{'@id'}))
|
3910
|
0 |
0 |
if $debug
|
3911
|
0 |
0 |
if $debug
|
3915
|
0 |
0 |
if ($self->_is_node_object($item))
|
3917
|
0 |
0 |
if $debug
|
3918
|
0 |
0 |
if ($value =~ /^_:(.*)$/u) { }
|
3925
|
0 |
0 |
if ($self->_is_list_object($item))
|
3926
|
0 |
0 |
if $debug
|
3930
|
0 |
0 |
if $debug
|
3933
|
0 |
0 |
if $debug
|
3936
|
0 |
0 |
if (defined $datatype and not $self->_is_well_formed_datatype($datatype))
|
3937
|
0 |
0 |
if $debug
|
3938
|
0 |
0 |
if $debug
|
3942
|
0 |
0 |
if (exists $item->{'@language'} and not $self->_is_well_formed_language($item->{'@language'}))
|
3943
|
0 |
0 |
if $debug
|
3944
|
0 |
0 |
if $debug
|
3948
|
0 |
0 |
if (defined $datatype and $datatype eq "\@json")
|
3949
|
0 |
0 |
if $debug
|
3954
|
0 |
0 |
if (&JSON::is_bool($value))
|
3955
|
0 |
0 |
if $debug
|
3956
|
0 |
0 |
$value ? :
|
3957
|
0 |
0 |
unless ($datatype)
|
3964
|
0 |
0 |
$is_num ? :
|
3967
|
0 |
0 |
if ($is_large_int or $is_num and $double_or_not_int) { }
|
|
0 |
0 |
elsif ($is_num) { }
|
3969
|
0 |
0 |
if $debug
|
3976
|
0 |
0 |
unless ($datatype)
|
3980
|
0 |
0 |
if $debug
|
3985
|
0 |
0 |
unless ($datatype)
|
3990
|
0 |
0 |
unless (defined $datatype)
|
3991
|
0 |
0 |
if $debug
|
3992
|
0 |
0 |
exists $item->{'@language'} ? :
|
3996
|
0 |
0 |
if (exists $item->{'@direction'} and defined(my $dir = $self->rdf_direction)) { }
|
3997
|
0 |
0 |
if $debug
|
3998
|
0 |
0 |
if ($dir eq 'i18n-datatype') { }
|
|
0 |
0 |
elsif ($dir eq 'compound-literal') { }
|
3999
|
0 |
0 |
if $debug
|
4005
|
0 |
0 |
if $debug
|
4006
|
0 |
0 |
if $debug
|
4008
|
0 |
0 |
if $debug
|
4018
|
0 |
0 |
if (exists $item->{'@language'})
|
4019
|
0 |
0 |
if $debug
|
4030
|
0 |
0 |
if $debug
|
4041
|
0 |
0 |
if $debug
|
4043
|
0 |
0 |
exists $item->{'@language'} ? :
|
4047
|
0 |
0 |
if $debug
|
4052
|
0 |
0 |
if $debug
|
4059
|
0 |
0 |
if (scalar @$list == 0)
|
4060
|
0 |
0 |
if $debug
|
4064
|
0 |
0 |
if $debug
|
4069
|
0 |
0 |
if $debug
|
4070
|
0 |
0 |
if $debug
|
4073
|
0 |
0 |
if $debug
|
4076
|
0 |
0 |
if (defined $object)
|
4077
|
0 |
0 |
if $debug
|
4085
|
0 |
0 |
if $debug
|
4086
|
0 |
0 |
$i == $#{$bnodes;} ? :
|
4093
|
0 |
0 |
if $debug
|
4097
|
0 |
0 |
if $debug
|
4098
|
0 |
0 |
scalar @$bnodes ? :
|
4105
|
0 |
0 |
if ($value =~ /_:(.*)/u) { }
|