Package com.stardog.stark.io.trig
Class TrigParser
- java.lang.Object
-
- com.stardog.stark.io.turtle.TurtleParser
-
- com.stardog.stark.io.trig.TrigParser
-
- All Implemented Interfaces:
RDFParser
- Direct Known Subclasses:
SPARQLUpdateDataBlockParser,TrigParserWithRules
public class TrigParser extends TurtleParser
Parser for TriG
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Michael Grove
-
-
Constructor Summary
Constructors Constructor Description TrigParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RDFFormatformat()The format this parser can parseprotected booleanparseDirective(TurtleParserContext theContext, java.lang.String directive)protected voidparseGraph(TurtleParserContext theContext, boolean theGraphKeywordWasUsed)protected voidparseStatement(TurtleParserContext theContext)protected voidparseTriples(TurtleParserContext theContext)-
Methods inherited from class com.stardog.stark.io.turtle.TurtleParser
parse, parseBase, parseCollection, parseEmbeddedTriple, parseImplicitBlank, parseLongString, parseNodeID, parseNumber, parseObject, parseObjectList, parsePredicate, parsePredicateObjectList, parsePredicateWithEdgeProperties, parsePrefixID, parseQNameOrBoolean, parseQuotedLiteral, parseQuotedString, parseString, parseSubject, parseSubjectResource, parseURI, parseValue, processComment, skipWSC
-
-
-
-
Method Detail
-
format
@Nonnull public RDFFormat format()
The format this parser can parse- Specified by:
formatin interfaceRDFParser- Overrides:
formatin classTurtleParser- Returns:
- the format
-
parseStatement
protected void parseStatement(@Nonnull TurtleParserContext theContext) throws java.io.IOException- Overrides:
parseStatementin classTurtleParser- Throws:
java.io.IOException
-
parseDirective
protected boolean parseDirective(TurtleParserContext theContext, java.lang.String directive) throws java.io.IOException
- Overrides:
parseDirectivein classTurtleParser- Throws:
java.io.IOException
-
parseGraph
protected void parseGraph(@Nonnull TurtleParserContext theContext, boolean theGraphKeywordWasUsed) throws java.io.IOException- Throws:
java.io.IOException
-
parseTriples
protected void parseTriples(@Nonnull TurtleParserContext theContext) throws java.io.IOException- Overrides:
parseTriplesin classTurtleParser- Throws:
java.io.IOException
-
-