line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package RDF::Lazy::Blank; |
2
|
9
|
|
|
9
|
|
130
|
use strict; |
|
9
|
|
|
|
|
19
|
|
|
9
|
|
|
|
|
225
|
|
3
|
9
|
|
|
9
|
|
42
|
use warnings; |
|
9
|
|
|
|
|
21
|
|
|
9
|
|
|
|
|
271
|
|
4
|
|
|
|
|
|
|
|
5
|
9
|
|
|
9
|
|
47
|
use base 'RDF::Lazy::Node'; |
|
9
|
|
|
|
|
15
|
|
|
9
|
|
|
|
|
636
|
|
6
|
9
|
|
|
9
|
|
47
|
use Scalar::Util qw(blessed); |
|
9
|
|
|
|
|
18
|
|
|
9
|
|
|
|
|
492
|
|
7
|
|
|
|
|
|
|
|
8
|
9
|
|
|
9
|
|
48
|
use overload '""' => \&str; |
|
9
|
|
|
|
|
27
|
|
|
9
|
|
|
|
|
62
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub new { |
11
|
7
|
|
|
7
|
0
|
559
|
my $class = shift; |
12
|
7
|
|
33
|
|
|
26
|
my $graph = shift || RDF::Lazy->new; |
13
|
7
|
|
|
|
|
12
|
my $blank = shift; |
14
|
|
|
|
|
|
|
|
15
|
7
|
100
|
66
|
|
|
64
|
$blank = RDF::Trine::Node::Blank->new( $blank ) |
16
|
|
|
|
|
|
|
unless blessed($blank) and $blank->isa('RDF::Trine::Node::Blank'); |
17
|
7
|
50
|
|
|
|
564
|
return unless defined $blank; |
18
|
|
|
|
|
|
|
|
19
|
7
|
|
|
|
|
62
|
return bless [ $blank, $graph ], $class; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub id { |
23
|
|
|
|
|
|
|
shift->trine->blank_identifier |
24
|
9
|
|
|
9
|
1
|
993
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub str { |
27
|
2
|
|
|
2
|
1
|
986
|
'_:'.shift->trine->blank_identifier |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
*qname = *str; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |
33
|
|
|
|
|
|
|
__END__ |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 NAME |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
RDF::Lazy::Blank - Blank node in a RDF::Lazy graph |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 DESCRIPTION |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
You should not directly create instances of this class. |
42
|
|
|
|
|
|
|
See L<RDF::Lazy::Node> for general node properties. |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 METHODS |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head2 id |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
Return the local identifier of this node. |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head2 str |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
Return the local identifier, prepended by "C<_:>". |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=cut |