public class TriXParser extends RDFParserBase
RDFParser.DatatypeHandlingrdfHandler, valueFactory| Constructor and Description |
|---|
TriXParser()
Creates a new TriXParser that will use a
ValueFactoryImpl to
create objects for resources, bNodes, literals and statements. |
TriXParser(ValueFactory valueFactory)
Creates a new TriXParser that will use the supplied ValueFactory to create
objects for resources, bNodes, literals and statements.
|
| Modifier and Type | Method and Description |
|---|---|
RDFFormat |
getRDFFormat()
Gets the RDF format that this parser can parse.
|
void |
parse(InputStream in,
String baseURI)
Parses the data from the supplied InputStream, using the supplied baseURI
to resolve any relative URI references.
|
void |
parse(Reader reader,
String baseURI)
Parses the data from the supplied Reader, using the supplied baseURI to
resolve any relative URI references.
|
clear, clearBNodeIDMap, createBNode, createBNode, createLiteral, createLiteral, createStatement, createStatement, createURI, datatypeHandling, getNamespace, getParseErrorListener, getParseLocationListener, getParserConfig, getRDFHandler, getSupportedSettings, initializeNamespaceTableFromConfiguration, preserveBNodeIDs, reportError, reportError, reportError, reportFatalError, reportFatalError, reportFatalError, reportFatalError, reportLocation, reportWarning, reportWarning, resolveURI, setBaseURI, setBaseURI, setDatatypeHandling, setNamespace, setParseErrorListener, setParseLocationListener, setParserConfig, setPreserveBNodeIDs, setRDFHandler, setStopAtFirstError, setValueFactory, setVerifyData, stopAtFirstError, verifyDatapublic TriXParser()
ValueFactoryImpl to
create objects for resources, bNodes, literals and statements.public TriXParser(ValueFactory valueFactory)
valueFactory - A ValueFactory.public final RDFFormat getRDFFormat()
RDFParserpublic void parse(InputStream in, String baseURI) throws IOException, RDFParseException, RDFHandlerException
RDFParserin - The InputStream from which to read the data.baseURI - The URI associated with the data in the InputStream.IOException - If an I/O error occurred while data was read from the InputStream.RDFParseException - If the parser has found an unrecoverable parse error.RDFHandlerException - If the configured statement handler has encountered an
unrecoverable error.public void parse(Reader reader, String baseURI) throws IOException, RDFParseException, RDFHandlerException
RDFParserreader - The Reader from which to read the data.baseURI - The URI associated with the data in the InputStream.IOException - If an I/O error occurred while data was read from the InputStream.RDFParseException - If the parser has found an unrecoverable parse error.RDFHandlerException - If the configured statement handler has encountered an
unrecoverable error.Copyright © 2001–2015 Aduna. All rights reserved.