public class RDFJSONParser extends AbstractRDFParser implements RDFParser
RDFParser implementation for the RDF/JSON formatRDFParser.DatatypeHandlingrdfHandler, valueFactory| Constructor and Description |
|---|
RDFJSONParser()
Creates a parser using
RDFFormat.RDFJSON to identify the parser. |
RDFJSONParser(RDFFormat actualFormat)
Creates a parser using the given RDFFormat to self identify.
|
| Modifier and Type | Method and Description |
|---|---|
protected Literal |
createLiteral(String label,
String language,
IRI datatype,
com.fasterxml.jackson.core.JsonLocation currentLocation)
Creates a literal, using the current value, language, and datatype, and additionally using the given
JsonLocation to provide information about the line and column numbers in the event of a warning, error or
exception being generated by the creation of the literal. |
RDFFormat |
getRDFFormat() |
Collection<RioSetting<?>> |
getSupportedSettings() |
void |
parse(InputStream inputStream,
String baseUri) |
void |
parse(Reader reader,
String baseUri) |
protected void |
reportError(String msg,
Exception e,
com.fasterxml.jackson.core.JsonLocation location,
RioSetting<Boolean> setting) |
protected void |
reportError(String msg,
com.fasterxml.jackson.core.JsonLocation location,
RioSetting<Boolean> setting) |
protected void |
reportFatalError(String msg,
Exception e,
com.fasterxml.jackson.core.JsonLocation location) |
protected void |
reportFatalError(String msg,
com.fasterxml.jackson.core.JsonLocation location) |
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, verifyDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParserConfig, set, setDatatypeHandling, setParseErrorListener, setParseLocationListener, setParserConfig, setPreserveBNodeIDs, setRDFHandler, setStopAtFirstError, setValueFactory, setVerifyDatapublic RDFJSONParser()
RDFFormat.RDFJSON to identify the parser.public RDFJSONParser(RDFFormat actualFormat)
actualFormat - public RDFFormat getRDFFormat()
getRDFFormat in interface RDFParserpublic void parse(InputStream inputStream, String baseUri) throws IOException, RDFParseException, RDFHandlerException
parse in interface RDFParserIOExceptionRDFParseExceptionRDFHandlerExceptionprotected Literal createLiteral(String label, String language, IRI datatype, com.fasterxml.jackson.core.JsonLocation currentLocation) throws RDFParseException
JsonLocation to provide information about the line and column numbers in the event of a warning, error or
exception being generated by the creation of the literal.label - the literal's lexical labellanguage - the literal's language tag. Can be null.datatype - the literal's datatype. Can be null.currentLocation - the current JsonLocation. May not be null.Literal object.RDFParseExceptionprotected void reportError(String msg, Exception e, com.fasterxml.jackson.core.JsonLocation location, RioSetting<Boolean> setting) throws RDFParseException
RDFParseExceptionprotected void reportError(String msg, com.fasterxml.jackson.core.JsonLocation location, RioSetting<Boolean> setting) throws RDFParseException
RDFParseExceptionprotected void reportFatalError(String msg, Exception e, com.fasterxml.jackson.core.JsonLocation location) throws RDFParseException
RDFParseExceptionprotected void reportFatalError(String msg, com.fasterxml.jackson.core.JsonLocation location) throws RDFParseException
RDFParseExceptionpublic void parse(Reader reader, String baseUri) throws IOException, RDFParseException, RDFHandlerException
parse in interface RDFParserIOExceptionRDFParseExceptionRDFHandlerExceptionpublic Collection<RioSetting<?>> getSupportedSettings()
getSupportedSettings in interface RDFParsergetSupportedSettings in class AbstractRDFParserCopyright © 2015-2019 Eclipse Foundation. All Rights Reserved.