Example #1
0
 /**
  * Parses the CONSTRUCT clause.
  *
  * @return void
  * @throws SparqlParserException
  */
 protected function parseConstruct()
 {
     $this->_fastForward();
     $this->query->setResultForm('construct');
     if (current($this->tokens) == "{") {
         $this->parseGraphPattern(false, false, false, true);
     } else {
         throw new SparqlParserException("Unable to parse CONSTRUCT part. '{' expected. ", null, key($this->tokens));
     }
     $this->parseWhere();
     $this->parseModifier();
 }