NQuadsParser
instead@Deprecated public class NQuadsParser extends org.openrdf.rio.helpers.RDFParserBase
Constructor and Description |
---|
NQuadsParser()
Deprecated.
Creates a new NQuadsParser that will use a
ValueFactoryImpl to
create object for resources, bNodes and literals. |
NQuadsParser(org.openrdf.model.ValueFactory valueFactory)
Deprecated.
Creates a new NQuadsParser that will use the supplied
ValueFactory to create RDF model objects.
|
Modifier and Type | Method and Description |
---|---|
org.openrdf.rio.RDFFormat |
getRDFFormat()
Deprecated.
|
void |
parse(InputStream in,
String baseURI)
Deprecated.
Implementation of the parse(InputStream, String) method defined
in the RDFParser interface.
|
void |
parse(Reader reader,
String baseURI)
Deprecated.
Implementation of the parse(Reader, String) method defined in
the RDFParser interface.
|
datatypeHandling, getParseErrorListener, getParseLocationListener, getParserConfig, getRDFHandler, getSupportedSettings, preserveBNodeIDs, setDatatypeHandling, setParseErrorListener, setParseLocationListener, setParserConfig, setPreserveBNodeIDs, setRDFHandler, setStopAtFirstError, setValueFactory, setVerifyData, stopAtFirstError, verifyData
public NQuadsParser()
ValueFactoryImpl
to
create object for resources, bNodes and literals.public NQuadsParser(org.openrdf.model.ValueFactory valueFactory)
valueFactory
- A ValueFactory.public final org.openrdf.rio.RDFFormat getRDFFormat()
public void parse(InputStream in, String baseURI) throws IOException, org.openrdf.rio.RDFParseException, org.openrdf.rio.RDFHandlerException
in
- The InputStream from which to read the data, must not be
null. The InputStream is supposed to contain 7-bit
US-ASCII characters, as per the N-Triples specification.baseURI
- The URI associated with the data in the InputStream, must not be
null.IOException
- If an I/O error occurred while data was read from the InputStream.org.openrdf.rio.RDFParseException
- If the parser has found an unrecoverable parse error.org.openrdf.rio.RDFHandlerException
- If the configured statement handler encountered an unrecoverable
error.IllegalArgumentException
- If the supplied input stream or base URI is null.public void parse(Reader reader, String baseURI) throws IOException, org.openrdf.rio.RDFParseException, org.openrdf.rio.RDFHandlerException
reader
- The Reader from which to read the data, must not be null.baseURI
- The URI associated with the data in the Reader, must not be
null.IOException
- If an I/O error occurred while data was read from the InputStream.org.openrdf.rio.RDFParseException
- If the parser has found an unrecoverable parse error.org.openrdf.rio.RDFHandlerException
- If the configured statement handler encountered an unrecoverable
error.IllegalArgumentException
- If the supplied reader or base URI is null.