Example #1
0
 /**
  * Parses the BASE part of the query.
  *
  * @return void
  * @throws SparqlParserException
  */
 protected function parseBase()
 {
     $this->_fastForward();
     if ($this->iriCheck(current($this->tokens))) {
         $this->query->setBase(current($this->tokens));
     } else {
         $msg = current($this->tokens);
         $msg = preg_replace('/</', '&lt;', $msg);
         throw new SparqlParserException("IRI expected", null, key($this->tokens));
     }
 }