Exemplo n.º 1
0
 /**
  * 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);
 }