Class: Statement ---------------------------------------------------------------------------------- An RDF statement. In this implementation, a statement is not itself a resource. If you want to use a a statement as subject or object of other statements, you have to reify it first. <BR><BR>History:<UL> <LI>05-30-2003 : Changed function compare(), added statementsorter($a,$b).</LI> <LI>02-21-2003 : getLabelSubject(), getLabelPredicate(), getLabelObject(), toStringSubject(), toStringPredicate(), toStringObject() added.</LI> <LI>09-10-2002 : First version of this class.</LI>
|
PHP | boolean compare(unknown $that) |
---|
Compares two statements and returns integer less than, equal to, or greater than zero. Can be used for writing sorting function for models or with the PHP function usort().
Arguments
PHP | boolean equals(unknown $that) |
---|
Checks if two statements are equal. Two statements are considered to be equal if they have the same subject, predicate and object. A statement can only be equal to another statement object.
Arguments
PHP | object reify(unknown $model_or_bNodeID) |
---|
Reifies a statement. Returns a new MemModel that is the reification of the statement. For naming the statement's bNode a Model or bNodeID must be passed to the method.
Arguments
Return
model
PHP | Statement(unknown $subj, unknown $pred, unknown $obj) |
---|
The parameters to constructor are instances of classes and not just strings
Arguments