Package org.apache.jena.sparql.lang.arq
Class ARQParser
- java.lang.Object
-
- org.apache.jena.sparql.lang.QueryParserBase
-
- org.apache.jena.sparql.lang.SPARQLParserBase
-
- org.apache.jena.sparql.lang.arq.ARQParser
-
- All Implemented Interfaces:
ARQParserConstants
public class ARQParser extends SPARQLParserBase implements ARQParserConstants
-
-
Field Summary
Fields Modifier and Type Field Description Token
jj_nt
Next token.Token
token
Current token.ARQParserTokenManager
token_source
Generated Token Manager.-
Fields inherited from class org.apache.jena.sparql.lang.QueryParserBase
ParserLoggerName
-
Fields inherited from interface org.apache.jena.sparql.lang.arq.ARQParserConstants
A2Z, A2ZN, ABS, ADD, AGG, ALL, AND, ANON, AS, ASC, ASK, ASSIGN, AT, AVG, BANG, BASE, BIND, BLANK_NODE_LABEL, BNODE, BOM, BOUND, BY, CALL, CARAT, CAST, CEIL, CLEAR, COALESCE, COLON, COMMA, CONCAT, CONSTRUCT, CONTAINS, COPY, COUNT, CREATE, DATA, DATATYPE, DAY, DECIMAL, DECIMAL_NEGATIVE, DECIMAL_POSITIVE, DEFAULT, DELETE, DELETE_DATA, DELETE_WHERE, DESC, DESCRIBE, DFT, DIGITS, DISTINCT, DOT, DOUBLE, DOUBLE_NEGATIVE, DOUBLE_POSITIVE, DROP, DTYPE, ECHAR, ENCODE_FOR_URI, EOF, EQ, EXISTS, EXPONENT, FALSE, FILTER, FLOOR, FPATH, FROM, GE, GRAPH, GROUP, GROUP_CONCAT, GT, GT2, HAVING, HEX, HOURS, IDIV, IF, IN, INSERT, INSERT_DATA, INTEGER, INTEGER_NEGATIVE, INTEGER_POSITIVE, INTO, IRI, IRIref, IS_BLANK, IS_IRI, IS_LITERAL, IS_NUMERIC, IS_TRIPLE, IS_URI, JSON, KW_A, L_ANN, LANG, LANGMATCHES, LANGTAG, LBRACE, LBRACKET, LCASE, LE, LET, LIMIT, LOAD, LPAREN, LT, LT2, MAX, MD5, MEDIAN, META, MIN, MINUS, MINUS_P, MINUTES, MOD, MODE, MONTH, MOVE, MULTI, NAMED, NE, NIL, NOT, NOW, OBJECT, OFFSET, OPTIONAL, ORDER, PERCENT, PLUS, PLX, PN_CHARS, PN_CHARS_BASE, PN_CHARS_U, PN_LOCAL, PN_LOCAL_ESC, PN_PREFIX, PNAME_LN, PNAME_NS, PREDICATE, PREFIX, QMARK, QUOTE_3D, QUOTE_3S, R_ANN, RAND, RBRACE, RBRACKET, REDUCED, REGEX, REPLACE, ROUND, RPAREN, RPATH, SAME_TERM, SAMPLE, SC_AND, SC_OR, SECONDS, SELECT, SEMICOLON, SEPARATOR, SERVICE, SHA1, SHA224, SHA256, SHA384, SHA512, SHORTEST, SILENT, SINGLE_LINE_COMMENT, SLASH, STAR, STDEV, STDEV_POP, STDEV_SAMP, STR, STRAFTER, STRBEFORE, STRDT, STRENDS, STRING_LITERAL_LONG1, STRING_LITERAL_LONG2, STRING_LITERAL1, STRING_LITERAL2, STRLANG, STRLEN, STRSTARTS, STRUUID, SUBJECT, SUBSTR, SUM, SURROGATE_PAIR, TILDE, TIMEZONE, TO, tokenImage, TRIPLE, TRUE, TZ, UCASE, UCHAR, UCHAR4, UCHAR8, UNDEF, UNION, UNKNOWN, URI, USING, UUID, VALUES, VAR_POP, VAR_SAMP, VAR1, VAR2, VARIANCE, VARNAME, VBAR, VERSION, WHERE, WITH, WS, WSC, YEAR
-
-
Constructor Summary
Constructors Constructor Description ARQParser(java.io.InputStream stream)
Constructor with InputStream.ARQParser(java.io.InputStream stream, java.lang.String encoding)
Constructor with InputStream and supplied encodingARQParser(java.io.Reader stream)
Constructor.ARQParser(ARQParserTokenManager tm)
Constructor with generated Token Manager.
-
Method Summary
-
Methods inherited from class org.apache.jena.sparql.lang.SPARQLParserBase
getQuery, setQuery, setUpdate
-
Methods inherited from class org.apache.jena.sparql.lang.QueryParserBase
getPrologue, setPrologue, throwParseException, throwParseException
-
-
-
-
Field Detail
-
token_source
public ARQParserTokenManager token_source
Generated Token Manager.
-
token
public Token token
Current token.
-
jj_nt
public Token jj_nt
Next token.
-
-
Constructor Detail
-
ARQParser
public ARQParser(java.io.InputStream stream)
Constructor with InputStream.
-
ARQParser
public ARQParser(java.io.InputStream stream, java.lang.String encoding)
Constructor with InputStream and supplied encoding
-
ARQParser
public ARQParser(java.io.Reader stream)
Constructor.
-
ARQParser
public ARQParser(ARQParserTokenManager tm)
Constructor with generated Token Manager.
-
-
Method Detail
-
QueryUnit
public final void QueryUnit() throws ParseException
- Throws:
ParseException
-
Query
public final void Query() throws ParseException
- Throws:
ParseException
-
UpdateUnit
public final void UpdateUnit() throws ParseException
- Throws:
ParseException
-
ByteOrderMark
public final void ByteOrderMark() throws ParseException
- Throws:
ParseException
-
Prologue
public final void Prologue() throws ParseException
- Throws:
ParseException
-
BaseDecl
public final void BaseDecl() throws ParseException
- Throws:
ParseException
-
PrefixDecl
public final void PrefixDecl() throws ParseException
- Throws:
ParseException
-
SelectQuery
public final void SelectQuery() throws ParseException
- Throws:
ParseException
-
SubSelect
public final void SubSelect() throws ParseException
- Throws:
ParseException
-
SelectClause
public final void SelectClause() throws ParseException
- Throws:
ParseException
-
ConstructQuery
public final void ConstructQuery() throws ParseException
- Throws:
ParseException
-
DescribeQuery
public final void DescribeQuery() throws ParseException
- Throws:
ParseException
-
AskQuery
public final void AskQuery() throws ParseException
- Throws:
ParseException
-
JsonQuery
public final void JsonQuery() throws ParseException
- Throws:
ParseException
-
JsonClause
public final void JsonClause() throws ParseException
- Throws:
ParseException
-
JsonObjectMember
public final void JsonObjectMember() throws ParseException
- Throws:
ParseException
-
DatasetClause
public final void DatasetClause() throws ParseException
- Throws:
ParseException
-
DefaultGraphClause
public final void DefaultGraphClause() throws ParseException
- Throws:
ParseException
-
NamedGraphClause
public final void NamedGraphClause() throws ParseException
- Throws:
ParseException
-
SourceSelector
public final java.lang.String SourceSelector() throws ParseException
- Throws:
ParseException
-
WhereClause
public final void WhereClause() throws ParseException
- Throws:
ParseException
-
SolutionModifier
public final void SolutionModifier() throws ParseException
- Throws:
ParseException
-
GroupClause
public final void GroupClause() throws ParseException
- Throws:
ParseException
-
GroupCondition
public final void GroupCondition() throws ParseException
- Throws:
ParseException
-
HavingClause
public final void HavingClause() throws ParseException
- Throws:
ParseException
-
HavingCondition
public final void HavingCondition() throws ParseException
- Throws:
ParseException
-
OrderClause
public final void OrderClause() throws ParseException
- Throws:
ParseException
-
OrderCondition
public final void OrderCondition() throws ParseException
- Throws:
ParseException
-
LimitOffsetClauses
public final void LimitOffsetClauses() throws ParseException
- Throws:
ParseException
-
LimitClause
public final void LimitClause() throws ParseException
- Throws:
ParseException
-
OffsetClause
public final void OffsetClause() throws ParseException
- Throws:
ParseException
-
ValuesClause
public final void ValuesClause() throws ParseException
- Throws:
ParseException
-
Update
public final void Update() throws ParseException
- Throws:
ParseException
-
Update1
public final void Update1() throws ParseException
- Throws:
ParseException
-
Load
public final Update Load() throws ParseException
- Throws:
ParseException
-
Clear
public final Update Clear() throws ParseException
- Throws:
ParseException
-
Drop
public final Update Drop() throws ParseException
- Throws:
ParseException
-
Create
public final Update Create() throws ParseException
- Throws:
ParseException
-
Add
public final Update Add() throws ParseException
- Throws:
ParseException
-
Move
public final Update Move() throws ParseException
- Throws:
ParseException
-
Copy
public final Update Copy() throws ParseException
- Throws:
ParseException
-
InsertData
public final void InsertData() throws ParseException
- Throws:
ParseException
-
DeleteData
public final void DeleteData() throws ParseException
- Throws:
ParseException
-
DeleteWhere
public final Update DeleteWhere() throws ParseException
- Throws:
ParseException
-
Modify
public final Update Modify() throws ParseException
- Throws:
ParseException
-
DeleteClause
public final void DeleteClause(UpdateModify up) throws ParseException
- Throws:
ParseException
-
InsertClause
public final void InsertClause(UpdateModify up) throws ParseException
- Throws:
ParseException
-
UsingClause
public final void UsingClause(UpdateWithUsing update) throws ParseException
- Throws:
ParseException
-
GraphOrDefault
public final Target GraphOrDefault() throws ParseException
- Throws:
ParseException
-
GraphRef
public final Node GraphRef() throws ParseException
- Throws:
ParseException
-
GraphRefAll
public final Target GraphRefAll() throws ParseException
- Throws:
ParseException
-
QuadPattern
public final void QuadPattern(QuadAcc acc) throws ParseException
- Throws:
ParseException
-
QuadData
public final void QuadData(QuadDataAccSink acc) throws ParseException
- Throws:
ParseException
-
Quads
public final void Quads(QuadAccSink acc) throws ParseException
- Throws:
ParseException
-
QuadsNotTriples
public final void QuadsNotTriples(QuadAccSink acc) throws ParseException
- Throws:
ParseException
-
ConstructQuads
public final void ConstructQuads(QuadAcc acc) throws ParseException
- Throws:
ParseException
-
ConstructQuadsNotTriples
public final void ConstructQuadsNotTriples(QuadAccSink acc) throws ParseException
- Throws:
ParseException
-
TriplesTemplate
public final void TriplesTemplate(TripleCollector acc) throws ParseException
- Throws:
ParseException
-
GroupGraphPattern
public final Element GroupGraphPattern() throws ParseException
- Throws:
ParseException
-
GroupGraphPatternSub
public final Element GroupGraphPatternSub() throws ParseException
- Throws:
ParseException
-
TriplesBlock
public final Element TriplesBlock(ElementPathBlock acc) throws ParseException
- Throws:
ParseException
-
GraphPatternNotTriples
public final Element GraphPatternNotTriples() throws ParseException
- Throws:
ParseException
-
OptionalGraphPattern
public final Element OptionalGraphPattern() throws ParseException
- Throws:
ParseException
-
GraphGraphPattern
public final Element GraphGraphPattern() throws ParseException
- Throws:
ParseException
-
ServiceGraphPattern
public final Element ServiceGraphPattern() throws ParseException
- Throws:
ParseException
-
Bind
public final Element Bind() throws ParseException
- Throws:
ParseException
-
InlineData
public final Element InlineData() throws ParseException
- Throws:
ParseException
-
DataBlock
public final void DataBlock() throws ParseException
- Throws:
ParseException
-
InlineDataOneVar
public final void InlineDataOneVar() throws ParseException
- Throws:
ParseException
-
InlineDataFull
public final void InlineDataFull() throws ParseException
- Throws:
ParseException
-
DataBlockValue
public final Node DataBlockValue() throws ParseException
- Throws:
ParseException
-
Assignment
public final Element Assignment() throws ParseException
- Throws:
ParseException
-
ExistsElt
public final Element ExistsElt() throws ParseException
- Throws:
ParseException
-
NotExistsElt
public final Element NotExistsElt() throws ParseException
- Throws:
ParseException
-
MinusGraphPattern
public final Element MinusGraphPattern() throws ParseException
- Throws:
ParseException
-
GroupOrUnionGraphPattern
public final Element GroupOrUnionGraphPattern() throws ParseException
- Throws:
ParseException
-
Filter
public final Element Filter() throws ParseException
- Throws:
ParseException
-
Constraint
public final Expr Constraint() throws ParseException
- Throws:
ParseException
-
FunctionCall
public final Expr FunctionCall() throws ParseException
- Throws:
ParseException
-
ArgList
public final Args ArgList() throws ParseException
- Throws:
ParseException
-
ExpressionList
public final ExprList ExpressionList() throws ParseException
- Throws:
ParseException
-
ConstructTemplate
public final Template ConstructTemplate() throws ParseException
- Throws:
ParseException
-
ConstructTriples
public final void ConstructTriples(TripleCollector acc) throws ParseException
- Throws:
ParseException
-
TriplesSameSubject
public final void TriplesSameSubject(TripleCollector acc) throws ParseException
- Throws:
ParseException
-
PropertyList
public final void PropertyList(Node s, TripleCollector acc) throws ParseException
- Throws:
ParseException
-
PropertyListNotEmpty
public final void PropertyListNotEmpty(Node s, TripleCollector acc) throws ParseException
- Throws:
ParseException
-
Verb
public final Node Verb() throws ParseException
- Throws:
ParseException
-
ObjectList
public final void ObjectList(Node s, Node p, Path path, TripleCollector acc) throws ParseException
- Throws:
ParseException
-
Object
public final void Object(Node s, Node p, Path path, TripleCollector acc) throws ParseException
- Throws:
ParseException
-
TriplesSameSubjectPath
public final void TriplesSameSubjectPath(TripleCollector acc) throws ParseException
- Throws:
ParseException
-
PropertyListPath
public final void PropertyListPath(Node s, TripleCollector acc) throws ParseException
- Throws:
ParseException
-
PropertyListPathNotEmpty
public final void PropertyListPathNotEmpty(Node s, TripleCollector acc) throws ParseException
- Throws:
ParseException
-
VerbPath
public final Path VerbPath() throws ParseException
- Throws:
ParseException
-
VerbSimple
public final Node VerbSimple() throws ParseException
- Throws:
ParseException
-
ObjectListPath
public final void ObjectListPath(Node s, Node p, Path path, TripleCollector acc) throws ParseException
- Throws:
ParseException
-
ObjectPath
public final void ObjectPath(Node s, Node p, Path path, TripleCollector acc) throws ParseException
- Throws:
ParseException
-
PathUnit
public final Path PathUnit() throws ParseException
- Throws:
ParseException
-
Path
public final Path Path() throws ParseException
- Throws:
ParseException
-
PathAlternative
public final Path PathAlternative() throws ParseException
- Throws:
ParseException
-
PathSequence
public final Path PathSequence() throws ParseException
- Throws:
ParseException
-
PathElt
public final Path PathElt() throws ParseException
- Throws:
ParseException
-
PathEltOrInverse
public final Path PathEltOrInverse() throws ParseException
- Throws:
ParseException
-
PathMod
public final Path PathMod(Path p) throws ParseException
- Throws:
ParseException
-
PathPrimary
public final Path PathPrimary() throws ParseException
- Throws:
ParseException
-
PathNegatedPropertySet
public final Path PathNegatedPropertySet() throws ParseException
- Throws:
ParseException
-
PathOneInPropertySet
public final P_Path0 PathOneInPropertySet() throws ParseException
- Throws:
ParseException
-
Integer
public final long Integer() throws ParseException
- Throws:
ParseException
-
TriplesNode
public final Node TriplesNode(TripleCollectorMark acc) throws ParseException
- Throws:
ParseException
-
BlankNodePropertyList
public final Node BlankNodePropertyList(TripleCollector acc) throws ParseException
- Throws:
ParseException
-
TriplesNodePath
public final Node TriplesNodePath(TripleCollectorMark acc) throws ParseException
- Throws:
ParseException
-
BlankNodePropertyListPath
public final Node BlankNodePropertyListPath(TripleCollector acc) throws ParseException
- Throws:
ParseException
-
Collection
public final Node Collection(TripleCollectorMark acc) throws ParseException
- Throws:
ParseException
-
CollectionPath
public final Node CollectionPath(TripleCollectorMark acc) throws ParseException
- Throws:
ParseException
-
AnnotationPath
public final void AnnotationPath(TripleCollector acc, Node s, Node p, Path path, Node o) throws ParseException
- Throws:
ParseException
-
Annotation
public final void Annotation(TripleCollector acc, Node s, Node p, Path path, Node o) throws ParseException
- Throws:
ParseException
-
GraphNode
public final Node GraphNode(TripleCollectorMark acc) throws ParseException
- Throws:
ParseException
-
GraphNodePath
public final Node GraphNodePath(TripleCollectorMark acc) throws ParseException
- Throws:
ParseException
-
VarOrTerm
public final Node VarOrTerm() throws ParseException
- Throws:
ParseException
-
TripleTerm
public final Node TripleTerm() throws ParseException
- Throws:
ParseException
-
TripleTermData
public final Node TripleTermData() throws ParseException
- Throws:
ParseException
-
DataValueTerm
public final Node DataValueTerm() throws ParseException
- Throws:
ParseException
-
VarOrIri
public final Node VarOrIri() throws ParseException
- Throws:
ParseException
-
VarOrBlankNodeOrIri
public final Node VarOrBlankNodeOrIri() throws ParseException
- Throws:
ParseException
-
Var
public final Var Var() throws ParseException
- Throws:
ParseException
-
GraphTerm
public final Node GraphTerm() throws ParseException
- Throws:
ParseException
-
Expression
public final Expr Expression() throws ParseException
- Throws:
ParseException
-
ConditionalOrExpression
public final Expr ConditionalOrExpression() throws ParseException
- Throws:
ParseException
-
ConditionalAndExpression
public final Expr ConditionalAndExpression() throws ParseException
- Throws:
ParseException
-
ValueLogical
public final Expr ValueLogical() throws ParseException
- Throws:
ParseException
-
RelationalExpression
public final Expr RelationalExpression() throws ParseException
- Throws:
ParseException
-
NumericExpression
public final Expr NumericExpression() throws ParseException
- Throws:
ParseException
-
AdditiveExpression
public final Expr AdditiveExpression() throws ParseException
- Throws:
ParseException
-
MultiplicativeExpression
public final Expr MultiplicativeExpression() throws ParseException
- Throws:
ParseException
-
UnaryExpression
public final Expr UnaryExpression() throws ParseException
- Throws:
ParseException
-
PrimaryExpression
public final Expr PrimaryExpression() throws ParseException
- Throws:
ParseException
-
ExprVarOrTerm
public final Node ExprVarOrTerm() throws ParseException
- Throws:
ParseException
-
ExprTripleTerm
public final Node ExprTripleTerm() throws ParseException
- Throws:
ParseException
-
BrackettedExpression
public final Expr BrackettedExpression() throws ParseException
- Throws:
ParseException
-
BuiltInCall
public final Expr BuiltInCall() throws ParseException
- Throws:
ParseException
-
RegexExpression
public final Expr RegexExpression() throws ParseException
- Throws:
ParseException
-
SubstringExpression
public final Expr SubstringExpression() throws ParseException
- Throws:
ParseException
-
StrReplaceExpression
public final Expr StrReplaceExpression() throws ParseException
- Throws:
ParseException
-
ExistsFunc
public final Expr ExistsFunc() throws ParseException
- Throws:
ParseException
-
NotExistsFunc
public final Expr NotExistsFunc() throws ParseException
- Throws:
ParseException
-
Aggregate
public final Expr Aggregate() throws ParseException
- Throws:
ParseException
-
iriOrFunction
public final Expr iriOrFunction() throws ParseException
- Throws:
ParseException
-
RDFLiteral
public final Node RDFLiteral() throws ParseException
- Throws:
ParseException
-
NumericLiteral
public final Node NumericLiteral() throws ParseException
- Throws:
ParseException
-
NumericLiteralUnsigned
public final Node NumericLiteralUnsigned() throws ParseException
- Throws:
ParseException
-
NumericLiteralPositive
public final Node NumericLiteralPositive() throws ParseException
- Throws:
ParseException
-
NumericLiteralNegative
public final Node NumericLiteralNegative() throws ParseException
- Throws:
ParseException
-
BooleanLiteral
public final Node BooleanLiteral() throws ParseException
- Throws:
ParseException
-
String
public final java.lang.String String() throws ParseException
- Throws:
ParseException
-
iri
public final java.lang.String iri() throws ParseException
- Throws:
ParseException
-
PrefixedName
public final java.lang.String PrefixedName() throws ParseException
- Throws:
ParseException
-
BlankNode
public final Node BlankNode() throws ParseException
- Throws:
ParseException
-
IRIREF
public final java.lang.String IRIREF() throws ParseException
- Throws:
ParseException
-
ReInit
public void ReInit(java.io.InputStream stream)
Reinitialise.
-
ReInit
public void ReInit(java.io.InputStream stream, java.lang.String encoding)
Reinitialise.
-
ReInit
public void ReInit(java.io.Reader stream)
Reinitialise.
-
ReInit
public void ReInit(ARQParserTokenManager tm)
Reinitialise.
-
getNextToken
public final Token getNextToken()
Get the next Token.
-
getToken
public final Token getToken(int index)
Get the specific Token.
-
generateParseException
public ParseException generateParseException()
Generate ParseException.
-
enable_tracing
public final void enable_tracing()
Enable tracing.
-
disable_tracing
public final void disable_tracing()
Disable tracing.
-
setHandler
public void setHandler(JSONHandler handler)
-
-