You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2015/04/23 21:56:32 UTC

[16/51] [partial] jena git commit: Rename com.hp.hpl.jena.* as org.apache.jena.*

http://git-wip-us.apache.org/repos/asf/jena/blob/56534eac/jena-arq/src/main/java/com/hp/hpl/jena/sparql/lang/arq/ARQParser.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/main/java/com/hp/hpl/jena/sparql/lang/arq/ARQParser.java b/jena-arq/src/main/java/com/hp/hpl/jena/sparql/lang/arq/ARQParser.java
deleted file mode 100644
index 9250334..0000000
--- a/jena-arq/src/main/java/com/hp/hpl/jena/sparql/lang/arq/ARQParser.java
+++ /dev/null
@@ -1,6891 +0,0 @@
-/* Generated By:JavaCC: Do not edit this line. ARQParser.java */
-package com.hp.hpl.jena.sparql.lang.arq ;
-import com.hp.hpl.jena.graph.* ;
-import com.hp.hpl.jena.query.* ;
-import com.hp.hpl.jena.sparql.core.Var ;
-import com.hp.hpl.jena.sparql.syntax.* ;
-import com.hp.hpl.jena.sparql.expr.* ;
-import com.hp.hpl.jena.sparql.path.* ;
-import com.hp.hpl.jena.sparql.expr.aggregate.* ;
-import com.hp.hpl.jena.update.* ;
-import com.hp.hpl.jena.sparql.modify.request.* ;
-
-@SuppressWarnings("all")
-public class ARQParser extends ARQParserBase implements ARQParserConstants {
-    boolean allowAggregatesInExpressions = false ;
-
-  final public void QueryUnit() throws ParseException {
-    ByteOrderMark();
-    startQuery() ;
-    Query();
-    jj_consume_token(0);
-    finishQuery() ;
-  }
-
-  final public void Query() throws ParseException {
-    Prologue();
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case SELECT:
-      SelectQuery();
-      break;
-    case CONSTRUCT:
-      ConstructQuery();
-      break;
-    case DESCRIBE:
-      DescribeQuery();
-      break;
-    case ASK:
-      AskQuery();
-      break;
-    default:
-      jj_la1[0] = jj_gen;
-      jj_consume_token(-1);
-      throw new ParseException();
-    }
-    ValuesClause();
-  }
-
-  final public void UpdateUnit() throws ParseException {
-    ByteOrderMark();
-    startUpdateRequest() ;
-    Update();
-    jj_consume_token(0);
-    finishUpdateRequest() ;
-  }
-
-  final public void ByteOrderMark() throws ParseException {
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case BOM:
-      jj_consume_token(BOM);
-      break;
-    default:
-      jj_la1[1] = jj_gen;
-      ;
-    }
-  }
-
-  final public void Prologue() throws ParseException {
-    label_1:
-    while (true) {
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case BASE:
-      case PREFIX:
-        ;
-        break;
-      default:
-        jj_la1[2] = jj_gen;
-        break label_1;
-      }
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case BASE:
-        BaseDecl();
-        break;
-      case PREFIX:
-        PrefixDecl();
-        break;
-      default:
-        jj_la1[3] = jj_gen;
-        jj_consume_token(-1);
-        throw new ParseException();
-      }
-    }
-  }
-
-  final public void BaseDecl() throws ParseException {
-                    String iri ;
-    jj_consume_token(BASE);
-    iri = IRIREF();
-    getPrologue().setBaseURI(iri) ;
-  }
-
-  final public void PrefixDecl() throws ParseException {
-                      Token t ; String iri ;
-    jj_consume_token(PREFIX);
-    t = jj_consume_token(PNAME_NS);
-    iri = IRIREF();
-        String s = fixupPrefix(t.image, t.beginLine, t.beginColumn) ;
-        getPrologue().setPrefix(s, iri) ;
-  }
-
-  final public void SelectQuery() throws ParseException {
-    SelectClause();
-    label_2:
-    while (true) {
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case FROM:
-        ;
-        break;
-      default:
-        jj_la1[4] = jj_gen;
-        break label_2;
-      }
-      DatasetClause();
-    }
-    WhereClause();
-    SolutionModifier();
-  }
-
-  final public void SubSelect() throws ParseException {
-    SelectClause();
-    WhereClause();
-    SolutionModifier();
-    ValuesClause();
-  }
-
-  final public void SelectClause() throws ParseException {
-                        Var v ; Expr expr ; Node n ;
-    jj_consume_token(SELECT);
-      getQuery().setQuerySelectType() ;
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case DISTINCT:
-    case REDUCED:
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case DISTINCT:
-        jj_consume_token(DISTINCT);
-                 getQuery().setDistinct(true);
-        break;
-      case REDUCED:
-        jj_consume_token(REDUCED);
-                getQuery().setReduced(true);
-        break;
-      default:
-        jj_la1[5] = jj_gen;
-        jj_consume_token(-1);
-        throw new ParseException();
-      }
-      break;
-    default:
-      jj_la1[6] = jj_gen;
-      ;
-    }
-    allowAggregatesInExpressions = true ;
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case IRIref:
-    case PNAME_NS:
-    case PNAME_LN:
-    case VAR1:
-    case VAR2:
-    case EXISTS:
-    case NOT:
-    case AGG:
-    case COUNT:
-    case MIN:
-    case MAX:
-    case SUM:
-    case AVG:
-    case SAMPLE:
-    case GROUP_CONCAT:
-    case BOUND:
-    case COALESCE:
-    case IF:
-    case BNODE:
-    case IRI:
-    case URI:
-    case CALL:
-    case STR:
-    case STRLANG:
-    case STRDT:
-    case DTYPE:
-    case LANG:
-    case LANGMATCHES:
-    case IS_URI:
-    case IS_IRI:
-    case IS_BLANK:
-    case IS_LITERAL:
-    case IS_NUMERIC:
-    case REGEX:
-    case SAME_TERM:
-    case RAND:
-    case ABS:
-    case CEIL:
-    case FLOOR:
-    case ROUND:
-    case CONCAT:
-    case SUBSTR:
-    case STRLEN:
-    case REPLACE:
-    case UCASE:
-    case LCASE:
-    case ENCODE_FOR_URI:
-    case CONTAINS:
-    case STRSTARTS:
-    case STRENDS:
-    case STRBEFORE:
-    case STRAFTER:
-    case YEAR:
-    case MONTH:
-    case DAY:
-    case HOURS:
-    case MINUTES:
-    case SECONDS:
-    case TIMEZONE:
-    case TZ:
-    case NOW:
-    case UUID:
-    case STRUUID:
-    case VERSION:
-    case MD5:
-    case SHA1:
-    case SHA256:
-    case SHA384:
-    case SHA512:
-    case TRUE:
-    case FALSE:
-    case INTEGER:
-    case DECIMAL:
-    case DOUBLE:
-    case INTEGER_POSITIVE:
-    case DECIMAL_POSITIVE:
-    case DOUBLE_POSITIVE:
-    case INTEGER_NEGATIVE:
-    case DECIMAL_NEGATIVE:
-    case DOUBLE_NEGATIVE:
-    case STRING_LITERAL1:
-    case STRING_LITERAL2:
-    case STRING_LITERAL_LONG1:
-    case STRING_LITERAL_LONG2:
-    case LPAREN:
-      label_3:
-      while (true) {
-        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-        case VAR1:
-        case VAR2:
-          v = Var();
-                  getQuery().addResultVar(v) ;
-          break;
-        case IRIref:
-        case PNAME_NS:
-        case PNAME_LN:
-        case EXISTS:
-        case NOT:
-        case AGG:
-        case COUNT:
-        case MIN:
-        case MAX:
-        case SUM:
-        case AVG:
-        case SAMPLE:
-        case GROUP_CONCAT:
-        case BOUND:
-        case COALESCE:
-        case IF:
-        case BNODE:
-        case IRI:
-        case URI:
-        case CALL:
-        case STR:
-        case STRLANG:
-        case STRDT:
-        case DTYPE:
-        case LANG:
-        case LANGMATCHES:
-        case IS_URI:
-        case IS_IRI:
-        case IS_BLANK:
-        case IS_LITERAL:
-        case IS_NUMERIC:
-        case REGEX:
-        case SAME_TERM:
-        case RAND:
-        case ABS:
-        case CEIL:
-        case FLOOR:
-        case ROUND:
-        case CONCAT:
-        case SUBSTR:
-        case STRLEN:
-        case REPLACE:
-        case UCASE:
-        case LCASE:
-        case ENCODE_FOR_URI:
-        case CONTAINS:
-        case STRSTARTS:
-        case STRENDS:
-        case STRBEFORE:
-        case STRAFTER:
-        case YEAR:
-        case MONTH:
-        case DAY:
-        case HOURS:
-        case MINUTES:
-        case SECONDS:
-        case TIMEZONE:
-        case TZ:
-        case NOW:
-        case UUID:
-        case STRUUID:
-        case VERSION:
-        case MD5:
-        case SHA1:
-        case SHA256:
-        case SHA384:
-        case SHA512:
-        case TRUE:
-        case FALSE:
-        case INTEGER:
-        case DECIMAL:
-        case DOUBLE:
-        case INTEGER_POSITIVE:
-        case DECIMAL_POSITIVE:
-        case DOUBLE_POSITIVE:
-        case INTEGER_NEGATIVE:
-        case DECIMAL_NEGATIVE:
-        case DOUBLE_NEGATIVE:
-        case STRING_LITERAL1:
-        case STRING_LITERAL2:
-        case STRING_LITERAL_LONG1:
-        case STRING_LITERAL_LONG2:
-          if (jj_2_1(2)) {
-            expr = BuiltInCall();
-                               getQuery().addResultVar((Var)null, expr) ;
-          } else {
-            switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-            case IRIref:
-            case PNAME_NS:
-            case PNAME_LN:
-              expr = FunctionCall();
-                                getQuery().addResultVar((Var)null, expr) ;
-              break;
-            case STRING_LITERAL1:
-            case STRING_LITERAL2:
-            case STRING_LITERAL_LONG1:
-            case STRING_LITERAL_LONG2:
-              n = RDFLiteral();
-                           getQuery().addResultVar((Var)null, NodeValue.makeNode(n)) ;
-              break;
-            case INTEGER:
-            case DECIMAL:
-            case DOUBLE:
-            case INTEGER_POSITIVE:
-            case DECIMAL_POSITIVE:
-            case DOUBLE_POSITIVE:
-            case INTEGER_NEGATIVE:
-            case DECIMAL_NEGATIVE:
-            case DOUBLE_NEGATIVE:
-              n = NumericLiteral();
-                               getQuery().addResultVar((Var)null, NodeValue.makeNode(n)) ;
-              break;
-            case TRUE:
-            case FALSE:
-              n = BooleanLiteral();
-                               getQuery().addResultVar((Var)null, NodeValue.makeNode(n)) ;
-              break;
-            default:
-              jj_la1[7] = jj_gen;
-              jj_consume_token(-1);
-              throw new ParseException();
-            }
-          }
-          break;
-        case LPAREN:
-          v = null ;
-          jj_consume_token(LPAREN);
-          expr = Expression();
-          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-          case AS:
-            jj_consume_token(AS);
-            v = Var();
-            break;
-          default:
-            jj_la1[8] = jj_gen;
-            ;
-          }
-          jj_consume_token(RPAREN);
-          getQuery().addResultVar(v, expr) ;
-        getQuery().setQueryResultStar(false) ;
-          break;
-        default:
-          jj_la1[9] = jj_gen;
-          jj_consume_token(-1);
-          throw new ParseException();
-        }
-        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-        case IRIref:
-        case PNAME_NS:
-        case PNAME_LN:
-        case VAR1:
-        case VAR2:
-        case EXISTS:
-        case NOT:
-        case AGG:
-        case COUNT:
-        case MIN:
-        case MAX:
-        case SUM:
-        case AVG:
-        case SAMPLE:
-        case GROUP_CONCAT:
-        case BOUND:
-        case COALESCE:
-        case IF:
-        case BNODE:
-        case IRI:
-        case URI:
-        case CALL:
-        case STR:
-        case STRLANG:
-        case STRDT:
-        case DTYPE:
-        case LANG:
-        case LANGMATCHES:
-        case IS_URI:
-        case IS_IRI:
-        case IS_BLANK:
-        case IS_LITERAL:
-        case IS_NUMERIC:
-        case REGEX:
-        case SAME_TERM:
-        case RAND:
-        case ABS:
-        case CEIL:
-        case FLOOR:
-        case ROUND:
-        case CONCAT:
-        case SUBSTR:
-        case STRLEN:
-        case REPLACE:
-        case UCASE:
-        case LCASE:
-        case ENCODE_FOR_URI:
-        case CONTAINS:
-        case STRSTARTS:
-        case STRENDS:
-        case STRBEFORE:
-        case STRAFTER:
-        case YEAR:
-        case MONTH:
-        case DAY:
-        case HOURS:
-        case MINUTES:
-        case SECONDS:
-        case TIMEZONE:
-        case TZ:
-        case NOW:
-        case UUID:
-        case STRUUID:
-        case VERSION:
-        case MD5:
-        case SHA1:
-        case SHA256:
-        case SHA384:
-        case SHA512:
-        case TRUE:
-        case FALSE:
-        case INTEGER:
-        case DECIMAL:
-        case DOUBLE:
-        case INTEGER_POSITIVE:
-        case DECIMAL_POSITIVE:
-        case DOUBLE_POSITIVE:
-        case INTEGER_NEGATIVE:
-        case DECIMAL_NEGATIVE:
-        case DOUBLE_NEGATIVE:
-        case STRING_LITERAL1:
-        case STRING_LITERAL2:
-        case STRING_LITERAL_LONG1:
-        case STRING_LITERAL_LONG2:
-        case LPAREN:
-          ;
-          break;
-        default:
-          jj_la1[10] = jj_gen;
-          break label_3;
-        }
-      }
-      break;
-    case STAR:
-      jj_consume_token(STAR);
-             getQuery().setQueryResultStar(true) ;
-      break;
-    default:
-      jj_la1[11] = jj_gen;
-      jj_consume_token(-1);
-      throw new ParseException();
-    }
-    allowAggregatesInExpressions = false ;
-  }
-
-  final public void ConstructQuery() throws ParseException {
-                          Template t ;
-                          TripleCollectorBGP acc = new TripleCollectorBGP() ;
-    jj_consume_token(CONSTRUCT);
-     getQuery().setQueryConstructType() ;
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case LBRACE:
-      t = ConstructTemplate();
-        getQuery().setConstructTemplate(t) ;
-      label_4:
-      while (true) {
-        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-        case FROM:
-          ;
-          break;
-        default:
-          jj_la1[12] = jj_gen;
-          break label_4;
-        }
-        DatasetClause();
-      }
-      WhereClause();
-      SolutionModifier();
-      break;
-    case FROM:
-    case WHERE:
-      label_5:
-      while (true) {
-        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-        case FROM:
-          ;
-          break;
-        default:
-          jj_la1[13] = jj_gen;
-          break label_5;
-        }
-        DatasetClause();
-      }
-      jj_consume_token(WHERE);
-      jj_consume_token(LBRACE);
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case IRIref:
-      case PNAME_NS:
-      case PNAME_LN:
-      case BLANK_NODE_LABEL:
-      case VAR1:
-      case VAR2:
-      case TRUE:
-      case FALSE:
-      case INTEGER:
-      case DECIMAL:
-      case DOUBLE:
-      case INTEGER_POSITIVE:
-      case DECIMAL_POSITIVE:
-      case DOUBLE_POSITIVE:
-      case INTEGER_NEGATIVE:
-      case DECIMAL_NEGATIVE:
-      case DOUBLE_NEGATIVE:
-      case STRING_LITERAL1:
-      case STRING_LITERAL2:
-      case STRING_LITERAL_LONG1:
-      case STRING_LITERAL_LONG2:
-      case LPAREN:
-      case NIL:
-      case LBRACKET:
-      case ANON:
-        TriplesTemplate(acc);
-        break;
-      default:
-        jj_la1[14] = jj_gen;
-        ;
-      }
-      jj_consume_token(RBRACE);
-      SolutionModifier();
-      t = new Template(acc.getBGP()) ;
-      getQuery().setConstructTemplate(t) ;
-      ElementPathBlock epb = new ElementPathBlock(acc.getBGP()) ;
-      ElementGroup elg = new ElementGroup() ;
-      elg.addElement(epb) ;
-      getQuery().setQueryPattern(elg) ;
-      break;
-    default:
-      jj_la1[15] = jj_gen;
-      jj_consume_token(-1);
-      throw new ParseException();
-    }
-  }
-
-  final public void DescribeQuery() throws ParseException {
-                         Node n ;
-    jj_consume_token(DESCRIBE);
-      getQuery().setQueryDescribeType() ;
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case IRIref:
-    case PNAME_NS:
-    case PNAME_LN:
-    case VAR1:
-    case VAR2:
-      label_6:
-      while (true) {
-        n = VarOrIri();
-                       getQuery().addDescribeNode(n) ;
-        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-        case IRIref:
-        case PNAME_NS:
-        case PNAME_LN:
-        case VAR1:
-        case VAR2:
-          ;
-          break;
-        default:
-          jj_la1[16] = jj_gen;
-          break label_6;
-        }
-      }
-      getQuery().setQueryResultStar(false) ;
-      break;
-    case STAR:
-      jj_consume_token(STAR);
-      getQuery().setQueryResultStar(true) ;
-      break;
-    default:
-      jj_la1[17] = jj_gen;
-      jj_consume_token(-1);
-      throw new ParseException();
-    }
-    label_7:
-    while (true) {
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case FROM:
-        ;
-        break;
-      default:
-        jj_la1[18] = jj_gen;
-        break label_7;
-      }
-      DatasetClause();
-    }
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case WHERE:
-    case LBRACE:
-      WhereClause();
-      break;
-    default:
-      jj_la1[19] = jj_gen;
-      ;
-    }
-    SolutionModifier();
-  }
-
-  final public void AskQuery() throws ParseException {
-    jj_consume_token(ASK);
-          getQuery().setQueryAskType() ;
-    label_8:
-    while (true) {
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case FROM:
-        ;
-        break;
-      default:
-        jj_la1[20] = jj_gen;
-        break label_8;
-      }
-      DatasetClause();
-    }
-    WhereClause();
-    SolutionModifier();
-  }
-
-  final public void DatasetClause() throws ParseException {
-    jj_consume_token(FROM);
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case IRIref:
-    case PNAME_NS:
-    case PNAME_LN:
-      DefaultGraphClause();
-      break;
-    case NAMED:
-      NamedGraphClause();
-      break;
-    default:
-      jj_la1[21] = jj_gen;
-      jj_consume_token(-1);
-      throw new ParseException();
-    }
-  }
-
-  final public void DefaultGraphClause() throws ParseException {
-                              String iri ;
-    iri = SourceSelector();
-    getQuery().addGraphURI(iri) ;
-  }
-
-  final public void NamedGraphClause() throws ParseException {
-                            String iri ;
-    jj_consume_token(NAMED);
-    iri = SourceSelector();
-    getQuery().addNamedGraphURI(iri) ;
-  }
-
-  final public String SourceSelector() throws ParseException {
-                            String iri ;
-    iri = iri();
-                {if (true) return iri ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public void WhereClause() throws ParseException {
-                       Element el ;
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case WHERE:
-      jj_consume_token(WHERE);
-      break;
-    default:
-      jj_la1[22] = jj_gen;
-      ;
-    }
-     startWherePattern() ;
-    el = GroupGraphPattern();
-                              getQuery().setQueryPattern(el) ;
-     finishWherePattern() ;
-  }
-
-  final public void SolutionModifier() throws ParseException {
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case GROUP:
-      GroupClause();
-      break;
-    default:
-      jj_la1[23] = jj_gen;
-      ;
-    }
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case HAVING:
-      HavingClause();
-      break;
-    default:
-      jj_la1[24] = jj_gen;
-      ;
-    }
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case ORDER:
-      OrderClause();
-      break;
-    default:
-      jj_la1[25] = jj_gen;
-      ;
-    }
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case LIMIT:
-    case OFFSET:
-      LimitOffsetClauses();
-      break;
-    default:
-      jj_la1[26] = jj_gen;
-      ;
-    }
-  }
-
-  final public void GroupClause() throws ParseException {
-    jj_consume_token(GROUP);
-    jj_consume_token(BY);
-    label_9:
-    while (true) {
-      GroupCondition();
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case IRIref:
-      case PNAME_NS:
-      case PNAME_LN:
-      case VAR1:
-      case VAR2:
-      case EXISTS:
-      case NOT:
-      case AGG:
-      case COUNT:
-      case MIN:
-      case MAX:
-      case SUM:
-      case AVG:
-      case SAMPLE:
-      case GROUP_CONCAT:
-      case BOUND:
-      case COALESCE:
-      case IF:
-      case BNODE:
-      case IRI:
-      case URI:
-      case CALL:
-      case STR:
-      case STRLANG:
-      case STRDT:
-      case DTYPE:
-      case LANG:
-      case LANGMATCHES:
-      case IS_URI:
-      case IS_IRI:
-      case IS_BLANK:
-      case IS_LITERAL:
-      case IS_NUMERIC:
-      case REGEX:
-      case SAME_TERM:
-      case RAND:
-      case ABS:
-      case CEIL:
-      case FLOOR:
-      case ROUND:
-      case CONCAT:
-      case SUBSTR:
-      case STRLEN:
-      case REPLACE:
-      case UCASE:
-      case LCASE:
-      case ENCODE_FOR_URI:
-      case CONTAINS:
-      case STRSTARTS:
-      case STRENDS:
-      case STRBEFORE:
-      case STRAFTER:
-      case YEAR:
-      case MONTH:
-      case DAY:
-      case HOURS:
-      case MINUTES:
-      case SECONDS:
-      case TIMEZONE:
-      case TZ:
-      case NOW:
-      case UUID:
-      case STRUUID:
-      case VERSION:
-      case MD5:
-      case SHA1:
-      case SHA256:
-      case SHA384:
-      case SHA512:
-      case LPAREN:
-        ;
-        break;
-      default:
-        jj_la1[27] = jj_gen;
-        break label_9;
-      }
-    }
-  }
-
-  final public void GroupCondition() throws ParseException {
-                          Var v = null ; Expr expr = null ;
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case EXISTS:
-    case NOT:
-    case AGG:
-    case COUNT:
-    case MIN:
-    case MAX:
-    case SUM:
-    case AVG:
-    case SAMPLE:
-    case GROUP_CONCAT:
-    case BOUND:
-    case COALESCE:
-    case IF:
-    case BNODE:
-    case IRI:
-    case URI:
-    case CALL:
-    case STR:
-    case STRLANG:
-    case STRDT:
-    case DTYPE:
-    case LANG:
-    case LANGMATCHES:
-    case IS_URI:
-    case IS_IRI:
-    case IS_BLANK:
-    case IS_LITERAL:
-    case IS_NUMERIC:
-    case REGEX:
-    case SAME_TERM:
-    case RAND:
-    case ABS:
-    case CEIL:
-    case FLOOR:
-    case ROUND:
-    case CONCAT:
-    case SUBSTR:
-    case STRLEN:
-    case REPLACE:
-    case UCASE:
-    case LCASE:
-    case ENCODE_FOR_URI:
-    case CONTAINS:
-    case STRSTARTS:
-    case STRENDS:
-    case STRBEFORE:
-    case STRAFTER:
-    case YEAR:
-    case MONTH:
-    case DAY:
-    case HOURS:
-    case MINUTES:
-    case SECONDS:
-    case TIMEZONE:
-    case TZ:
-    case NOW:
-    case UUID:
-    case STRUUID:
-    case VERSION:
-    case MD5:
-    case SHA1:
-    case SHA256:
-    case SHA384:
-    case SHA512:
-      expr = BuiltInCall();
-                           getQuery().addGroupBy((Var)null, expr) ;
-      break;
-    case IRIref:
-    case PNAME_NS:
-    case PNAME_LN:
-      expr = FunctionCall();
-                            getQuery().addGroupBy((Var)null, expr) ;
-      break;
-    case LPAREN:
-      jj_consume_token(LPAREN);
-      expr = Expression();
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case AS:
-        jj_consume_token(AS);
-        v = Var();
-        break;
-      default:
-        jj_la1[28] = jj_gen;
-        ;
-      }
-      jj_consume_token(RPAREN);
-      getQuery().addGroupBy(v ,expr) ;
-      break;
-    case VAR1:
-    case VAR2:
-      v = Var();
-      getQuery().addGroupBy(v) ;
-      break;
-    default:
-      jj_la1[29] = jj_gen;
-      jj_consume_token(-1);
-      throw new ParseException();
-    }
-  }
-
-  final public void HavingClause() throws ParseException {
-      allowAggregatesInExpressions = true ;
-    jj_consume_token(HAVING);
-    label_10:
-    while (true) {
-      HavingCondition();
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case IRIref:
-      case PNAME_NS:
-      case PNAME_LN:
-      case EXISTS:
-      case NOT:
-      case AGG:
-      case COUNT:
-      case MIN:
-      case MAX:
-      case SUM:
-      case AVG:
-      case SAMPLE:
-      case GROUP_CONCAT:
-      case BOUND:
-      case COALESCE:
-      case IF:
-      case BNODE:
-      case IRI:
-      case URI:
-      case CALL:
-      case STR:
-      case STRLANG:
-      case STRDT:
-      case DTYPE:
-      case LANG:
-      case LANGMATCHES:
-      case IS_URI:
-      case IS_IRI:
-      case IS_BLANK:
-      case IS_LITERAL:
-      case IS_NUMERIC:
-      case REGEX:
-      case SAME_TERM:
-      case RAND:
-      case ABS:
-      case CEIL:
-      case FLOOR:
-      case ROUND:
-      case CONCAT:
-      case SUBSTR:
-      case STRLEN:
-      case REPLACE:
-      case UCASE:
-      case LCASE:
-      case ENCODE_FOR_URI:
-      case CONTAINS:
-      case STRSTARTS:
-      case STRENDS:
-      case STRBEFORE:
-      case STRAFTER:
-      case YEAR:
-      case MONTH:
-      case DAY:
-      case HOURS:
-      case MINUTES:
-      case SECONDS:
-      case TIMEZONE:
-      case TZ:
-      case NOW:
-      case UUID:
-      case STRUUID:
-      case VERSION:
-      case MD5:
-      case SHA1:
-      case SHA256:
-      case SHA384:
-      case SHA512:
-      case LPAREN:
-        ;
-        break;
-      default:
-        jj_la1[30] = jj_gen;
-        break label_10;
-      }
-    }
-      allowAggregatesInExpressions = false ;
-  }
-
-  final public void HavingCondition() throws ParseException {
-                           Expr c ;
-    c = Constraint();
-    getQuery().addHavingCondition(c) ;
-  }
-
-  final public void OrderClause() throws ParseException {
-    allowAggregatesInExpressions = true ;
-    jj_consume_token(ORDER);
-    jj_consume_token(BY);
-    label_11:
-    while (true) {
-      OrderCondition();
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case IRIref:
-      case PNAME_NS:
-      case PNAME_LN:
-      case VAR1:
-      case VAR2:
-      case ASC:
-      case DESC:
-      case EXISTS:
-      case NOT:
-      case AGG:
-      case COUNT:
-      case MIN:
-      case MAX:
-      case SUM:
-      case AVG:
-      case SAMPLE:
-      case GROUP_CONCAT:
-      case BOUND:
-      case COALESCE:
-      case IF:
-      case BNODE:
-      case IRI:
-      case URI:
-      case CALL:
-      case STR:
-      case STRLANG:
-      case STRDT:
-      case DTYPE:
-      case LANG:
-      case LANGMATCHES:
-      case IS_URI:
-      case IS_IRI:
-      case IS_BLANK:
-      case IS_LITERAL:
-      case IS_NUMERIC:
-      case REGEX:
-      case SAME_TERM:
-      case RAND:
-      case ABS:
-      case CEIL:
-      case FLOOR:
-      case ROUND:
-      case CONCAT:
-      case SUBSTR:
-      case STRLEN:
-      case REPLACE:
-      case UCASE:
-      case LCASE:
-      case ENCODE_FOR_URI:
-      case CONTAINS:
-      case STRSTARTS:
-      case STRENDS:
-      case STRBEFORE:
-      case STRAFTER:
-      case YEAR:
-      case MONTH:
-      case DAY:
-      case HOURS:
-      case MINUTES:
-      case SECONDS:
-      case TIMEZONE:
-      case TZ:
-      case NOW:
-      case UUID:
-      case STRUUID:
-      case VERSION:
-      case MD5:
-      case SHA1:
-      case SHA256:
-      case SHA384:
-      case SHA512:
-      case LPAREN:
-        ;
-        break;
-      default:
-        jj_la1[31] = jj_gen;
-        break label_11;
-      }
-    }
-    allowAggregatesInExpressions = false ;
-  }
-
-  final public void OrderCondition() throws ParseException {
-  int direction = 0 ; Expr expr = null ; Node v = null ;
-    direction = Query.ORDER_DEFAULT ;
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case ASC:
-    case DESC:
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case ASC:
-        jj_consume_token(ASC);
-                direction = Query.ORDER_ASCENDING ;
-        break;
-      case DESC:
-        jj_consume_token(DESC);
-                 direction = Query.ORDER_DESCENDING ;
-        break;
-      default:
-        jj_la1[32] = jj_gen;
-        jj_consume_token(-1);
-        throw new ParseException();
-      }
-      expr = BrackettedExpression();
-      break;
-    case IRIref:
-    case PNAME_NS:
-    case PNAME_LN:
-    case VAR1:
-    case VAR2:
-    case EXISTS:
-    case NOT:
-    case AGG:
-    case COUNT:
-    case MIN:
-    case MAX:
-    case SUM:
-    case AVG:
-    case SAMPLE:
-    case GROUP_CONCAT:
-    case BOUND:
-    case COALESCE:
-    case IF:
-    case BNODE:
-    case IRI:
-    case URI:
-    case CALL:
-    case STR:
-    case STRLANG:
-    case STRDT:
-    case DTYPE:
-    case LANG:
-    case LANGMATCHES:
-    case IS_URI:
-    case IS_IRI:
-    case IS_BLANK:
-    case IS_LITERAL:
-    case IS_NUMERIC:
-    case REGEX:
-    case SAME_TERM:
-    case RAND:
-    case ABS:
-    case CEIL:
-    case FLOOR:
-    case ROUND:
-    case CONCAT:
-    case SUBSTR:
-    case STRLEN:
-    case REPLACE:
-    case UCASE:
-    case LCASE:
-    case ENCODE_FOR_URI:
-    case CONTAINS:
-    case STRSTARTS:
-    case STRENDS:
-    case STRBEFORE:
-    case STRAFTER:
-    case YEAR:
-    case MONTH:
-    case DAY:
-    case HOURS:
-    case MINUTES:
-    case SECONDS:
-    case TIMEZONE:
-    case TZ:
-    case NOW:
-    case UUID:
-    case STRUUID:
-    case VERSION:
-    case MD5:
-    case SHA1:
-    case SHA256:
-    case SHA384:
-    case SHA512:
-    case LPAREN:
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case IRIref:
-      case PNAME_NS:
-      case PNAME_LN:
-      case EXISTS:
-      case NOT:
-      case AGG:
-      case COUNT:
-      case MIN:
-      case MAX:
-      case SUM:
-      case AVG:
-      case SAMPLE:
-      case GROUP_CONCAT:
-      case BOUND:
-      case COALESCE:
-      case IF:
-      case BNODE:
-      case IRI:
-      case URI:
-      case CALL:
-      case STR:
-      case STRLANG:
-      case STRDT:
-      case DTYPE:
-      case LANG:
-      case LANGMATCHES:
-      case IS_URI:
-      case IS_IRI:
-      case IS_BLANK:
-      case IS_LITERAL:
-      case IS_NUMERIC:
-      case REGEX:
-      case SAME_TERM:
-      case RAND:
-      case ABS:
-      case CEIL:
-      case FLOOR:
-      case ROUND:
-      case CONCAT:
-      case SUBSTR:
-      case STRLEN:
-      case REPLACE:
-      case UCASE:
-      case LCASE:
-      case ENCODE_FOR_URI:
-      case CONTAINS:
-      case STRSTARTS:
-      case STRENDS:
-      case STRBEFORE:
-      case STRAFTER:
-      case YEAR:
-      case MONTH:
-      case DAY:
-      case HOURS:
-      case MINUTES:
-      case SECONDS:
-      case TIMEZONE:
-      case TZ:
-      case NOW:
-      case UUID:
-      case STRUUID:
-      case VERSION:
-      case MD5:
-      case SHA1:
-      case SHA256:
-      case SHA384:
-      case SHA512:
-      case LPAREN:
-        expr = Constraint();
-        break;
-      case VAR1:
-      case VAR2:
-        v = Var();
-        break;
-      default:
-        jj_la1[33] = jj_gen;
-        jj_consume_token(-1);
-        throw new ParseException();
-      }
-      break;
-    default:
-      jj_la1[34] = jj_gen;
-      jj_consume_token(-1);
-      throw new ParseException();
-    }
-    if ( v == null )
-          getQuery().addOrderBy(expr, direction) ;
-      else
-          getQuery().addOrderBy(v, direction) ;
-  }
-
-  final public void LimitOffsetClauses() throws ParseException {
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case LIMIT:
-      LimitClause();
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case OFFSET:
-        OffsetClause();
-        break;
-      default:
-        jj_la1[35] = jj_gen;
-        ;
-      }
-      break;
-    case OFFSET:
-      OffsetClause();
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case LIMIT:
-        LimitClause();
-        break;
-      default:
-        jj_la1[36] = jj_gen;
-        ;
-      }
-      break;
-    default:
-      jj_la1[37] = jj_gen;
-      jj_consume_token(-1);
-      throw new ParseException();
-    }
-  }
-
-  final public void LimitClause() throws ParseException {
-                       Token t ;
-    jj_consume_token(LIMIT);
-    t = jj_consume_token(INTEGER);
-      getQuery().setLimit(integerValue(t.image)) ;
-  }
-
-  final public void OffsetClause() throws ParseException {
-                        Token t ;
-    jj_consume_token(OFFSET);
-    t = jj_consume_token(INTEGER);
-      getQuery().setOffset(integerValue(t.image)) ;
-  }
-
-  final public void ValuesClause() throws ParseException {
-                        Token t ;
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case VALUES:
-      t = jj_consume_token(VALUES);
-      startValuesClause(t.beginLine, t.beginColumn) ;
-      DataBlock();
-      finishValuesClause(t.beginLine, t.beginColumn) ;
-      break;
-    default:
-      jj_la1[38] = jj_gen;
-      ;
-    }
-  }
-
-  final public void Update() throws ParseException {
-    Prologue();
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case INSERT:
-    case DELETE:
-    case INSERT_DATA:
-    case DELETE_DATA:
-    case DELETE_WHERE:
-    case LOAD:
-    case CLEAR:
-    case CREATE:
-    case ADD:
-    case MOVE:
-    case COPY:
-    case DROP:
-    case WITH:
-      Update1();
-      label_12:
-      while (true) {
-        if (jj_2_2(2147483647)) {
-          ;
-        } else {
-          break label_12;
-        }
-        jj_consume_token(SEMICOLON);
-        Prologue();
-        Update1();
-      }
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case SEMICOLON:
-        jj_consume_token(SEMICOLON);
-        Prologue();
-        break;
-      default:
-        jj_la1[39] = jj_gen;
-        ;
-      }
-      break;
-    default:
-      jj_la1[40] = jj_gen;
-      ;
-    }
-  }
-
-  final public void Update1() throws ParseException {
-                   Update up = null ;
-    startUpdateOperation() ;
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case LOAD:
-      up = Load();
-      break;
-    case CLEAR:
-      up = Clear();
-      break;
-    case DROP:
-      up = Drop();
-      break;
-    case ADD:
-      up = Add();
-      break;
-    case MOVE:
-      up = Move();
-      break;
-    case COPY:
-      up = Copy();
-      break;
-    case CREATE:
-      up = Create();
-      break;
-    case DELETE_WHERE:
-      up = DeleteWhere();
-      break;
-    case INSERT:
-    case DELETE:
-    case WITH:
-      up = Modify();
-      break;
-    case INSERT_DATA:
-      InsertData();
-      break;
-    case DELETE_DATA:
-      DeleteData();
-      break;
-    default:
-      jj_la1[41] = jj_gen;
-      jj_consume_token(-1);
-      throw new ParseException();
-    }
-    if (null != up) emitUpdate(up) ;
-    finishUpdateOperation() ;
-  }
-
-  final public Update Load() throws ParseException {
-                  String url ; Node dest = null ; boolean silent = false ;
-    jj_consume_token(LOAD);
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case SILENT:
-      jj_consume_token(SILENT);
-                       silent = true ;
-      break;
-    default:
-      jj_la1[42] = jj_gen;
-      ;
-    }
-    url = iri();
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case INTO:
-      jj_consume_token(INTO);
-      dest = GraphRef();
-      break;
-    default:
-      jj_la1[43] = jj_gen;
-      ;
-    }
-      {if (true) return new UpdateLoad(url, dest, silent) ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public Update Clear() throws ParseException {
-                   boolean silent = false ; Target target ;
-    jj_consume_token(CLEAR);
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case SILENT:
-      jj_consume_token(SILENT);
-                       silent = true ;
-      break;
-    default:
-      jj_la1[44] = jj_gen;
-      ;
-    }
-    target = GraphRefAll();
-     {if (true) return new UpdateClear(target, silent) ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public Update Drop() throws ParseException {
-                  boolean silent = false ; Target target ;
-    jj_consume_token(DROP);
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case SILENT:
-      jj_consume_token(SILENT);
-                      silent = true ;
-      break;
-    default:
-      jj_la1[45] = jj_gen;
-      ;
-    }
-    target = GraphRefAll();
-     {if (true) return new UpdateDrop(target, silent) ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public Update Create() throws ParseException {
-                    Node iri ; boolean silent = false ;
-    jj_consume_token(CREATE);
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case SILENT:
-      jj_consume_token(SILENT);
-                        silent=true ;
-      break;
-    default:
-      jj_la1[46] = jj_gen;
-      ;
-    }
-    iri = GraphRef();
-     {if (true) return new UpdateCreate(iri, silent) ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public Update Add() throws ParseException {
-                 Target src ; Target dest ; boolean silent = false ;
-    jj_consume_token(ADD);
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case SILENT:
-      jj_consume_token(SILENT);
-                    silent=true ;
-      break;
-    default:
-      jj_la1[47] = jj_gen;
-      ;
-    }
-    src = GraphOrDefault();
-    jj_consume_token(TO);
-    dest = GraphOrDefault();
-    {if (true) return new UpdateAdd(src, dest, silent) ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public Update Move() throws ParseException {
-                  Target src ; Target dest ; boolean silent = false ;
-    jj_consume_token(MOVE);
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case SILENT:
-      jj_consume_token(SILENT);
-                     silent=true ;
-      break;
-    default:
-      jj_la1[48] = jj_gen;
-      ;
-    }
-    src = GraphOrDefault();
-    jj_consume_token(TO);
-    dest = GraphOrDefault();
-    {if (true) return new UpdateMove(src, dest, silent) ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public Update Copy() throws ParseException {
-                  Target src ; Target dest ; boolean silent = false ;
-    jj_consume_token(COPY);
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case SILENT:
-      jj_consume_token(SILENT);
-                     silent=true ;
-      break;
-    default:
-      jj_la1[49] = jj_gen;
-      ;
-    }
-    src = GraphOrDefault();
-    jj_consume_token(TO);
-    dest = GraphOrDefault();
-    {if (true) return new UpdateCopy(src, dest, silent) ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public void InsertData() throws ParseException {
-                      QuadDataAccSink qd = createInsertDataSink() ; Token t ;
-    t = jj_consume_token(INSERT_DATA);
-    int beginLine = t.beginLine; int beginColumn = t.beginColumn; t = null;
-    startDataInsert(qd, beginLine, beginColumn) ;
-    QuadData(qd);
-    finishDataInsert(qd, beginLine, beginColumn) ;
-    qd.close() ;
-  }
-
-  final public void DeleteData() throws ParseException {
-                      QuadDataAccSink qd = createDeleteDataSink() ; Token t ;
-    t = jj_consume_token(DELETE_DATA);
-    int beginLine = t.beginLine; int beginColumn = t.beginColumn; t = null;
-    startDataDelete(qd, beginLine, beginColumn) ;
-    QuadData(qd);
-    finishDataDelete(qd, beginLine, beginColumn) ;
-    qd.close() ;
-  }
-
-  final public Update DeleteWhere() throws ParseException {
-                         QuadAcc qp = new QuadAcc() ; Token t ;
-    t = jj_consume_token(DELETE_WHERE);
-    int beginLine = t.beginLine; int beginColumn = t.beginColumn; t = null;
-    startDeleteTemplate(qp, beginLine, beginColumn) ;
-    QuadPattern(qp);
-    finishDeleteTemplate(qp, beginLine, beginColumn) ;
-    {if (true) return new UpdateDeleteWhere(qp) ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public Update Modify() throws ParseException {
-                    Element el ; String iri = null ;
-                    UpdateModify up = new UpdateModify() ;
-    startModifyUpdate() ;
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case WITH:
-      jj_consume_token(WITH);
-      iri = iri();
-                         Node n = createNode(iri) ; up.setWithIRI(n) ;
-      break;
-    default:
-      jj_la1[50] = jj_gen;
-      ;
-    }
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case DELETE:
-      DeleteClause(up);
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case INSERT:
-        InsertClause(up);
-        break;
-      default:
-        jj_la1[51] = jj_gen;
-        ;
-      }
-      break;
-    case INSERT:
-      InsertClause(up);
-      break;
-    default:
-      jj_la1[52] = jj_gen;
-      jj_consume_token(-1);
-      throw new ParseException();
-    }
-    label_13:
-    while (true) {
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case USING:
-        ;
-        break;
-      default:
-        jj_la1[53] = jj_gen;
-        break label_13;
-      }
-      UsingClause(up);
-    }
-    jj_consume_token(WHERE);
-    startWherePattern() ;
-    el = GroupGraphPattern();
-                             up.setElement(el) ;
-    finishWherePattern() ;
-    finishModifyUpdate() ;
-    {if (true) return up ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public void DeleteClause(UpdateModify up) throws ParseException {
-                                       QuadAcc qp = up.getDeleteAcc() ; Token t ;
-    t = jj_consume_token(DELETE);
-     int beginLine = t.beginLine; int beginColumn = t.beginColumn; t = null;
-     startDeleteTemplate(qp, beginLine, beginColumn) ;
-    QuadPattern(qp);
-     finishDeleteTemplate(qp, beginLine, beginColumn) ;
-     up.setHasDeleteClause(true) ;
-  }
-
-  final public void InsertClause(UpdateModify up) throws ParseException {
-                                       QuadAcc qp = up.getInsertAcc() ; Token t ;
-    t = jj_consume_token(INSERT);
-     int beginLine = t.beginLine; int beginColumn = t.beginColumn; t = null;
-     startInsertTemplate(qp, beginLine, beginColumn) ;
-    QuadPattern(qp);
-     finishInsertTemplate(qp, beginLine, beginColumn) ;
-     up.setHasInsertClause(true) ;
-  }
-
-  final public void UsingClause(UpdateWithUsing update) throws ParseException {
-                                             String iri ; Node n ;
-    jj_consume_token(USING);
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case IRIref:
-    case PNAME_NS:
-    case PNAME_LN:
-      iri = iri();
-      n = createNode(iri) ; update.addUsing(n) ;
-      break;
-    case NAMED:
-      jj_consume_token(NAMED);
-      iri = iri();
-      n = createNode(iri) ; update.addUsingNamed(n) ;
-      break;
-    default:
-      jj_la1[54] = jj_gen;
-      jj_consume_token(-1);
-      throw new ParseException();
-    }
-  }
-
-  final public Target GraphOrDefault() throws ParseException {
-                            String iri ;
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case DFT:
-      jj_consume_token(DFT);
-            {if (true) return Target.DEFAULT ;}
-      break;
-    case IRIref:
-    case PNAME_NS:
-    case PNAME_LN:
-    case GRAPH:
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case GRAPH:
-        jj_consume_token(GRAPH);
-        break;
-      default:
-        jj_la1[55] = jj_gen;
-        ;
-      }
-      iri = iri();
-       {if (true) return Target.create(createNode(iri)) ;}
-      break;
-    default:
-      jj_la1[56] = jj_gen;
-      jj_consume_token(-1);
-      throw new ParseException();
-    }
-    throw new Error("Missing return statement in function");
-  }
-
-  final public Node GraphRef() throws ParseException {
-                    String iri ;
-    jj_consume_token(GRAPH);
-    iri = iri();
-      {if (true) return createNode(iri) ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public Target GraphRefAll() throws ParseException {
-                         Node iri ;
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case GRAPH:
-      iri = GraphRef();
-       {if (true) return Target.create(iri) ;}
-      break;
-    case DFT:
-      jj_consume_token(DFT);
-             {if (true) return Target.DEFAULT ;}
-      break;
-    case NAMED:
-      jj_consume_token(NAMED);
-               {if (true) return Target.NAMED ;}
-      break;
-    case ALL:
-      jj_consume_token(ALL);
-             {if (true) return Target.ALL ;}
-      break;
-    default:
-      jj_la1[57] = jj_gen;
-      jj_consume_token(-1);
-      throw new ParseException();
-    }
-    throw new Error("Missing return statement in function");
-  }
-
-  final public void QuadPattern(QuadAcc acc) throws ParseException {
-    jj_consume_token(LBRACE);
-    Quads(acc);
-    jj_consume_token(RBRACE);
-  }
-
-  final public void QuadData(QuadDataAccSink acc) throws ParseException {
-    jj_consume_token(LBRACE);
-    Quads(acc);
-    jj_consume_token(RBRACE);
-  }
-
-  final public void Quads(QuadAccSink acc) throws ParseException {
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case IRIref:
-    case PNAME_NS:
-    case PNAME_LN:
-    case BLANK_NODE_LABEL:
-    case VAR1:
-    case VAR2:
-    case TRUE:
-    case FALSE:
-    case INTEGER:
-    case DECIMAL:
-    case DOUBLE:
-    case INTEGER_POSITIVE:
-    case DECIMAL_POSITIVE:
-    case DOUBLE_POSITIVE:
-    case INTEGER_NEGATIVE:
-    case DECIMAL_NEGATIVE:
-    case DOUBLE_NEGATIVE:
-    case STRING_LITERAL1:
-    case STRING_LITERAL2:
-    case STRING_LITERAL_LONG1:
-    case STRING_LITERAL_LONG2:
-    case LPAREN:
-    case NIL:
-    case LBRACKET:
-    case ANON:
-      TriplesTemplate(acc);
-      break;
-    default:
-      jj_la1[58] = jj_gen;
-      ;
-    }
-    label_14:
-    while (true) {
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case GRAPH:
-        ;
-        break;
-      default:
-        jj_la1[59] = jj_gen;
-        break label_14;
-      }
-      QuadsNotTriples(acc);
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case DOT:
-        jj_consume_token(DOT);
-        break;
-      default:
-        jj_la1[60] = jj_gen;
-        ;
-      }
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case IRIref:
-      case PNAME_NS:
-      case PNAME_LN:
-      case BLANK_NODE_LABEL:
-      case VAR1:
-      case VAR2:
-      case TRUE:
-      case FALSE:
-      case INTEGER:
-      case DECIMAL:
-      case DOUBLE:
-      case INTEGER_POSITIVE:
-      case DECIMAL_POSITIVE:
-      case DOUBLE_POSITIVE:
-      case INTEGER_NEGATIVE:
-      case DECIMAL_NEGATIVE:
-      case DOUBLE_NEGATIVE:
-      case STRING_LITERAL1:
-      case STRING_LITERAL2:
-      case STRING_LITERAL_LONG1:
-      case STRING_LITERAL_LONG2:
-      case LPAREN:
-      case NIL:
-      case LBRACKET:
-      case ANON:
-        TriplesTemplate(acc);
-        break;
-      default:
-        jj_la1[61] = jj_gen;
-        ;
-      }
-    }
-  }
-
-  final public void QuadsNotTriples(QuadAccSink acc) throws ParseException {
-                                         Node gn ; Node prev = acc.getGraph() ;
-    jj_consume_token(GRAPH);
-    gn = VarOrIri();
-      setAccGraph(acc, gn) ;
-    jj_consume_token(LBRACE);
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case IRIref:
-    case PNAME_NS:
-    case PNAME_LN:
-    case BLANK_NODE_LABEL:
-    case VAR1:
-    case VAR2:
-    case TRUE:
-    case FALSE:
-    case INTEGER:
-    case DECIMAL:
-    case DOUBLE:
-    case INTEGER_POSITIVE:
-    case DECIMAL_POSITIVE:
-    case DOUBLE_POSITIVE:
-    case INTEGER_NEGATIVE:
-    case DECIMAL_NEGATIVE:
-    case DOUBLE_NEGATIVE:
-    case STRING_LITERAL1:
-    case STRING_LITERAL2:
-    case STRING_LITERAL_LONG1:
-    case STRING_LITERAL_LONG2:
-    case LPAREN:
-    case NIL:
-    case LBRACKET:
-    case ANON:
-      TriplesTemplate(acc);
-      break;
-    default:
-      jj_la1[62] = jj_gen;
-      ;
-    }
-    jj_consume_token(RBRACE);
-      setAccGraph(acc, prev) ;
-  }
-
-  final public void TriplesTemplate(TripleCollector acc) throws ParseException {
-    TriplesSameSubject(acc);
-    label_15:
-    while (true) {
-      if (jj_2_3(2)) {
-        ;
-      } else {
-        break label_15;
-      }
-      jj_consume_token(DOT);
-      TriplesSameSubject(acc);
-    }
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case DOT:
-      jj_consume_token(DOT);
-      break;
-    default:
-      jj_la1[63] = jj_gen;
-      ;
-    }
-  }
-
-  final public Element GroupGraphPattern() throws ParseException {
-                                Element el = null ; Token t ;
-    t = jj_consume_token(LBRACE);
-    int beginLine = t.beginLine; int beginColumn = t.beginColumn; t = null;
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case SELECT:
-      startSubSelect(beginLine, beginColumn) ;
-      SubSelect();
-      Query q = endSubSelect(beginLine, beginColumn) ;
-      el = new ElementSubQuery(q) ;
-      break;
-    default:
-      jj_la1[64] = jj_gen;
-      el = GroupGraphPatternSub();
-    }
-    jj_consume_token(RBRACE);
-      {if (true) return el ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public Element GroupGraphPatternSub() throws ParseException {
-                                   Element el = null ;
-        ElementGroup elg = new ElementGroup() ;
-        startGroup(elg) ;
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case IRIref:
-    case PNAME_NS:
-    case PNAME_LN:
-    case BLANK_NODE_LABEL:
-    case VAR1:
-    case VAR2:
-    case TRUE:
-    case FALSE:
-    case INTEGER:
-    case DECIMAL:
-    case DOUBLE:
-    case INTEGER_POSITIVE:
-    case DECIMAL_POSITIVE:
-    case DOUBLE_POSITIVE:
-    case INTEGER_NEGATIVE:
-    case DECIMAL_NEGATIVE:
-    case DOUBLE_NEGATIVE:
-    case STRING_LITERAL1:
-    case STRING_LITERAL2:
-    case STRING_LITERAL_LONG1:
-    case STRING_LITERAL_LONG2:
-    case LPAREN:
-    case NIL:
-    case LBRACKET:
-    case ANON:
-      startTriplesBlock() ;
-      el = TriplesBlock(null);
-      endTriplesBlock() ;
-      elg.addElement(el) ;
-      break;
-    default:
-      jj_la1[65] = jj_gen;
-      ;
-    }
-    label_16:
-    while (true) {
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case VALUES:
-      case GRAPH:
-      case OPTIONAL:
-      case MINUS_P:
-      case BIND:
-      case SERVICE:
-      case LET:
-      case EXISTS:
-      case NOT:
-      case FILTER:
-      case LBRACE:
-        ;
-        break;
-      default:
-        jj_la1[66] = jj_gen;
-        break label_16;
-      }
-      el = GraphPatternNotTriples();
-      elg.addElement(el) ;
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case DOT:
-        jj_consume_token(DOT);
-        break;
-      default:
-        jj_la1[67] = jj_gen;
-        ;
-      }
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case IRIref:
-      case PNAME_NS:
-      case PNAME_LN:
-      case BLANK_NODE_LABEL:
-      case VAR1:
-      case VAR2:
-      case TRUE:
-      case FALSE:
-      case INTEGER:
-      case DECIMAL:
-      case DOUBLE:
-      case INTEGER_POSITIVE:
-      case DECIMAL_POSITIVE:
-      case DOUBLE_POSITIVE:
-      case INTEGER_NEGATIVE:
-      case DECIMAL_NEGATIVE:
-      case DOUBLE_NEGATIVE:
-      case STRING_LITERAL1:
-      case STRING_LITERAL2:
-      case STRING_LITERAL_LONG1:
-      case STRING_LITERAL_LONG2:
-      case LPAREN:
-      case NIL:
-      case LBRACKET:
-      case ANON:
-        startTriplesBlock() ;
-        el = TriplesBlock(null);
-        endTriplesBlock() ;
-        elg.addElement(el) ;
-        break;
-      default:
-        jj_la1[68] = jj_gen;
-        ;
-      }
-    }
-        endGroup(elg) ;
-        {if (true) return elg ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public Element TriplesBlock(ElementPathBlock acc) throws ParseException {
-    if ( acc == null )
-        acc = new ElementPathBlock() ;
-    TriplesSameSubjectPath(acc);
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case DOT:
-      jj_consume_token(DOT);
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case IRIref:
-      case PNAME_NS:
-      case PNAME_LN:
-      case BLANK_NODE_LABEL:
-      case VAR1:
-      case VAR2:
-      case TRUE:
-      case FALSE:
-      case INTEGER:
-      case DECIMAL:
-      case DOUBLE:
-      case INTEGER_POSITIVE:
-      case DECIMAL_POSITIVE:
-      case DOUBLE_POSITIVE:
-      case INTEGER_NEGATIVE:
-      case DECIMAL_NEGATIVE:
-      case DOUBLE_NEGATIVE:
-      case STRING_LITERAL1:
-      case STRING_LITERAL2:
-      case STRING_LITERAL_LONG1:
-      case STRING_LITERAL_LONG2:
-      case LPAREN:
-      case NIL:
-      case LBRACKET:
-      case ANON:
-        TriplesBlock(acc);
-        break;
-      default:
-        jj_la1[69] = jj_gen;
-        ;
-      }
-      break;
-    default:
-      jj_la1[70] = jj_gen;
-      ;
-    }
-      {if (true) return acc ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public Element GraphPatternNotTriples() throws ParseException {
-                                     Element el = null ;
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case LBRACE:
-      el = GroupOrUnionGraphPattern();
-      break;
-    case OPTIONAL:
-      el = OptionalGraphPattern();
-      break;
-    case MINUS_P:
-      el = MinusGraphPattern();
-      break;
-    case GRAPH:
-      el = GraphGraphPattern();
-      break;
-    case SERVICE:
-      el = ServiceGraphPattern();
-      break;
-    case FILTER:
-      el = Filter();
-      break;
-    case BIND:
-      el = Bind();
-      break;
-    case VALUES:
-      el = InlineData();
-      break;
-    case LET:
-      el = Assignment();
-      break;
-    case EXISTS:
-      el = ExistsElt();
-      break;
-    case NOT:
-      el = NotExistsElt();
-      break;
-    default:
-      jj_la1[71] = jj_gen;
-      jj_consume_token(-1);
-      throw new ParseException();
-    }
-   {if (true) return el ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public Element OptionalGraphPattern() throws ParseException {
-                                   Element el ;
-    jj_consume_token(OPTIONAL);
-    el = GroupGraphPattern();
-      {if (true) return new ElementOptional(el) ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public Element GraphGraphPattern() throws ParseException {
-                                Element el ; Node n ;
-    jj_consume_token(GRAPH);
-    n = VarOrIri();
-    el = GroupGraphPattern();
-      {if (true) return new ElementNamedGraph(n, el) ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public Element ServiceGraphPattern() throws ParseException {
-                                  Element el ; Node n ; boolean silent = false ;
-    jj_consume_token(SERVICE);
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case SILENT:
-      jj_consume_token(SILENT);
-     silent=true;
-      break;
-    default:
-      jj_la1[72] = jj_gen;
-      ;
-    }
-    n = VarOrIri();
-    el = GroupGraphPattern();
-      {if (true) return new ElementService(n, el, silent) ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public Element Bind() throws ParseException {
-                   Var v ; Expr expr ;
-    jj_consume_token(BIND);
-    jj_consume_token(LPAREN);
-    expr = Expression();
-    jj_consume_token(AS);
-    v = Var();
-    jj_consume_token(RPAREN);
-    {if (true) return new ElementBind(v, expr) ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public Element InlineData() throws ParseException {
-                         ElementData el ; Token t ;
-    t = jj_consume_token(VALUES);
-    int beginLine = t.beginLine; int beginColumn = t.beginColumn; t = null;
-    el = new ElementData() ;
-    startInlineData(el.getVars(), el.getRows(), beginLine, beginColumn) ;
-    DataBlock();
-    finishInlineData(beginLine, beginColumn) ;
-    {if (true) return el ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public void DataBlock() throws ParseException {
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case VAR1:
-    case VAR2:
-      InlineDataOneVar();
-      break;
-    case LPAREN:
-    case NIL:
-      InlineDataFull();
-      break;
-    default:
-      jj_la1[73] = jj_gen;
-      jj_consume_token(-1);
-      throw new ParseException();
-    }
-  }
-
-  final public void InlineDataOneVar() throws ParseException {
-                            Var v ; Node n ; Token t ;
-    v = Var();
-    emitDataBlockVariable(v) ;
-    t = jj_consume_token(LBRACE);
-    label_17:
-    while (true) {
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case IRIref:
-      case PNAME_NS:
-      case PNAME_LN:
-      case UNDEF:
-      case TRUE:
-      case FALSE:
-      case INTEGER:
-      case DECIMAL:
-      case DOUBLE:
-      case INTEGER_POSITIVE:
-      case DECIMAL_POSITIVE:
-      case DOUBLE_POSITIVE:
-      case INTEGER_NEGATIVE:
-      case DECIMAL_NEGATIVE:
-      case DOUBLE_NEGATIVE:
-      case STRING_LITERAL1:
-      case STRING_LITERAL2:
-      case STRING_LITERAL_LONG1:
-      case STRING_LITERAL_LONG2:
-        ;
-        break;
-      default:
-        jj_la1[74] = jj_gen;
-        break label_17;
-      }
-      n = DataBlockValue();
-      startDataBlockValueRow(-1, -1) ;
-      emitDataBlockValue(n, -1, -1) ;
-      finishDataBlockValueRow(-1, -1) ;
-    }
-    t = jj_consume_token(RBRACE);
-  }
-
-  final public void InlineDataFull() throws ParseException {
-                          Var v ; Node n ; Token t ; int beginLine; int beginColumn;
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case NIL:
-      jj_consume_token(NIL);
-      break;
-    case LPAREN:
-      jj_consume_token(LPAREN);
-      label_18:
-      while (true) {
-        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-        case VAR1:
-        case VAR2:
-          ;
-          break;
-        default:
-          jj_la1[75] = jj_gen;
-          break label_18;
-        }
-        v = Var();
-                 emitDataBlockVariable(v) ;
-      }
-      jj_consume_token(RPAREN);
-      break;
-    default:
-      jj_la1[76] = jj_gen;
-      jj_consume_token(-1);
-      throw new ParseException();
-    }
-    jj_consume_token(LBRACE);
-    label_19:
-    while (true) {
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case LPAREN:
-      case NIL:
-        ;
-        break;
-      default:
-        jj_la1[77] = jj_gen;
-        break label_19;
-      }
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case LPAREN:
-        t = jj_consume_token(LPAREN);
-      beginLine = t.beginLine; beginColumn = t.beginColumn; t = null;
-      startDataBlockValueRow(beginLine, beginColumn) ;
-        label_20:
-        while (true) {
-          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-          case IRIref:
-          case PNAME_NS:
-          case PNAME_LN:
-          case UNDEF:
-          case TRUE:
-          case FALSE:
-          case INTEGER:
-          case DECIMAL:
-          case DOUBLE:
-          case INTEGER_POSITIVE:
-          case DECIMAL_POSITIVE:
-          case DOUBLE_POSITIVE:
-          case INTEGER_NEGATIVE:
-          case DECIMAL_NEGATIVE:
-          case DOUBLE_NEGATIVE:
-          case STRING_LITERAL1:
-          case STRING_LITERAL2:
-          case STRING_LITERAL_LONG1:
-          case STRING_LITERAL_LONG2:
-            ;
-            break;
-          default:
-            jj_la1[78] = jj_gen;
-            break label_20;
-          }
-          n = DataBlockValue();
-          emitDataBlockValue(n, beginLine, beginColumn) ;
-        }
-        t = jj_consume_token(RPAREN);
-      beginLine = t.beginLine; beginColumn = t.beginColumn; t = null;
-        finishDataBlockValueRow(beginLine, beginColumn) ;
-        break;
-      case NIL:
-        t = jj_consume_token(NIL);
-      beginLine = t.beginLine; beginColumn = t.beginColumn; t = null;
-        startDataBlockValueRow(beginLine, beginColumn) ;
-        finishDataBlockValueRow(beginLine, beginColumn) ;
-        break;
-      default:
-        jj_la1[79] = jj_gen;
-        jj_consume_token(-1);
-        throw new ParseException();
-      }
-    }
-    jj_consume_token(RBRACE);
-  }
-
-  final public Node DataBlockValue() throws ParseException {
-                          Node n ; String iri ;
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case IRIref:
-    case PNAME_NS:
-    case PNAME_LN:
-      iri = iri();
-                {if (true) return createNode(iri) ;}
-      break;
-    case STRING_LITERAL1:
-    case STRING_LITERAL2:
-    case STRING_LITERAL_LONG1:
-    case STRING_LITERAL_LONG2:
-      n = RDFLiteral();
-                     {if (true) return n ;}
-      break;
-    case INTEGER:
-    case DECIMAL:
-    case DOUBLE:
-    case INTEGER_POSITIVE:
-    case DECIMAL_POSITIVE:
-    case DOUBLE_POSITIVE:
-    case INTEGER_NEGATIVE:
-    case DECIMAL_NEGATIVE:
-    case DOUBLE_NEGATIVE:
-      n = NumericLiteral();
-                         {if (true) return n ;}
-      break;
-    case TRUE:
-    case FALSE:
-      n = BooleanLiteral();
-                         {if (true) return n ;}
-      break;
-    case UNDEF:
-      jj_consume_token(UNDEF);
-            {if (true) return null ;}
-      break;
-    default:
-      jj_la1[80] = jj_gen;
-      jj_consume_token(-1);
-      throw new ParseException();
-    }
-    throw new Error("Missing return statement in function");
-  }
-
-  final public Element Assignment() throws ParseException {
-                         Var v ; Expr expr ;
-    jj_consume_token(LET);
-    jj_consume_token(LPAREN);
-    v = Var();
-    jj_consume_token(ASSIGN);
-    expr = Expression();
-    jj_consume_token(RPAREN);
-      {if (true) return new ElementAssign(v, expr) ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public Element ExistsElt() throws ParseException {
-                        Element el ;
-    jj_consume_token(EXISTS);
-    el = GroupGraphPattern();
-      {if (true) return new ElementExists(el) ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public Element NotExistsElt() throws ParseException {
-                           Element el ;
-    jj_consume_token(NOT);
-    jj_consume_token(EXISTS);
-    el = GroupGraphPattern();
-      {if (true) return new ElementNotExists(el) ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public Element MinusGraphPattern() throws ParseException {
-                                Element el ;
-    jj_consume_token(MINUS_P);
-    el = GroupGraphPattern();
-      {if (true) return new ElementMinus(el) ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public Element GroupOrUnionGraphPattern() throws ParseException {
-      Element el = null ; ElementUnion el2 = null ;
-    el = GroupGraphPattern();
-    label_21:
-    while (true) {
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case UNION:
-        ;
-        break;
-      default:
-        jj_la1[81] = jj_gen;
-        break label_21;
-      }
-      jj_consume_token(UNION);
-      if ( el2 == null )
-      {
-        el2 = new ElementUnion() ;
-        el2.addElement(el) ;
-      }
-      el = GroupGraphPattern();
-      el2.addElement(el) ;
-    }
-      {if (true) return (el2==null)? el : el2 ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public Element Filter() throws ParseException {
-                     Expr c ;
-    jj_consume_token(FILTER);
-    c = Constraint();
-    {if (true) return new ElementFilter(c) ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public Expr Constraint() throws ParseException {
-                      Expr c ;
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case LPAREN:
-      c = BrackettedExpression();
-      break;
-    case EXISTS:
-    case NOT:
-    case AGG:
-    case COUNT:
-    case MIN:
-    case MAX:
-    case SUM:
-    case AVG:
-    case SAMPLE:
-    case GROUP_CONCAT:
-    case BOUND:
-    case COALESCE:
-    case IF:
-    case BNODE:
-    case IRI:
-    case URI:
-    case CALL:
-    case STR:
-    case STRLANG:
-    case STRDT:
-    case DTYPE:
-    case LANG:
-    case LANGMATCHES:
-    case IS_URI:
-    case IS_IRI:
-    case IS_BLANK:
-    case IS_LITERAL:
-    case IS_NUMERIC:
-    case REGEX:
-    case SAME_TERM:
-    case RAND:
-    case ABS:
-    case CEIL:
-    case FLOOR:
-    case ROUND:
-    case CONCAT:
-    case SUBSTR:
-    case STRLEN:
-    case REPLACE:
-    case UCASE:
-    case LCASE:
-    case ENCODE_FOR_URI:
-    case CONTAINS:
-    case STRSTARTS:
-    case STRENDS:
-    case STRBEFORE:
-    case STRAFTER:
-    case YEAR:
-    case MONTH:
-    case DAY:
-    case HOURS:
-    case MINUTES:
-    case SECONDS:
-    case TIMEZONE:
-    case TZ:
-    case NOW:
-    case UUID:
-    case STRUUID:
-    case VERSION:
-    case MD5:
-    case SHA1:
-    case SHA256:
-    case SHA384:
-    case SHA512:
-      c = BuiltInCall();
-      break;
-    case IRIref:
-    case PNAME_NS:
-    case PNAME_LN:
-      c = FunctionCall();
-      break;
-    default:
-      jj_la1[82] = jj_gen;
-      jj_consume_token(-1);
-      throw new ParseException();
-    }
-    {if (true) return c ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public Expr FunctionCall() throws ParseException {
-                        String fname ; ExprList a ;
-    fname = iri();
-    a = ArgList();
-     if ( AggregateRegistry.isRegistered(fname) ) {
-         if ( ! allowAggregatesInExpressions )
-            throwParseException("Aggregate expression not legal at this point : "+fname, -1, -1) ;
-         Aggregator agg = AggregatorFactory.createCustom(fname, a) ;
-         Expr exprAgg = getQuery().allocAggregate(agg) ;
-         {if (true) return exprAgg ;}
-     }
-     {if (true) return new E_Function(fname, a) ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public ExprList ArgList() throws ParseException {
-                       Expr expr ; boolean distinct = false ;
-                      ExprList args = new ExprList() ; Token t ;
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case NIL:
-      jj_consume_token(NIL);
-      break;
-    case LPAREN:
-      jj_consume_token(LPAREN);
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case DISTINCT:
-        t = jj_consume_token(DISTINCT);
-                        distinct = true ;
-        int beginLine = t.beginLine; int beginColumn = t.beginColumn; t = null;
-          if ( ! allowAggregatesInExpressions )
-              throwParseException("Aggregate expression not legal at this point",
-                                 beginLine, beginColumn) ;
-        break;
-      default:
-        jj_la1[83] = jj_gen;
-        ;
-      }
-      expr = Expression();
-                            args.add(expr) ;
-      label_22:
-      while (true) {
-        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-        case COMMA:
-          ;
-          break;
-        default:
-          jj_la1[84] = jj_gen;
-          break label_22;
-        }
-        jj_consume_token(COMMA);
-        expr = Expression();
-                                     args.add(expr) ;
-      }
-      jj_consume_token(RPAREN);
-      break;
-    default:
-      jj_la1[85] = jj_gen;
-      jj_consume_token(-1);
-      throw new ParseException();
-    }
-      {if (true) return args ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public ExprList ExpressionList() throws ParseException {
-                              Expr expr = null ; ExprList args = new ExprList() ;
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case NIL:
-      jj_consume_token(NIL);
-      break;
-    case LPAREN:
-      jj_consume_token(LPAREN);
-      expr = Expression();
-                          args.add(expr) ;
-      label_23:
-      while (true) {
-        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-        case COMMA:
-          ;
-          break;
-        default:
-          jj_la1[86] = jj_gen;
-          break label_23;
-        }
-        jj_consume_token(COMMA);
-        expr = Expression();
-                                     args.add(expr) ;
-      }
-      jj_consume_token(RPAREN);
-      break;
-    default:
-      jj_la1[87] = jj_gen;
-      jj_consume_token(-1);
-      throw new ParseException();
-    }
-    {if (true) return args ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public Template ConstructTemplate() throws ParseException {
-                                 TripleCollectorBGP acc = new TripleCollectorBGP();
-                                 Template t = new Template(acc.getBGP()) ;
-      setInConstructTemplate(true) ;
-    jj_consume_token(LBRACE);
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case IRIref:
-    case PNAME_NS:
-    case PNAME_LN:
-    case BLANK_NODE_LABEL:
-    case VAR1:
-    case VAR2:
-    case TRUE:
-    case FALSE:
-    case INTEGER:
-    case DECIMAL:
-    case DOUBLE:
-    case INTEGER_POSITIVE:
-    case DECIMAL_POSITIVE:
-    case DOUBLE_POSITIVE:
-    case INTEGER_NEGATIVE:
-    case DECIMAL_NEGATIVE:
-    case DOUBLE_NEGATIVE:
-    case STRING_LITERAL1:
-    case STRING_LITERAL2:
-    case STRING_LITERAL_LONG1:
-    case STRING_LITERAL_LONG2:
-    case LPAREN:
-    case NIL:
-    case LBRACKET:
-    case ANON:
-      ConstructTriples(acc);
-      break;
-    default:
-      jj_la1[88] = jj_gen;
-      ;
-    }
-    jj_consume_token(RBRACE);
-      setInConstructTemplate(false) ;
-      {if (true) return t ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public void ConstructTriples(TripleCollector acc) throws ParseException {
-    TriplesSameSubject(acc);
-    label_24:
-    while (true) {
-      if (jj_2_4(2)) {
-        ;
-      } else {
-        break label_24;
-      }
-      jj_consume_token(DOT);
-      TriplesSameSubject(acc);
-    }
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case DOT:
-      jj_consume_token(DOT);
-      break;
-    default:
-      jj_la1[89] = jj_gen;
-      ;
-    }
-  }
-
-  final public void TriplesSameSubject(TripleCollector acc) throws ParseException {
-                                                 Node s ;
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case IRIref:
-    case PNAME_NS:
-    case PNAME_LN:
-    case BLANK_NODE_LABEL:
-    case VAR1:
-    case VAR2:
-    case TRUE:
-    case FALSE:
-    case INTEGER:
-    case DECIMAL:
-    case DOUBLE:
-    case INTEGER_POSITIVE:
-    case DECIMAL_POSITIVE:
-    case DOUBLE_POSITIVE:
-    case INTEGER_NEGATIVE:
-    case DECIMAL_NEGATIVE:
-    case DOUBLE_NEGATIVE:
-    case STRING_LITERAL1:
-    case STRING_LITERAL2:
-    case STRING_LITERAL_LONG1:
-    case STRING_LITERAL_LONG2:
-    case NIL:
-    case ANON:
-      s = VarOrTerm();
-      PropertyListNotEmpty(s, acc);
-      break;
-    case LPAREN:
-    case LBRACKET:
-    ElementPathBlock tempAcc = new ElementPathBlock() ;
-      s = TriplesNode(tempAcc);
-      PropertyList(s, tempAcc);
-    insert(acc, tempAcc) ;
-      break;
-    default:
-      jj_la1[90] = jj_gen;
-      jj_consume_token(-1);
-      throw new ParseException();
-    }
-  }
-
-  final public void PropertyList(Node s, TripleCollector acc) throws ParseException {
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case IRIref:
-    case PNAME_NS:
-    case PNAME_LN:
-    case VAR1:
-    case VAR2:
-    case KW_A:
-      PropertyListNotEmpty(s, acc);
-      break;
-    default:
-      jj_la1[91] = jj_gen;
-      ;
-    }
-  }
-
-  final public void PropertyListNotEmpty(Node s, TripleCollector acc) throws ParseException {
-      Node p = null ;
-    p = Verb();
-    ObjectList(s, p, null, acc);
-    label_25:
-    while (true) {
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case SEMICOLON:
-        ;
-        break;
-      default:
-        jj_la1[92] = jj_gen;
-        break label_25;
-      }
-      jj_consume_token(SEMICOLON);
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case IRIref:
-      case PNAME_NS:
-      case PNAME_LN:
-      case VAR1:
-      case VAR2:
-      case KW_A:
-        p = Verb();
-        ObjectList(s, p, null, acc);
-        break;
-      default:
-        jj_la1[93] = jj_gen;
-        ;
-      }
-    }
-  }
-
-  final public Node Verb() throws ParseException {
-                Node p ;
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case IRIref:
-    case PNAME_NS:
-    case PNAME_LN:
-    case VAR1:
-    case VAR2:
-      p = VarOrIri();
-      break;
-    case KW_A:
-      jj_consume_token(KW_A);
-                              p = nRDFtype ;
-      break;
-    default:
-      jj_la1[94] = jj_gen;
-      jj_consume_token(-1);
-      throw new ParseException();
-    }
-    {if (true) return p ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public void ObjectList(Node s, Node p, Path path, TripleCollector acc) throws ParseException {
-                                                                   Node o ;
-    Object(s, p, path, acc);
-    label_26:
-    while (true) {
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case COMMA:
-        ;
-        break;
-      default:
-        jj_la1[95] = jj_gen;
-        break label_26;
-      }
-      jj_consume_token(COMMA);
-      Object(s, p, path, acc);
-    }
-  }
-
-  final public void Object(Node s, Node p, Path path, TripleCollector acc) throws ParseException {
-                                                               Node o ;
-    ElementPathBlock tempAcc = new ElementPathBlock() ; int mark = tempAcc.mark() ;
-    o = GraphNode(tempAcc);
-    insert(tempAcc, mark, s, p, path, o) ; insert(acc, tempAcc) ;
-  }
-
-  final public void TriplesSameSubjectPath(TripleCollector acc) throws ParseException {
-                                                     Node s ;
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case IRIref:
-    case PNAME_NS:
-    case PNAME_LN:
-    case BLANK_NODE_LABEL:
-    case VAR1:
-    case VAR2:
-    case TRUE:
-    case FALSE:
-    case INTEGER:
-    case DECIMAL:
-    case DOUBLE:
-    case INTEGER_POSITIVE:
-    case DECIMAL_POSITIVE:
-    case DOUBLE_POSITIVE:
-    case INTEGER_NEGATIVE:
-    case DECIMAL_NEGATIVE:
-    case DOUBLE_NEGATIVE:
-    case STRING_LITERAL1:
-    case STRING_LITERAL2:
-    case STRING_LITERAL_LONG1:
-    case STRING_LITERAL_LONG2:
-    case NIL:
-    case ANON:
-      s = VarOrTerm();
-      PropertyListPathNotEmpty(s, acc);
-      break;
-    case LPAREN:
-    case LBRACKET:
-    ElementPathBlock tempAcc = new ElementPathBlock() ;
-      s = TriplesNodePath(tempAcc);
-      PropertyListPath(s, tempAcc);
-    insert(acc, tempAcc) ;
-      break;
-    default:
-      jj_la1[96] = jj_gen;
-      jj_consume_token(-1);
-      throw new ParseException();
-    }
-  }
-
-  final public void PropertyListPath(Node s, TripleCollector acc) throws ParseException {
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case IRIref:
-    case PNAME_NS:
-    case PNAME_LN:
-    case VAR1:
-    case VAR2:
-    case KW_A:
-    case DISTINCT:
-    case MULTI:
-    case SHORTEST:
-    case LPAREN:
-    case BANG:
-    case CARAT:
-      PropertyListPathNotEmpty(s, acc);
-      break;
-    default:
-      jj_la1[97] = jj_gen;
-      ;
-    }
-  }
-
-  final public void PropertyListPathNotEmpty(Node s, TripleCollector acc) throws ParseException {
-      Path path = null ; Node p = null ;
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case IRIref:
-    case PNAME_NS:
-    case PNAME_LN:
-    case KW_A:
-    case DISTINCT:
-    case MULTI:
-    case SHORTEST:
-    case LPAREN:
-    case BANG:
-    case CARAT:
-      path = VerbPath();
-      break;
-    case VAR1:
-    case VAR2:
-      p = VerbSimple();
-      break;
-    default:
-      jj_la1[98] = jj_gen;
-      jj_consume_token(-1);
-      throw new ParseException();
-    }
-    ObjectListPath(s, p, path, acc);
-    label_27:
-    while (true) {
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case SEMICOLON:
-        ;
-        break;
-      default:
-        jj_la1[99] = jj_gen;
-        break label_27;
-      }
-      jj_consume_token(SEMICOLON);
-      path = null ; p = null ;
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case IRIref:
-      case PNAME_NS:
-      case PNAME_LN:
-      case VAR1:
-      case VAR2:
-      case KW_A:
-      case DISTINCT:
-      case MULTI:
-      case SHORTEST:
-      case LPAREN:
-      case BANG:
-      case CARAT:
-        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-        case IRIref:
-        case PNAME_NS:
-        case PNAME_LN:
-        case KW_A:
-        case DISTINCT:
-        case MULTI:
-        case SHORTEST:
-        case LPAREN:
-        case BANG:
-        case CARAT:
-          path = VerbPath();
-          break;
-        case VAR1:
-        case VAR2:
-          p = VerbSimple();
-          break;
-        default:
-          jj_la1[100] = jj_gen;
-          jj_consume_token(-1);
-          throw new ParseException();
-        }
-        ObjectListPath(s, p, path, acc);
-        break;
-      default:
-        jj_la1[101] = jj_gen;
-        ;
-      }
-    }
-  }
-
-  final public Path VerbPath() throws ParseException {
-                   Node p ; Path path ;
-    path = Path();
-                  {if (true) return path ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public Node VerbSimple() throws ParseException {
-                      Node p ;
-    p = Var();
-    {if (true) return p ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public void ObjectListPath(Node s, Node p, Path path, TripleCollector acc) throws ParseException {
-                                                                       Node o ;
-    ObjectPath(s, p, path, acc);
-    label_28:
-    while (true) {
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case COMMA:
-        ;
-        break;
-      default:
-        jj_la1[102] = jj_gen;
-        break label_28;
-      }
-      jj_consume_token(COMMA);
-      ObjectPath(s, p, path, acc);
-    }
-  }
-
-  final public void ObjectPath(Node s, Node p, Path path, TripleCollector acc) throws ParseException {
-                                                                   Node o ;
-    ElementPathBlock tempAcc = new ElementPathBlock() ; int mark = tempAcc.mark() ;
-    o = GraphNodePath(tempAcc);
-    insert(tempAcc, mark, s, p, path, o) ; insert(acc, tempAcc) ;
-  }
-
-  final public Path PathUnit() throws ParseException {
-                    Path p ;
-    ByteOrderMark();
-    p = Path();
-    jj_consume_token(0);
-    {if (true) return p ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public Path Path() throws ParseException {
-                Path p ;
-    p = PathAlternative();
-                          {if (true) return p ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public Path PathAlternative() throws ParseException {
-                           Path p1 , p2 ;
-    p1 = PathSequence();
-    label_29:
-    while (true) {
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case VBAR:
-        ;
-        break;
-      default:
-        jj_la1[103] = jj_gen;
-        break label_29;
-      }
-      jj_consume_token(VBAR);
-      p2 = PathSequence();
-        p1 = PathFactory.pathAlt(p1, p2) ;
-    }
-     {if (true) return p1 ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public Path PathSequence() throws ParseException {
-                        Path p1 , p2 ;
-    p1 = PathEltOrInverse();
-    label_30:
-    while (true) {
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case SLASH:
-      case CARAT:
-        ;
-        break;
-      default:
-        jj_la1[104] = jj_gen;
-        break label_30;
-      }
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case SLASH:
-        jj_consume_token(SLASH);
-        p2 = PathEltOrInverse();
-        p1 = PathFactory.pathSeq(p1, p2) ;
-        break;
-      case CARAT:
-        jj_consume_token(CARAT);
-        p2 = PathElt();
-        p1 = PathFactory.pathSeq(p1, new P_Inverse(p2)) ;
-        break;
-      default:
-        jj_la1[105] = jj_gen;
-        jj_consume_token(-1);
-        throw new ParseException();
-      }
-    }
-     {if (true) return p1;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public Path PathElt() throws ParseException {
-                   String str ; Node n ; Path p ;
-    p = PathPrimary();
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case LBRACE:
-    case PLUS:
-    case STAR:
-    case QMARK:
-      p = PathMod(p);
-      break;
-    default:
-      jj_la1[106] = jj_gen;
-      ;
-    }
-     {if (true) return p ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public Path PathEltOrInverse() throws ParseException {
-                            String str ; Node n ; Path p ;
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case IRIref:
-    case PNAME_NS:
-    case PNAME_LN:
-    case KW_A:
-    case DISTINCT:
-    case MULTI:
-    case SHORTEST:
-    case LPAREN:
-    case BANG:
-      p = PathElt();
-      break;
-    case CARAT:
-      jj_consume_token(CARAT);
-      p = PathElt();
-       p = PathFactory.pathInverse(p) ;
-      break;
-    default:
-      jj_la1[107] = jj_gen;
-      jj_consume_token(-1);
-      throw new ParseException();
-    }
-     {if (true) return p ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public Path PathMod(Path p) throws ParseException {
-                         long i1 ; long i2 ;
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case QMARK:
-      jj_consume_token(QMARK);
-               {if (true) return PathFactory.pathZeroOrOne(p) ;}
-      break;
-    case STAR:
-      jj_consume_token(STAR);
-              {if (true) return PathFactory.pathZeroOrMore1(p) ;}
-      break;
-    case PLUS:
-      jj_consume_token(PLUS);
-              {if (true) return PathFactory.pathOneOrMore1(p) ;}
-      break;
-    case LBRACE:
-      jj_consume_token(LBRACE);
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case STAR:
-        jj_consume_token(STAR);
-        jj_consume_token(RBRACE);
-                           {if (true) return PathFactory.pathZeroOrMoreN(p) ;}
-        break;
-      case PLUS:
-        jj_consume_token(PLUS);
-        jj_consume_token(RBRACE);
-                           {if (true) return PathFactory.pathOneOrMoreN(p) ;}
-        break;
-      case INTEGER:
-        i1 = Integer();
-        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-        case COMMA:
-          jj_consume_token(COMMA);
-          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-          case RBRACE:
-            jj_consume_token(RBRACE);
-                {if (true) return PathFactory.pathMod(p, i1, PathFactory.UNSET) ;}
-            break;
-          case INTEGER:
-            i2 = Integer();
-            jj_consume_token(RBRACE);
-                {if (true) return PathFactory.pathMod(p, i1, i2) ;}
-            break;
-          default:
-            jj_la1[108] = jj_gen;
-            jj_consume_token(-1);
-            throw new ParseException();
-          }
-          break;
-        case RBRACE:
-          jj_consume_token(RBRACE);
-                       {if (true) return PathFactory.pathFixedLength(p, i1) ;}
-          break;
-        default:
-          jj_la1[109] = jj_gen;
-          jj_consume_token(-1);
-          throw new ParseException();
-        }
-        break;
-      case COMMA:
-        jj_consume_token(COMMA);
-        i2 = Integer();
-        jj_consume_token(RBRACE);
-             {if (true) return PathFactory.pathMod(p, PathFactory.UNSET, i2) ;}
-        break;
-      default:
-        jj_la1[110] = jj_gen;
-        jj_consume_token(-1);
-        throw new ParseException();
-      }
-      break;
-    default:
-      jj_la1[111] = jj_gen;
-      jj_consume_token(-1);
-      throw new ParseException();
-    }
-    throw new Error("Missing return statement in function");
-  }
-
-  final public Path PathPrimary() throws ParseException {
-                       String str ; Path p ; Node n ;
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case IRIref:
-    case PNAME_NS:
-    case PNAME_LN:
-      str = iri();
-       n = createNode(str) ; p = PathFactory.pathLink(n) ;
-      break;
-    case KW_A:
-      jj_consume_token(KW_A);
-       p = PathFactory.pathLink(nRDFtype) ;
-      break;
-    case BANG:
-      jj_consume_token(BANG);
-      p = PathNegatedPropertySet();
-      break;
-    case LPAREN:
-      jj_consume_token(LPAREN);
-      p = Path();
-      jj_consume_token(RPAREN);
-      break;
-    case DISTINCT:
-      jj_consume_token(DISTINCT);
-      jj_consume_token(LPAREN);
-      p = Path();
-       p = PathFactory.pathDistinct(p) ;
-      jj_consume_token(RPAREN);
-      break;
-    case SHORTEST:
-      jj_consume_token(SHORTEST);
-      jj_consume_token(LPAREN);
-      p = Path();
-       p = PathFactory.pathShortest(p) ;
-      jj_consume_token(RPAREN);
-      break;
-    case MULTI:
-      jj_consume_token(MULTI);
-      jj_consume_token(LPAREN);
-      p = Path();
-       p = PathFactory.pathMulti(p) ;
-      jj_consume_token(RPAREN);
-      break;
-    default:
-      jj_la1[112] = jj_gen;
-      jj_consume_token(-1);
-      throw new ParseException();
-    }
-   {if (true) return p ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public Path PathNegatedPropertySet() throws ParseException {
-                                  P_Path0 p ; P_NegPropSet pNegSet ;
-    pNegSet = new P_NegPropSet() ;
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case IRIref:
-    case PNAME_NS:
-    case PNAME_LN:
-    case KW_A:
-    case CARAT:
-      p = PathOneInPropertySet();
-      pNegSet.add(p) ;
-      break;
-    case LPAREN:
-      jj_consume_token(LPAREN);
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case IRIref:
-      case PNAME_NS:
-      case PNAME_LN:
-      case KW_A:
-      case CARAT:
-        p = PathOneInPropertySet();
-                                   pNegSet.add(p) ;
-        label_31:
-        while (true) {
-          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-          case VBAR:
-            ;
-            break;
-          default:
-            jj_la1[113] = jj_gen;
-            break label_31;
-          }
-          jj_consume_token(VBAR);
-          p = PathOneInPropertySet();
-                                           pNegSet.add(p) ;
-        }
-        break;
-      default:
-        jj_la1[114] = jj_gen;
-        ;
-      }
-      jj_consume_token(RPAREN);
-      break;
-    default:
-      jj_la1[115] = jj_gen;
-      jj_consume_token(-1);
-      throw new ParseException();
-    }
-    {if (true) return pNegSet ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public P_Path0 PathOneInPropertySet() throws ParseException {
-                                   String str ; Node n ;
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case IRIref:
-    case PNAME_NS:
-    case PNAME_LN:
-      str = iri();
-                  n = createNode(str) ; {if (true) return new P_Link(n) ;}
-      break;
-    case KW_A:
-      jj_consume_token(KW_A);
-             {if (true) return new P_Link(nRDFtype) ;}
-      break;
-    case CARAT:
-      jj_consume_token(CARAT);
-      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-      case IRIref:
-      case PNAME_NS:
-      case PNAME_LN:
-        str = iri();
-                    n = createNode(str) ; {if (true) return new P_ReverseLink(n) ;}
-        break;
-      case KW_A:
-        jj_consume_token(KW_A);
-               {if (true) return new P_ReverseLink(nRDFtype) ;}
-        break;
-      default:
-        jj_la1[116] = jj_gen;
-        jj_consume_token(-1);
-        throw new ParseException();
-      }
-      break;
-    default:
-      jj_la1[117] = jj_gen;
-      jj_consume_token(-1);
-      throw new ParseException();
-    }
-    throw new Error("Missing return statement in function");
-  }
-
-  final public long Integer() throws ParseException {
-                  Token t ;
-    t = jj_consume_token(INTEGER);
-      {if (true) return integerValue(t.image) ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public Node TriplesNode(TripleCollectorMark acc) throws ParseException {
-                                              Node n ;
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case LPAREN:
-      n = Collection(acc);
-                        {if (true) return n ;}
-      break;
-    case LBRACKET:
-      n = BlankNodePropertyList(acc);
-                                   {if (true) return n ;}
-      break;
-    default:
-      jj_la1[118] = jj_gen;
-      jj_consume_token(-1);
-      throw new ParseException();
-    }
-    throw new Error("Missing return statement in function");
-  }
-
-  final public Node BlankNodePropertyList(TripleCollector acc) throws ParseException {
-                                                    Token t ;
-    t = jj_consume_token(LBRACKET);
-      Node n = createBNode( t.beginLine, t.beginColumn) ;
-    PropertyListNotEmpty(n, acc);
-    jj_consume_token(RBRACKET);
-      {if (true) return n ;}
-    throw new Error("Missing return statement in function");
-  }
-
-  final public Node TriplesNodePath(TripleCollectorMark acc) throws ParseException {
-                                                  Node n ;
-    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
-    case LPAREN:
-      n = CollectionPath(acc);
-                            {if (tru

<TRUNCATED>