Source for file Blanknode.php
Documentation is available at Blanknode.php
// ----------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------
* 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.
* @version $Id: fsource_model__modelBlanknode.php.html 443 2007-06-01 16:25:38Z cax $
* @authors Chris Bizer <chris@bizer.de>,
* Radoslaw Oldakowski <radol@gmx.de>
* You can supply a label or You supply a model and a unique ID is gernerated.
* @param mixed $namespace_or_uri_or_model
* @param string $localName
function BlankNode($namespace_or_uri_or_model , $localName =
NULL) {
if (is_a($namespace_or_uri_or_model, 'Model')) {
$id =
$namespace_or_uri_or_model->getUniqueResourceURI(BNODE_PREFIX);
if ($localName ==
NULL) {
$this->uri =
$namespace_or_uri_or_model;
$this->uri =
$namespace_or_uri_or_model .
$localName;
* Returns the ID of the blank node.
* Returns the ID of the blank node.
return 'bNode("' .
$this->uri .
'")';
* Checks if two blank nodes are equal.
* Two blank nodes are equal, if they have the same temporary ID.
* @param object resource $that
if (($that ==
NULL) or !(is_a($that, 'BlankNode'))) {
if ($this->getURI() ==
$that->getURI()) {
Documentation generated on Fri, 1 Jun 2007 16:48:33 +0200 by phpDocumentor 1.3.2