Class BlankNode

Description

An RDF blank node.

In model theory, blank nodes are considered to be drawn from some set of 'anonymous' entities which have no label but are unique to the graph. For serialization they are labeled with a URI or a _:X identifier.

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

Located in /model/Blanknode.php (line 23)

Object
   |
   --Node
      |
      --Resource
         |
         --BlankNode
Method Summary
BlankNode BlankNode (mixed $namespace_or_uri_or_model, [string $localName = NULL])
boolean equals (object resource $that)
string getID ()
string getLabel ()
string toString ()
Methods
Constructor BlankNode (line 33)

Constructor You can supply a label or You supply a model and a unique ID is gernerated.

  • access: public
BlankNode BlankNode (mixed $namespace_or_uri_or_model, [string $localName = NULL])
  • mixed $namespace_or_uri_or_model
  • string $localName
equals (line 90)

Checks if two blank nodes are equal.

Two blank nodes are equal, if they have the same temporary ID.

  • access: public
boolean equals (object resource $that)
  • object resource $that

Redefinition of:
Resource::equals()
Checks if the resource equals another resource.
getID (line 57)

Returns the ID of the blank node.

  • access: public
string getID ()
getLabel (line 67)

Returns the ID of the blank node.

  • access: public
string getLabel ()

Redefinition of:
Resource::getLabel()
Returns the label of the resource, which is the URI of the resource.
toString (line 77)

Dumps bNode.

  • access: public
string toString ()

Redefinition of:
Resource::toString()
Dumps resource.

Inherited Methods

Inherited From Resource

Resource::Resource()
Resource::equals()
Resource::getLabel()
Resource::getLocalName()
Resource::getNamespace()
Resource::getURI()
Resource::toString()

Inherited From Object

Object::toString()

Documentation generated on Fri, 1 Jun 2007 16:48:33 +0200 by phpDocumentor 1.3.2