1RDF::Redland::StatementU(s3e)r Contributed Perl DocumentaRtDiFo:n:Redland::Statement(3)
2
3
4

NAME

6       RDF::Redland::Statement - Redland RDF Statement Class
7

SYNOPSIS

9         use RDF::Redland;
10         my $statement1=new RDF::Redland::Statement($statement);
11         my $statement2=new RDF::Redland::Statement($subject,$predicate,$object);
12         ...
13
14         if($statement->subject->equals($node)) {
15           ...
16         }
17

DESCRIPTION

19       Manipulate RDF statements which comprise three RDF::Redland::Node
20       objects.  Also used for partial statements which can have empty parts
21       and are used for matching statements in statement queries of the model
22       - see the RDF::Redland::Model.
23

CONSTRUCTORS

25       new NODE NODE NODE|STATEMENT
26           Create a new statement from nodes or copy an existing statement.
27
28           If three NODEs are given, make a new statement from them.  Each
29           Node can be a Redland::RDF:Node, a Redland::RDF::URI, a perl URI or
30           a string literal.  Otherwise STATEMENT must be an existing
31           statement to copy.
32
33       clone
34           Copy a RDF::Redland::Statement.
35

METHODS

37       subject [SUBJECT]
38           Get/set the statement subject.  When a RDF::Redland::Node SUBJECT
39           is given, sets the subject of the statement, otherwise returns a
40           reference to the statement RDF::Redland::Node subject.
41
42       predicate [PREDICATE]
43           Get/set the statement predicate.  When RDF::Redland::Node PREDICATE
44           is given, sets the predicate of the statement, otherwise returns a
45           reference to the statement RDF::Redland::Node predicate.
46
47       object [OBJECT]
48           Get/set the statement object.  When RDF::Redland::Node OBJECT is
49           given, sets the object of the statement, otherwise returns a
50           reference to the statement RDF::Redland::Node object.
51
52       as_string
53           Return the statement formatted as a string (UTF-8 encoded).
54
55       equals STATEMENT
56           Return non zero if this statement is equal to STATEMENT
57

OLD METHODS

59       new_from_nodes SUBJECT PREDICATE OBJECT
60           Create a new RDF::Redland::Statement with the given
61           RDF::Redland::Node objects as parts (or undef when empty for a
62           partial statement).  Use instead:
63
64             $a=new RDF::Redland::Statement($subject, $predicate, $object);
65
66       new_from_statement STATEMENT
67           Create a new RDF::Redland::Statement object from
68           RDF::Redland::Statement STATEMENT (copy constructor).  Use instead:
69
70             $s=$old_statement->clone;
71

SEE ALSO

73       RDF::Redland::Node
74

AUTHOR

76       Dave Beckett - http://www.dajobe.org/
77
78
79
80perl v5.28.0                      2011-02-04        RDF::Redland::Statement(3)
Impressum