public class JSONLDParser extends AbstractRDFParser implements RDFParser
RDFParser
that links to JSONLDInternalTripleCallback
.RDFParser.DatatypeHandling
rdfHandler, valueFactory
Constructor and Description |
---|
JSONLDParser()
Default constructor
|
JSONLDParser(ValueFactory valueFactory)
Creates a Sesame JSONLD Parser using the given
ValueFactory to create new Value s. |
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)
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, 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, verifyData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParserConfig, set, setDatatypeHandling, setParseErrorListener, setParseLocationListener, setParserConfig, setPreserveBNodeIDs, setRDFHandler, setStopAtFirstError, setValueFactory, setVerifyData
public JSONLDParser()
public JSONLDParser(ValueFactory valueFactory)
ValueFactory
to create new Value
s.valueFactory
- The ValueFactory to usepublic RDFFormat getRDFFormat()
RDFParser
getRDFFormat
in interface RDFParser
public Collection<RioSetting<?>> getSupportedSettings()
getSupportedSettings
in interface RDFParser
getSupportedSettings
in class AbstractRDFParser
RioSetting
s that are supported by this RDFParser.public void parse(InputStream in, String baseURI) throws IOException, RDFParseException, RDFHandlerException
RDFParser
parse
in interface RDFParser
in
- 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
RDFParser
parse
in interface RDFParser
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-2019 Eclipse Foundation. All Rights Reserved.