Class LibRDF_Node

Description

A wrapper around the librdf_node datatype.

The values of nodes come from three potential, disjoint sets: URIs, literal strings and blank identifiers. These types are represented by LibRDF_URINode, LibRDF_LiteralNode and LibRDF_BlankNode, respectively.

Located in /Node.php (line 55)


	
			
Direct descendents
Class Description
LibRDF_URINode A specialized version of LibRDF_Node representing a URI.
LibRDF_BlankNode A representation of a blank node.
LibRDF_LiteralNode A representation of a literal node.
Variable Summary
resource $node
Method Summary
static LibRDF_Node makeNode (resource $node)
void __destruct ()
resource getNode ()
boolean isEqual (LibRDF_Node $node)
void __clone ()
string __toString ()
Variables
resource $node (line 65)

The underlying librdf_node resource.

This value must be set by the constructors for the concrete node types.

  • access: protected
Methods
static method makeNode (line 151)

Wrap a librdf_node resource in the correct Node object.

This function is intended for use by LibRDF classes, allowing them to easily convert a librdf_node resource into the correct type of LibRDF_Node object.

  • return: A concrete object implementing Node
  • access: public
  • throws: LibRDF_Error If unable to create a new node
static LibRDF_Node makeNode (resource $node)
  • resource $node: The librdf_node to convert
Destructor __destruct (line 73)

Destroy the Node object.

  • access: public
void __destruct ()
getNode (line 133)

Return the underlying librdf_node resource.

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

  • return: The wrapped node
  • access: public
resource getNode ()
isEqual (line 119)

Compare this node with another node for equality.

Nodes of different types are not equal; thus, a URI of http://example.org/ and a literal string of http://example.org are not equal, even though they contain the same string. Similarly, literal nodes must match in both type and language to be considered equal.

  • return: Whether the nodes are equal
  • access: public
boolean isEqual (LibRDF_Node $node)
__clone (line 87)

Create a new node object from an existing node.

  • access: public
  • throws: LibRDF_Error If unable to copy the node
void __clone ()
__toString (line 102)

Return a string representation of the node.

  • return: A string representation of the node
  • access: public
string __toString ()

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