Package com.stardog.stark.io
Class TrigParserWithRules
java.lang.Object
com.stardog.stark.io.turtle.TurtleParser
com.stardog.stark.io.trig.TrigParser
com.stardog.stark.io.TrigParserWithRules
- All Implemented Interfaces:
RDFParser
Extended
TrigParser which includes support for embedded rules.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidparseBlock(IOParserContext theContext, StringBuilder sb, String blockName) protected booleanparseDirective(TurtleParserContext theContext, String directive) protected voidparseKeyword(IOParserContext theContext, StringBuilder sb, String expected) protected voidparseRule(IOParserContext theContext, Resource ruleID) protected ResourceparseRuleID(IOParserContext theContext) Methods inherited from class com.stardog.stark.io.trig.TrigParser
format, parseGraph, parseStatement, parseTriplesMethods 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
-
TrigParserWithRules
public TrigParserWithRules()
-
-
Method Details
-
parseDirective
protected boolean parseDirective(TurtleParserContext theContext, String directive) throws IOException - Overrides:
parseDirectivein classTrigParser- Throws:
IOException
-
parseRuleID
protected Resource parseRuleID(IOParserContext theContext) throws IOException, InvalidRDF, RDFHandlerException - Throws:
IOExceptionInvalidRDFRDFHandlerException
-
parseRule
protected void parseRule(IOParserContext theContext, Resource ruleID) throws IOException, InvalidRDF, RDFHandlerException - Throws:
IOExceptionInvalidRDFRDFHandlerException
-
parseBlock
protected void parseBlock(IOParserContext theContext, StringBuilder sb, String blockName) throws IOException, InvalidRDF - Throws:
IOExceptionInvalidRDF
-
parseKeyword
protected void parseKeyword(IOParserContext theContext, StringBuilder sb, String expected) throws IOException, InvalidRDF, RDFHandlerException - Throws:
IOExceptionInvalidRDFRDFHandlerException
-