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
public class TrigParserWithRules extends TrigParser
ExtendedTrigParserwhich includes support for embedded rules.
-
-
Constructor Summary
Constructors Constructor Description TrigParserWithRules()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidparseBlock(IOParserContext theContext, java.lang.StringBuilder sb, java.lang.String blockName)protected booleanparseDirective(TurtleParserContext theContext, java.lang.String directive)protected voidparseKeyword(IOParserContext theContext, java.lang.StringBuilder sb, java.lang.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, parseTriples
-
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
-
parseDirective
protected boolean parseDirective(TurtleParserContext theContext, java.lang.String directive) throws java.io.IOException
- Overrides:
parseDirectivein classTrigParser- Throws:
java.io.IOException
-
parseRuleID
protected Resource parseRuleID(IOParserContext theContext) throws java.io.IOException, InvalidRDF, RDFHandlerException
- Throws:
java.io.IOExceptionInvalidRDFRDFHandlerException
-
parseRule
protected void parseRule(IOParserContext theContext, Resource ruleID) throws java.io.IOException, InvalidRDF, RDFHandlerException
- Throws:
java.io.IOExceptionInvalidRDFRDFHandlerException
-
parseBlock
protected void parseBlock(IOParserContext theContext, java.lang.StringBuilder sb, java.lang.String blockName) throws java.io.IOException, InvalidRDF
- Throws:
java.io.IOExceptionInvalidRDF
-
parseKeyword
protected void parseKeyword(IOParserContext theContext, java.lang.StringBuilder sb, java.lang.String expected) throws java.io.IOException, InvalidRDF, RDFHandlerException
- Throws:
java.io.IOExceptionInvalidRDFRDFHandlerException
-
-