Class SPARQLExtParserBase
- java.lang.Object
-
- org.apache.jena.sparql.lang.QueryParserBase
-
- org.apache.jena.sparql.lang.SPARQLParserBase
-
- fr.mines_stetienne.ci.sparql_generate.lang.SPARQLExtParserBase
-
- Direct Known Subclasses:
SPARQLExtParser
public class SPARQLExtParserBase extends SPARQLParserBase
Class that extends the ARQ SPARQL Parser class with the operations for SPARQL Generate.
-
-
Field Summary
-
Fields inherited from class org.apache.jena.sparql.lang.SPARQLParserBase
query
-
Fields inherited from class org.apache.jena.sparql.lang.QueryParserBase
activeLabelMap, nRDFfirst, nRDFnil, nRDFobject, nRDFpredicate, nRDFrest, nRDFsubject, nRDFtype, ParserLoggerName, previousLabels, prologue, XSD_FALSE, XSD_TRUE
-
-
Constructor Summary
Constructors Constructor Description SPARQLExtParserBase()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SPARQLExtQuery
asSPARQLExtQuery()
If possible, cast the query to a SPARQL-Generate Query.protected SPARQLExtQuery
endSubQueryExt(int line, int column)
Finishes the parsing of a sub GENERATE query.protected Query
newSubQuery(Prologue progloue)
protected void
startQuery()
Constructor.protected void
startSubQueryExt()
Starts parsing a sub GENERATE query.protected void
startSubSelect(int line, int col)
Starts parsing a sub SELECT query.String
stripQuotes(String string, int i, int j)
Remove first i and last j characters (e.g.static String
unescapeStr(String s, int line, int column)
-
Methods inherited from class org.apache.jena.sparql.lang.SPARQLParserBase
createDeleteDataSink, createInsertDataSink, emitDataBlockValue, emitDataBlockVariable, emitUpdate, endSubSelect, finishDataBlockValueRow, finishDataDelete, finishDataInsert, finishDeleteTemplate, finishInlineData, finishInsertTemplate, finishModifyUpdate, finishQuery, finishUpdateOperation, finishUpdateRequest, finishValuesClause, finishWherePattern, getQuery, popQuery, pushQuery, setQuery, setUpdate, startDataBlockValueRow, startDataDelete, startDataInsert, startDeleteTemplate, startInlineData, startInsertTemplate, startModifyUpdate, startUpdateOperation, startUpdateRequest, startValuesClause, startWherePattern
-
Methods inherited from class org.apache.jena.sparql.lang.QueryParserBase
asExpr, asExprNoSign, checkConcrete, checkString, compressGroupOfOneGroup, createBNode, createBNode, createExprExists, createExprNotExists, createListNode, createLiteral, createLiteralDecimal, createLiteralDouble, createLiteralInteger, createNode, createQuotedTriple, createTripleTerm, createVariable, doubleValue, endBasicGraphPattern, endGroup, endTriplesBlock, finishAggregate, fixupPrefix, getAggregateDepth, getAllowAggregatesInExpressions, getBNodesAreAllowed, getBNodesAreVariables, getPrologue, insert, insert, insert, insert, insert, integerValue, isBNodeIRI, makeFunction_BNode, makeFunction_BNode, makeFunction_IRI, makeFunction_IRI, makeFunction_URI, makeFunction_URI, preConditionAnnotation, resolveIRI, resolvePName, resolveQuotedIRI, setAccGraph, setAllowAggregatesInExpressions, setBase, setBNodesAreAllowed, setBNodesAreVariables, setInConstructTemplate, setPrefix, setPrologue, startAggregate, startBasicGraphPattern, startGroup, startTriplesBlock, stripChars, stripQuotes, stripQuotes3, stripSign, throwParseException, throwParseException, unescape, unescapePName, unescapeUnicode, warnDeprecation
-
-
-
-
Method Detail
-
startQuery
protected final void startQuery()
Constructor.- Overrides:
startQuery
in classSPARQLParserBase
-
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 classSPARQLParserBase
-
newSubQuery
protected Query newSubQuery(Prologue progloue)
- Overrides:
newSubQuery
in classSPARQLParserBase
-
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:
- -
-
-