Beispiel #1
0
 /**
  * Run the query against a model.
  *
  * @param   LibRDF_Model    $model  The model to query
  * @return  LibRDF_QueryResults     The result of the query
  * @throws  LibRDF_Error            If unable to execute the query
  * @access  public
  */
 public function execute(LibRDF_Model $model)
 {
     $results = librdf_query_execute($this->query, $model->getModel());
     if (!$results) {
         throw new LibRDF_Error("Unable to execute query");
     }
     return LibRDF_QueryResults::makeQueryResults($results);
 }