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
Parser for TriG
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Michael Grove
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformat()The format this parser can parseprotected booleanparseDirective(TurtleParserContext theContext, 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
-
Constructor Details
-
TrigParser
public TrigParser()
-
-
Method Details
-
format
The format this parser can parse- Specified by:
formatin interfaceRDFParser- Overrides:
formatin classTurtleParser- Returns:
- the format
-
parseStatement
- Overrides:
parseStatementin classTurtleParser- Throws:
IOException
-
parseDirective
protected boolean parseDirective(TurtleParserContext theContext, String directive) throws IOException - Overrides:
parseDirectivein classTurtleParser- Throws:
IOException
-
parseGraph
protected void parseGraph(@Nonnull TurtleParserContext theContext, boolean theGraphKeywordWasUsed) throws IOException - Throws:
IOException
-
parseTriples
- Overrides:
parseTriplesin classTurtleParser- Throws:
IOException
-