Class Statement

Description

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.

  • author: Chris Bizer <chris@bizer.de>
  • version: $Id: Statement.html 443 2007-06-01 16:25:38Z cax $

Located in /model/Statement.php (line 17)

Object
   |
   --Statement
Direct descendents
Class Description
InfStatement An RDF statement which was entailed by a inference rule.
Method Summary
Statement Statement (object node $subj, object node $pred, object node $obj)
boolean compare (object statement &$that)
boolean equals (object statement $that)
string getLabelObject ()
string getLabelPredicate ()
string getLabelSubject ()
object node getObject ()
object node getPredicate ()
object node getSubject ()
string hashCode ()
object node object ()
object node predicate ()
object model &reify (mixed &$model_or_bNodeID)
object node subject ()
string toString ()
string toStringObject ()
string toStringPredicate ()
string toStringSubject ()
Methods
Constructor Statement (line 51)

The parameters to constructor are instances of classes and not just strings

  • throws: PhpError
Statement Statement (object node $subj, object node $pred, object node $obj)
  • object node $subj
  • object node $pred
  • object node $obj
compare (line 241)

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().

  • access: public
boolean compare (object statement &$that)
  • object statement &$that
equals (line 217)

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.

  • access: public
boolean equals (object statement $that)
  • object statement $that
getLabelObject (line 203)

Reurns the URI, text or bNode identifier of the statements's object.

  • access: public
string getLabelObject ()
getLabelPredicate (line 193)

Returns the URI of the statements's predicate.

  • access: public
string getLabelPredicate ()
getLabelSubject (line 183)

Returns the URI or bNode identifier of the statements's subject.

  • access: public
string getLabelSubject ()
getObject (line 97)

Returns the object of the triple.

  • access: public
object node getObject ()
getPredicate (line 88)

Returns the predicate of the triple.

  • access: public
object node getPredicate ()
getSubject (line 79)

Returns the subject of the triple.

  • access: public
object node getSubject ()
hashCode (line 132)

Retruns the hash code of the triple.

  • access: public
string hashCode ()
object (line 124)

Alias for getObject()

  • access: public
object node object ()
predicate (line 115)

Alias for getPredicate()

  • access: public
object node predicate ()
reify (line 257)

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.

  • access: public
object model &reify (mixed &$model_or_bNodeID)
  • mixed &$model_or_bNodeID
subject (line 106)

Alias for getSubject()

  • access: public
object node subject ()
toString (line 142)

Dumps the triple.

  • access: public
string toString ()

Redefinition of:
Object::toString()
Serializes a object into a string
toStringObject (line 173)

Reurns a toString() serialization of the statements's object.

  • access: public
string toStringObject ()
toStringPredicate (line 163)

Returns a toString() serialization of the statements's predicate.

  • access: public
string toStringPredicate ()
toStringSubject (line 153)

Returns a toString() serialization of the statements's subject.

  • access: public
string toStringSubject ()

Inherited Methods

Inherited From Object

Object::toString()

Documentation generated on Fri, 1 Jun 2007 16:52:28 +0200 by phpDocumentor 1.3.2