1RDF::Trine::Statement(3U)ser Contributed Perl DocumentatiRoDnF::Trine::Statement(3)
2
3
4
6 RDF::Trine::Statement - Class for triples and triple patterns
7
9 This document describes RDF::Trine::Statement version 1.019
10
12 "new ( $s, $p, $o )"
13 Returns a new Triple structure.
14
15 "construct_args"
16 Returns a list of arguments that, passed to this class'
17 constructor, will produce a clone of this algebra pattern.
18
19 "nodes"
20 Returns the subject, predicate and object of the triple pattern.
21
22 "node_names"
23 Returns the method names for accessing the nodes of this statement.
24
25 "subject"
26 Returns the subject node of the triple pattern.
27
28 "predicate"
29 Returns the predicate node of the triple pattern.
30
31 "object"
32 Returns the object node of the triple pattern.
33
34 "as_string"
35 Returns the statement in a string form.
36
37 "has_blanks"
38 Returns true if any of the nodes in this statement are blank nodes.
39
40 "sse"
41 Returns the SSE string for this algebra expression.
42
43 "from_sse ( $string, $context )"
44 Parses the supplied SSE-encoded string and returns a
45 RDF::Trine::Statement object.
46
47 "type"
48 Returns the type of this algebra expression.
49
50 "referenced_variables"
51 Returns a list of the variable names used in this algebra
52 expression.
53
54 "definite_variables"
55 Returns a list of the variable names that will be bound after
56 evaluating this algebra expression.
57
58 "clone"
59 "bind_variables ( \%bound )"
60 Returns a new algebra pattern with variables named in %bound
61 replaced by their corresponding bound values.
62
63 "subsumes ( $statement )"
64 Returns true if this statement will subsume the $statement when
65 matched against a triple store.
66
67 "from_redland ( $statement )"
68 Given a RDF::Redland::Statement object, returns a perl-native
69 RDF::Trine::Statement object.
70
71 "rdf_compatible"
72 Returns true if and only if the statement can be expressed in RDF.
73 That is, the subject of the statement must be a resource or blank
74 node; the predicate must be a resource; and the object must be a
75 resource, blank node or literal.
76
77 RDF::Trine::Statement does allow statements to be created which
78 cannot be expressed in RDF - for instance, statements including
79 variables.
80
82 Please report any bugs or feature requests to through the GitHub web
83 interface at <https://github.com/kasei/perlrdf/issues>.
84
86 Gregory Todd Williams "<gwilliams@cpan.org>"
87
89 Copyright (c) 2006-2012 Gregory Todd Williams. This program is free
90 software; you can redistribute it and/or modify it under the same terms
91 as Perl itself.
92
93
94
95perl v5.28.0 2018-01-05 RDF::Trine::Statement(3)