public class HDTParser extends AbstractRDFParser
+---------------------+ | Global | | Header | | Dictionary (Shared) | | Dictionary (S) | | Dictionary (P) | | Dictionary (O) | | Triples | +---------------------+
RDFParser.DatatypeHandlingrdfHandler, valueFactory| Constructor and Description |
|---|
HDTParser()
Creates a new HDTParser that will use a
SimpleValueFactory to create RDF model objects. |
HDTParser(ValueFactory valueFactory)
Creates a new HDTParser that will use the supplied ValueFactory to create RDF model objects.
|
| Modifier and Type | Method and Description |
|---|---|
RDFFormat |
getRDFFormat()
Gets the RDF format that this parser can parse.
|
Collection<RioSetting<?>> |
getSupportedSettings() |
void |
parse(InputStream in,
String baseURI)
Implementation of the parse(InputStream, String) method defined in the RDFParser interface.
|
void |
parse(Reader reader,
String baseURI)
Not supported, since HDT is a binary format.
|
clear, clearBNodeIDMap, createBNode, createBNode, createLiteral, createLiteral, createNode, createNode, createStatement, createStatement, createURI, datatypeHandling, getNamespace, getParseErrorListener, getParseLocationListener, getParserConfig, getRDFHandler, initializeNamespaceTableFromConfiguration, preserveBNodeIDs, reportError, reportError, reportError, reportError, reportError, reportFatalError, reportFatalError, reportFatalError, reportFatalError, reportFatalError, reportLocation, reportWarning, reportWarning, resolveURI, set, setBaseURI, setBaseURI, setDatatypeHandling, setNamespace, setParseErrorListener, setParseLocationListener, setParserConfig, setPreserveBNodeIDs, setRDFHandler, setStopAtFirstError, setValueFactory, setVerifyData, stopAtFirstError, verifyDatapublic HDTParser()
SimpleValueFactory to create RDF model objects.public HDTParser(ValueFactory valueFactory)
valueFactory - A ValueFactory.public RDFFormat getRDFFormat()
RDFParserpublic Collection<RioSetting<?>> getSupportedSettings()
getSupportedSettings in interface RDFParsergetSupportedSettings in class AbstractRDFParserRioSettings that are supported by this RDFParser.public void parse(InputStream in, String baseURI) throws IOException, RDFParseException, RDFHandlerException
in - The InputStream from which to read the data, must not be null.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.RDFParseException - If the parser has found an unrecoverable parse error.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, RDFParseException, RDFHandlerException
reader - 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 © 2015-2020 Eclipse Foundation. All Rights Reserved.