/** * Constructor * You can supply a URI * * @param string $uri * @access public */ function ResList($uri = null) { //call the parent's constructor parent::ResResource($uri); //initialize vars $this->rdfRestResource = new ResResource(RDF_NAMESPACE_URI . RDF_REST); $this->rdfFirstResource = new ResResource(RDF_NAMESPACE_URI . RDF_FIRST); $this->rdfNilResource = new ResResource(RDF_NAMESPACE_URI . RDF_NIL); }
/** * Returns true, if this resource is a container from type rdf:Seq * * @return boolean * @access public */ function isSeq() { return $this->containerType->getURI() == RDF_NAMESPACE_URI . RDF_SEQ; }
/** * removes a single namespace from the model * * @author Tobias Gauß <*****@*****.**> * @access public * @param String $nmsp */ function removeNamespace($nmsp) { return $this->model->removeNamespace($nmsp); }
/** * Add a property to this resource. * A statement with this resource as the subject, p as the predicate and o * as the object is added to the model associated with this resource. * If $this->rdfType is set, an additional statement about it's type * is added. * * @param ResResource $property * @param ResResource/ResLiteral $object * @return object ResResource * @access public */ function addProperty($property, $object) { if ($this->rdfType !== false) { if (!$this->hasRDFType($this->rdfType)) { $this->model->add(new Statement($this, $this->vocabulary->TYPE(), $this->rdfType)); } } return parent::addProperty($property, $object); }
/** * Constructor * You can supply a URI * * @param string $uri * @access public */ function ResProperty($uri) { parent::ResResource($uri); }