Class SPARQLExtParserBase

  • Direct Known Subclasses:
    SPARQLExtParser

    public class SPARQLExtParserBase
    extends SPARQLParserBase
    Class that extends the ARQ SPARQL Parser class with the operations for SPARQL Generate.
    • Constructor Detail

      • SPARQLExtParserBase

        public SPARQLExtParserBase()
    • Method Detail

      • unescapeStr

        public static java.lang.String unescapeStr​(java.lang.String s,
                                                   int line,
                                                   int column)
      • startSubQueryExt

        protected final void startSubQueryExt()
        Starts parsing a sub GENERATE query.
      • startSubSelect

        protected void startSubSelect​(int line,
                                      int col)
        Starts parsing a sub SELECT query.
        Overrides:
        startSubSelect in class SPARQLParserBase
      • endSubQueryExt

        protected final SPARQLExtQuery endSubQueryExt​(int line,
                                                      int column)
        Finishes the parsing of a sub GENERATE query.
        Parameters:
        line - -
        column - -
        Returns:
        the sub-generate query.
      • asSPARQLExtQuery

        public final SPARQLExtQuery asSPARQLExtQuery()
        If possible, cast the query to a SPARQL-Generate Query. Else, returns null.
        Returns:
        -
      • stripQuotes

        public final java.lang.String stripQuotes​(java.lang.String string,
                                                  int i,
                                                  int j)
        Remove first i and last j characters (e.g. ''' or "{") from a string
        Parameters:
        string -
        Returns: