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
ExtendedTrigParser
which 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 void
parseBlock(IOParserContext theContext, java.lang.StringBuilder sb, java.lang.String blockName)
protected boolean
parseDirective(TurtleParserContext theContext, java.lang.String directive)
protected void
parseKeyword(IOParserContext theContext, java.lang.StringBuilder sb, java.lang.String expected)
protected void
parseRule(IOParserContext theContext, Resource ruleID)
protected Resource
parseRuleID(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:
parseDirective
in classTrigParser
- Throws:
java.io.IOException
-
parseRuleID
protected Resource parseRuleID(IOParserContext theContext) throws java.io.IOException, InvalidRDF, RDFHandlerException
- Throws:
java.io.IOException
InvalidRDF
RDFHandlerException
-
parseRule
protected void parseRule(IOParserContext theContext, Resource ruleID) throws java.io.IOException, InvalidRDF, RDFHandlerException
- Throws:
java.io.IOException
InvalidRDF
RDFHandlerException
-
parseBlock
protected void parseBlock(IOParserContext theContext, java.lang.StringBuilder sb, java.lang.String blockName) throws java.io.IOException, InvalidRDF
- Throws:
java.io.IOException
InvalidRDF
-
parseKeyword
protected void parseKeyword(IOParserContext theContext, java.lang.StringBuilder sb, java.lang.String expected) throws java.io.IOException, InvalidRDF, RDFHandlerException
- Throws:
java.io.IOException
InvalidRDF
RDFHandlerException
-
-