class Statement |
|
\class Statement statement.h Soprano/Statement
A Statement instance represents one RDF quadruple. In %Soprano statements are quadruples, i.e. in addition to the subject, predicate, and object nodes, they have a fourth node, the context. The context represents the named graph in which the statement is stored. If the context is an empty node the statement is stored in the default graph. A Statement is valid if subject, predicate, and object are valid. Invalid statements can, however, be used in many methods such as Model.listStatements as wildwards. See also Node
Author Daniele Galdi |
|
Default Constructor, build an empty (invalid) Statement. |
|
Build a Statement with the given subject, predicate and object.
subject - The subject (cannot be of type Node.LiteralNode) predicate - The predicate (has to be of type Node.ResourceNode or Node.EmptyNode) object - The object can be of either Node type. context - The context node (has to be of type Node.ResourceNode or Node.EmptyNode) |
|
|
Returns The Context node. |
|
A Statement is valid if the subject is a resource or blank
node, the predicate is a resource node,
and the object is a valid node.
Returns true if the Statement is valid, false otherwise |
|
Match this statement against other. The only difference
to operator== is that empty nodes are matched as wildcards,
i.e. they match any other node.
See also Node.matches() Returns true if this statement matches other, false if not. |
|
Returns The object. |
|
|
|
Returns The predicate. |
|
Change the Statement context.
context - The new Context. |
|
Change the Statement object.
object - The new object. |
|
Change the Statement predicate.
predicate - The new predicate. |
|
Change the Statement subject.
subject - The new subject. |
|
Returns The subject. |