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 SPARQLExtQueryasSPARQLExtQuery()If possible, cast the query to a SPARQL-Generate Query.protected SPARQLExtQueryendSubQueryExt(int line, int column)Finishes the parsing of a sub GENERATE query.protected QuerynewSubQuery(Prologue progloue)protected voidstartQuery()Constructor.protected voidstartSubQueryExt()Starts parsing a sub GENERATE query.protected voidstartSubSelect(int line, int col)Starts parsing a sub SELECT query.StringstripQuotes(String string, int i, int j)Remove first i and last j characters (e.g.static StringunescapeStr(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:
 startQueryin 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:
 startSubSelectin classSPARQLParserBase
 
- 
newSubQuery
protected Query newSubQuery(Prologue progloue)
- Overrides:
 newSubQueryin 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:
 - -
 
 
 - 
 
 -