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 RDFFormat
format()
The format this parser can parseprotected boolean
parseDirective(TurtleParserContext theContext, java.lang.String directive)
protected void
parseGraph(TurtleParserContext theContext, boolean theGraphKeywordWasUsed)
protected void
parseStatement(TurtleParserContext theContext)
protected void
parseTriples(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:
format
in interfaceRDFParser
- Overrides:
format
in classTurtleParser
- Returns:
- the format
-
parseStatement
protected void parseStatement(@Nonnull TurtleParserContext theContext) throws java.io.IOException
- Overrides:
parseStatement
in classTurtleParser
- Throws:
java.io.IOException
-
parseDirective
protected boolean parseDirective(TurtleParserContext theContext, java.lang.String directive) throws java.io.IOException
- Overrides:
parseDirective
in 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:
parseTriples
in classTurtleParser
- Throws:
java.io.IOException
-
-