コード例 #1
0
ファイル: ResModel.php プロジェクト: p4535992/programate
 /**
  * Adds a new triple to the Model without checking if the statement is already in the Model.
  * So if you want a duplicate free Model use the addWithoutDuplicates() function (which is slower then add())
  * Expects a statements with ResResources(ResLiterals)
  *
  * @param	object Statement	$statement
  * @access	public
  * @throws	PhpError 
  */
 function add($statement)
 {
     return $this->model->add(new Statement($this->_resNode2Node($statement->getSubject()), $this->_resNode2Node($statement->getPredicate()), $this->_resNode2Node($statement->getObject())));
 }