Package org.eclipse.rdf4j.rio.n3
Class N3Parser
java.lang.Object
org.eclipse.rdf4j.rio.helpers.AbstractRDFParser
org.eclipse.rdf4j.rio.turtle.TurtleParser
org.eclipse.rdf4j.rio.n3.N3Parser
- All Implemented Interfaces:
RDFParser
-
Field Summary
Fields inherited from class org.eclipse.rdf4j.rio.turtle.TurtleParser
object, predicate, subject
Fields inherited from class org.eclipse.rdf4j.rio.helpers.AbstractRDFParser
rdfHandler, valueFactory
-
Constructor Summary
ConstructorDescriptionN3Parser()
Creates a new N3Parser that will use aSimpleValueFactory
to create RDF model objects.N3Parser
(ValueFactory valueFactory) Creates a new N3Parser that will use the supplied ValueFactory to create RDF model objects. -
Method Summary
Methods inherited from class org.eclipse.rdf4j.rio.turtle.TurtleParser
getLineNumber, getRDFFormat, getSupportedSettings, parse, parse, parseAnnotation, parseBase, parseCollection, parseDirective, parseImplicitBlank, parseLongString, parseNodeID, parseNumber, parseObject, parseObjectList, parsePredicateObjectList, parsePrefixID, parseQNameOrBoolean, parseQuotedLiteral, parseQuotedString, parseStatement, parseString, parseSubject, parseTriples, parseTripleValue, parseURI, parseValue, peekCodePoint, peekIsTripleValue, processComment, readCodePoint, reportError, reportFatalError, reportFatalError, reportLocation, reportStatement, reportWarning, skipWSC, throwEOFException, unread, unread, verifyCharacterOrFail
Methods inherited from class org.eclipse.rdf4j.rio.helpers.AbstractRDFParser
clear, clearBNodeIDMap, createBNode, createBNode, createLiteral, createLiteral, createNode, createNode, createStatement, createStatement, createURI, getNamespace, getParseErrorListener, getParseLocationListener, getParserConfig, getRDFHandler, initializeNamespaceTableFromConfiguration, preserveBNodeIDs, reportError, reportError, reportError, reportError, reportFatalError, reportFatalError, reportFatalError, reportLocation, reportWarning, resolveURI, set, setBaseURI, setBaseURI, setNamespace, setParseErrorListener, setParseLocationListener, setParserConfig, setPreserveBNodeIDs, setRDFHandler, setValueFactory
-
Constructor Details
-
N3Parser
public N3Parser()Creates a new N3Parser that will use aSimpleValueFactory
to create RDF model objects. -
N3Parser
Creates a new N3Parser that will use the supplied ValueFactory to create RDF model objects.- Parameters:
valueFactory
- A ValueFactory.
-
-
Method Details
-
parsePredicate
- Overrides:
parsePredicate
in classTurtleParser
- Throws:
IOException
RDFParseException
RDFHandlerException
-