public class TriXParser extends XMLReaderBasedParser implements ErrorHandler
RDFParser.DatatypeHandlingrdfHandler, valueFactory| Constructor and Description |
|---|
TriXParser()
Creates a new TriXParser that will use a
SimpleValueFactory to create objects for resources, bNodes,
literals and statements. |
TriXParser(org.eclipse.rdf4j.model.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 |
|---|---|
protected org.eclipse.rdf4j.model.Literal |
createLiteral(String label,
String lang,
org.eclipse.rdf4j.model.IRI datatype) |
void |
error(SAXParseException exception)
Implementation of SAX ErrorHandler.error
|
void |
fatalError(SAXParseException exception)
Implementation of SAX ErrorHandler.fatalError
|
RDFFormat |
getRDFFormat() |
Collection<RioSetting<?>> |
getSupportedSettings() |
void |
parse(InputStream in,
String baseURI) |
void |
parse(Reader reader,
String baseURI) |
protected void |
reportError(String msg,
RioSetting<Boolean> setting)
Overrides
AbstractRDFParser.reportError(String, RioSetting), adding line- and column number information
to the error. |
protected void |
reportFatalError(Exception e)
Overrides
AbstractRDFParser.reportFatalError(Exception), adding line- and column number information to
the error. |
protected void |
reportFatalError(String msg)
Overrides
AbstractRDFParser.reportFatalError(String), adding line- and column number information to the
error. |
protected void |
reportWarning(String msg)
Overrides
AbstractRDFParser.reportWarning(String), adding line- and column number information to the
error. |
void |
warning(SAXParseException exception)
Implementation of SAX ErrorHandler.warning
|
getCompulsoryXmlFeatureSettings, getCompulsoryXmlPropertySettings, getOptionalXmlFeatureSettings, getOptionalXmlPropertySettings, getXMLReaderclear, clearBNodeIDMap, createBNode, createBNode, createLiteral, createNode, createNode, createStatement, createStatement, createURI, datatypeHandling, getNamespace, getParseErrorListener, getParseLocationListener, getParserConfig, getRDFHandler, initializeNamespaceTableFromConfiguration, preserveBNodeIDs, reportError, reportError, reportError, reportError, reportFatalError, reportFatalError, reportFatalError, reportLocation, reportWarning, resolveURI, set, setBaseURI, setBaseURI, setDatatypeHandling, setNamespace, setParseErrorListener, setParseLocationListener, setParserConfig, setPreserveBNodeIDs, setRDFHandler, setStopAtFirstError, setValueFactory, setVerifyData, stopAtFirstError, verifyDatapublic TriXParser()
SimpleValueFactory to create objects for resources, bNodes,
literals and statements.public TriXParser(org.eclipse.rdf4j.model.ValueFactory valueFactory)
valueFactory - A ValueFactory.public final RDFFormat getRDFFormat()
getRDFFormat in interface RDFParserpublic Collection<RioSetting<?>> getSupportedSettings()
getSupportedSettings in interface RDFParsergetSupportedSettings in class AbstractRDFParserpublic void parse(InputStream in, String baseURI) throws IOException, RDFParseException, RDFHandlerException
parse in interface RDFParserIOExceptionRDFParseExceptionRDFHandlerExceptionpublic void parse(Reader reader, String baseURI) throws IOException, RDFParseException, RDFHandlerException
parse in interface RDFParserIOExceptionRDFParseExceptionRDFHandlerExceptionprotected org.eclipse.rdf4j.model.Literal createLiteral(String label, String lang, org.eclipse.rdf4j.model.IRI datatype) throws RDFParseException
createLiteral in class AbstractRDFParserRDFParseExceptionprotected void reportWarning(String msg)
AbstractRDFParser.reportWarning(String), adding line- and column number information to the
error.reportWarning in class AbstractRDFParserprotected void reportError(String msg, RioSetting<Boolean> setting) throws RDFParseException
AbstractRDFParser.reportError(String, RioSetting), adding line- and column number information
to the error.reportError in class AbstractRDFParserRDFParseExceptionprotected void reportFatalError(String msg) throws RDFParseException
AbstractRDFParser.reportFatalError(String), adding line- and column number information to the
error.reportFatalError in class AbstractRDFParserRDFParseExceptionprotected void reportFatalError(Exception e) throws RDFParseException
AbstractRDFParser.reportFatalError(Exception), adding line- and column number information to
the error.reportFatalError in class AbstractRDFParserRDFParseExceptionpublic void warning(SAXParseException exception) throws SAXException
warning in interface ErrorHandlerSAXExceptionpublic void error(SAXParseException exception) throws SAXException
error in interface ErrorHandlerSAXExceptionpublic void fatalError(SAXParseException exception) throws SAXException
fatalError in interface ErrorHandlerSAXExceptionCopyright © 2015-2021 Eclipse Foundation. All Rights Reserved.