public class RDFJSONParser extends RDFParserBase 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 nextValue,
String nextLanguage,
URI 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,
com.fasterxml.jackson.core.JsonLocation location,
RioSetting<Boolean> setting) |
protected void |
reportError(String msg,
Throwable e,
com.fasterxml.jackson.core.JsonLocation location,
RioSetting<Boolean> setting) |
protected void |
reportFatalError(String msg,
com.fasterxml.jackson.core.JsonLocation location) |
protected void |
reportFatalError(String msg,
Throwable e,
com.fasterxml.jackson.core.JsonLocation location) |
clear, clearBNodeIDMap, createBNode, createBNode, createLiteral, createLiteral, createStatement, createStatement, createURI, datatypeHandling, getNamespace, getParseErrorListener, getParseLocationListener, getParserConfig, getRDFHandler, 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, verifyDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParserConfig, 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 nextValue, String nextLanguage, URI 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.nextValue - nextLanguage - object - currentLocation - RDFParseExceptionprotected void reportError(String msg, Throwable 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, Throwable 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 RDFParserBaseCopyright © 2001-2014 Aduna. All Rights Reserved.