org.openanzo.glitter.syntax.concrete
Class SPARQLParser
java.lang.Object
org.openanzo.glitter.syntax.concrete.SPARQLParserBase
org.openanzo.glitter.syntax.concrete.SPARQLParser
- All Implemented Interfaces:
- SPARQLParserConstants
public class SPARQLParser
- extends SPARQLParserBase
- implements SPARQLParserConstants
| Fields inherited from interface org.openanzo.glitter.syntax.concrete.SPARQLParserConstants |
A, ALPHANUM, AND, ANON, ASC, ASK, BASE, BLANK_NODE_LABEL, BOUND, BY, COMMA, COMMENT, CONSTRUCT, COUNT, DATATYPE, DATATYPEMARKER, DECIMAL, DEFAULT, DESC, DESCRIBE, DISTINCT, DOT, DOUBLE, ECHAR, EOF, EQ, EXPONENT, FALSE, FILTER, FROM, GE, GRAPH, GROUP, GT, HEX, INTEGER, ISBLANK, ISIRI, ISLITERAL, ISURI, LANG, LANGMATCHES, LANGTAG, LBRACKET, LCLETTER, LCURLY, LE, LETTER, LIMIT, LPAREN, LT, MINUS, NAMED, NCCHAR, NCCHAR1, NCCHAR1P, NCNAME, NCNAME_PREFIX, NE, NIL, NOT, NUMBER, OFFSET, OPTIONAL, OR, ORDER, PLUS, PREFIX, Q_IRI_REF, QNAME, QNAME_NS, RBRACKET, RCURLY, REDUCED, REGEX, RPAREN, SAMETERM, SELECT, SEMIC, SLASH, STAR, STR, STRING_LITERAL_LONG1, STRING_LITERAL_LONG2, STRING_LITERAL1, STRING_LITERAL2, tokenImage, TRUE, UCLETTER, UNION, VAR1, VAR2, VARNAME, WHERE, WS |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
token_source
public SPARQLParserTokenManager token_source
token
public Token token
jj_nt
public Token jj_nt
SPARQLParser
public SPARQLParser(java.io.InputStream stream)
SPARQLParser
public SPARQLParser(java.io.InputStream stream,
java.lang.String encoding)
SPARQLParser
public SPARQLParser(java.io.Reader stream)
SPARQLParser
public SPARQLParser(SPARQLParserTokenManager tm)
Query
public final void Query()
throws ParseException
- Throws:
ParseException
Prolog
public final void Prolog()
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 GraphPattern SelectQuery()
throws ParseException
- Throws:
ParseException
ConstructQuery
public final GraphPattern ConstructQuery()
throws ParseException
- Throws:
ParseException
DescribeQuery
public final GraphPattern DescribeQuery()
throws ParseException
- Throws:
ParseException
AskQuery
public final GraphPattern AskQuery()
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.net.URI SourceSelector()
throws ParseException
- Throws:
ParseException
WhereClause
public final GraphPattern WhereClause()
throws ParseException
- Throws:
ParseException
GroupByClause
public final Variable[] GroupByClause()
throws ParseException
- Throws:
ParseException
SolutionModifier
public final void SolutionModifier()
throws ParseException
- Throws:
ParseException
OrderClause
public final void OrderClause()
throws ParseException
- Throws:
ParseException
OrderCondition
public final OrderingCondition 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
GroupGraphPattern
public final Group GroupGraphPattern()
throws ParseException
- Throws:
ParseException
GroupElement
public final Group GroupElement(Group g)
throws ParseException
- Throws:
ParseException
GraphPattern
public final void GraphPattern(Group g)
throws ParseException
- Throws:
ParseException
BasicGraphPattern
public final BGP BasicGraphPattern()
throws ParseException
- Throws:
ParseException
BlockOfTriples
public final BGP BlockOfTriples()
throws ParseException
- Throws:
ParseException
GraphPatternNotTriples
public final GraphPattern GraphPatternNotTriples(Group g)
throws ParseException
- Throws:
ParseException
OptionalGraphPattern
public final Group OptionalGraphPattern()
throws ParseException
- Throws:
ParseException
GraphGraphPattern
public final Graph GraphGraphPattern()
throws ParseException
- Throws:
ParseException
GroupOrUnionGraphPattern
public final GraphPattern GroupOrUnionGraphPattern()
throws ParseException
- Throws:
ParseException
Constraint
public final Expression Constraint()
throws ParseException
- Throws:
ParseException
FunctionCall
public final Expression FunctionCall()
throws ParseException
- Throws:
ParseException
ArgList
public final java.util.List<Expression> ArgList()
throws ParseException
- Throws:
ParseException
ConstructTemplate
public final java.util.ArrayList<TriplePatternNode> ConstructTemplate()
throws ParseException
- Throws:
ParseException
ConstructTriples
public final void ConstructTriples(java.util.ArrayList<TriplePatternNode> triples)
throws ParseException
- Throws:
ParseException
TriplesSameSubject
public final void TriplesSameSubject(java.util.ArrayList<TriplePatternNode> accumulatedTriples)
throws ParseException
- Throws:
ParseException
PropertyList
public final void PropertyList(TriplePatternComponent s,
java.util.ArrayList<TriplePatternNode> accumulatedTriples)
throws ParseException
- Throws:
ParseException
PropertyListNotEmpty
public final void PropertyListNotEmpty(TriplePatternComponent s,
java.util.ArrayList<TriplePatternNode> accumulatedTriples)
throws ParseException
- Throws:
ParseException
ObjectList
public final void ObjectList(TriplePatternComponent s,
TriplePatternComponent p,
java.util.ArrayList<TriplePatternNode> accumulatedTriples)
throws ParseException
- Throws:
ParseException
Verb
public final TriplePatternComponent Verb()
throws ParseException
- Throws:
ParseException
TriplesNode
public final TriplePatternComponent TriplesNode(java.util.ArrayList<TriplePatternNode> accumulatedTriples)
throws ParseException
- Throws:
ParseException
BlankNodePropertyList
public final TriplePatternComponent BlankNodePropertyList(java.util.ArrayList<TriplePatternNode> accumulatedTriples)
throws ParseException
- Throws:
ParseException
Collection
public final TriplePatternComponent Collection(java.util.ArrayList<TriplePatternNode> accumulatedTriples)
throws ParseException
- Throws:
ParseException
GraphNode
public final TriplePatternComponent GraphNode(java.util.ArrayList<TriplePatternNode> accumulatedTriples)
throws ParseException
- Throws:
ParseException
VarOrTerm
public final TriplePatternComponent VarOrTerm()
throws ParseException
- Throws:
ParseException
VarOrIRIref
public final TriplePatternComponent VarOrIRIref()
throws ParseException
- Throws:
ParseException
VarOrBlankNodeOrIRIref
public final TriplePatternComponent VarOrBlankNodeOrIRIref()
throws ParseException
- Throws:
ParseException
Var
public final Variable Var()
throws ParseException
- Throws:
ParseException
GraphTerm
public final TriplePatternComponent GraphTerm()
throws ParseException
- Throws:
ParseException
Expression
public final Expression Expression()
throws ParseException
- Throws:
ParseException
ConditionalOrExpression
public final Expression ConditionalOrExpression()
throws ParseException
- Throws:
ParseException
ConditionalAndExpression
public final Expression ConditionalAndExpression()
throws ParseException
- Throws:
ParseException
ValueLogical
public final Expression ValueLogical()
throws ParseException
- Throws:
ParseException
RelationalExpression
public final Expression RelationalExpression()
throws ParseException
- Throws:
ParseException
NumericExpression
public final Expression NumericExpression()
throws ParseException
- Throws:
ParseException
AdditiveExpression
public final Expression AdditiveExpression()
throws ParseException
- Throws:
ParseException
MultiplicativeExpression
public final Expression MultiplicativeExpression()
throws ParseException
- Throws:
ParseException
UnaryExpression
public final Expression UnaryExpression()
throws ParseException
- Throws:
ParseException
PrimaryExpression
public final Expression PrimaryExpression()
throws ParseException
- Throws:
ParseException
BrackettedExpression
public final Expression BrackettedExpression()
throws ParseException
- Throws:
ParseException
BuiltInCall
public final FunctionCall BuiltInCall()
throws ParseException
- Throws:
ParseException
RegexExpression
public final FunctionCall RegexExpression()
throws ParseException
- Throws:
ParseException
IRIrefOrFunction
public final Expression IRIrefOrFunction()
throws ParseException
- Throws:
ParseException
RDFLiteral
public final Literal RDFLiteral()
throws ParseException
- Throws:
ParseException
NumericLiteral
public final TypedLiteral NumericLiteral(java.lang.String prefix)
throws ParseException
- Throws:
ParseException
BooleanLiteral
public final TypedLiteral BooleanLiteral()
throws ParseException
- Throws:
ParseException
String
public final java.lang.String String()
throws ParseException
- Throws:
ParseException
IRIref
public final java.net.URI IRIref()
throws ParseException
- Throws:
ParseException
QName
public final java.net.URI QName()
throws ParseException
- Throws:
ParseException
BlankNode
public final BlankNodeManager.BlankNode BlankNode()
throws ParseException
- Throws:
ParseException
ReInit
public void ReInit(java.io.InputStream stream)
ReInit
public void ReInit(java.io.InputStream stream,
java.lang.String encoding)
ReInit
public void ReInit(java.io.Reader stream)
ReInit
public void ReInit(SPARQLParserTokenManager tm)
getNextToken
public final Token getNextToken()
getToken
public final Token getToken(int index)
generateParseException
public ParseException generateParseException()
enable_tracing
public final void enable_tracing()
disable_tracing
public final void disable_tracing()
Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.