Class LibRDF_Statement

Description

A wrapper around the librdf_statement datatype.

Located in /Statement.php (line 52)


	
			
Method Summary
void __construct (mixed $statement, LibRDF_Node $predicate, LibRDF_Node $object)
void __destruct ()
resource getStatement ()
boolean isEqual (LibRDF_Statement $statement)
void __clone ()
string __toString ()
Methods
Constructor __construct (line 75)

Create a new Statement.

The subject must be either a URINode or a BlankNode. The predicate must be a URINode.

  • access: public
  • throws: LibRDF_Error If unable to create a new statement
void __construct (mixed $statement, LibRDF_Node $predicate, LibRDF_Node $object)
  • mixed $statement: The librdf_statement to copy or the source Node of a statement
  • LibRDF_Node $predicate: The statement's predicate
  • LibRDF_Node $object: The statement's object
Destructor __destruct (line 114)

Free a Statement's resources.

  • access: public
void __destruct ()
getObject (line 196)

Get the statement's object.

  • return: The statement's object
  • access: public
LibRDF_Node getObject ()
getPredicate (line 183)

Get the statement's predicate

  • return: The statement's predicate
  • access: public
LibRDF_Node getPredicate ()
getStatement (line 157)

Get the underlying librdf_statement resource.

This function is intended for other LibRDF classes and should not be called.

  • return: The wrapped librdf_statement
  • access: public
resource getStatement ()
getSubject (line 168)

Get the statement's subject.

  • return: The statement's subject
  • access: public
LibRDF_Node getSubject ()
isEqual (line 213)

Compare this statement with another statement.

Two statements are equal if each of the three nodes in a statement are equal to the corresponding nodes in the other statement.

  • return: Whether the statements are equal
  • access: public
boolean isEqual (LibRDF_Statement $statement)
__clone (line 139)

Clone a Statement

  • access: public
  • throws: LibRDF_Error If unable to create a new statement
void __clone ()
__toString (line 127)

Return a string representation of a statement

  • return: The statement as a string
  • access: public
string __toString ()

Documentation generated on Thu, 15 Jun 2006 19:25:13 -0400 by phpDocumentor 1.3.0