Source for file Quad.php
Documentation is available at Quad.php
// ----------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------
* A Triple in a RDF dataset, consisting of four Jena Nodes: graphName,
* subject, predicate, and object.
* @version $Id: fsource_dataset__datasetQuad.php.html 442 2007-06-01 16:19:26Z cax $
* @author Daniel Westphal (http://www.d-westphal.de)
* Name of the NamedGraphMem.
* Creates a Quad from four Nodes.
function Quad($graphName,$subject,$predicate,$object)
if (!is_a($graphName, 'Resource'))
'(class: Quad; method: new): Resource expected as graphName.';
$this->statement=
new Statement($subject,$predicate,$object);
$this->graphName=
$graphName;
$this->graphName=
$graphName;
* Returns the graph name.
* Return a human-readable (sort of) string "graphname { s p o . }"
return 'GraphName('.
$this->graphName->getLabel().
') '.
$this->statement->toString();
return $this->statement->getSubject();
return $this->statement->getPredicate();
return $this->statement->getObject();
* Returns the statement(subject,predicate,object).
* Checks if two quads are equal.
return ($this->graphName->equals($quad->getGraphName()) &&
$this->statement->equals($quad->getStatement()));
Documentation generated on Fri, 1 Jun 2007 16:50:26 +0200 by phpDocumentor 1.3.2