Package org.eclipse.rdf4j.rio.nquads
Class NQuadsParser
java.lang.Object
org.eclipse.rdf4j.rio.helpers.AbstractRDFParser
org.eclipse.rdf4j.rio.ntriples.NTriplesParser
org.eclipse.rdf4j.rio.nquads.NQuadsParser
- All Implemented Interfaces:
RDFParser
RDF parser implementation for the
N-Quads
RDF format, extending the Rio N-Triples parser. A
specification of N-Quads can be found here. This parser is not
thread-safe, therefore its public methods are synchronized.- Author:
- Joshua Shinavier
-
Field Summary
Fields inherited from class org.eclipse.rdf4j.rio.ntriples.NTriplesParser
currentIndex, lineChars, lineNo, object, predicate, reader, subject
Fields inherited from class org.eclipse.rdf4j.rio.helpers.AbstractRDFParser
rdfHandler, valueFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the RDF format that this parser can parse.protected void
handleStatement
(boolean ignoredAnError) protected void
protected void
Methods inherited from class org.eclipse.rdf4j.rio.ntriples.NTriplesParser
assertLineTerminates, clear, createURI, getSupportedSettings, parse, parse, parseIRI, parseNode, parseObject, parsePredicate, parseSubject, reportError, reportError, reportFatalError, reportFatalError, reportWarning, shouldParseLine, skipWhitespace, throwEOFException
Methods inherited from class org.eclipse.rdf4j.rio.helpers.AbstractRDFParser
clearBNodeIDMap, createBNode, createBNode, createLiteral, createLiteral, createLiteral, createNode, createNode, createStatement, createStatement, getNamespace, getParseErrorListener, getParseLocationListener, getParserConfig, getRDFHandler, initializeNamespaceTableFromConfiguration, preserveBNodeIDs, reportError, reportError, reportError, reportFatalError, reportFatalError, reportFatalError, reportLocation, reportWarning, resolveURI, set, setBaseURI, setBaseURI, setNamespace, setParseErrorListener, setParseLocationListener, setParserConfig, setPreserveBNodeIDs, setRDFHandler, setValueFactory
-
Field Details
-
context
-
-
Constructor Details
-
NQuadsParser
public NQuadsParser() -
NQuadsParser
-
-
Method Details
-
getRDFFormat
Description copied from interface:RDFParser
Gets the RDF format that this parser can parse.- Specified by:
getRDFFormat
in interfaceRDFParser
- Overrides:
getRDFFormat
in classNTriplesParser
-
parseStatement
- Overrides:
parseStatement
in classNTriplesParser
- Throws:
RDFParseException
RDFHandlerException
-
parseContext
protected void parseContext() -
handleStatement
protected void handleStatement(boolean ignoredAnError) - Overrides:
handleStatement
in classNTriplesParser
-