public class NDJSONLDParser extends JSONLDParser implements RDFParser
RDFParser.DatatypeHandling
rdfHandler, valueFactory
Constructor and Description |
---|
NDJSONLDParser()
Default constructor
|
NDJSONLDParser(ValueFactory valueFactory)
Creates a RDF4J NDJSONLD Parser using the given
ValueFactory to create new Value s. |
Modifier and Type | Method and Description |
---|---|
protected Object |
getJSONObject(InputStream in,
Reader reader,
com.fasterxml.jackson.core.JsonFactory factory) |
RDFFormat |
getRDFFormat()
Gets the RDF format that this parser can parse.
|
void |
parse(InputStream in,
String baseURI)
Parses the data from the supplied InputStream, using the supplied baseURI to resolve any relative URI references.
|
getSupportedSettings, parse
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, getSupportedSettings, parse, parse, parse, set, setDatatypeHandling, setParseErrorListener, setParseLocationListener, setParserConfig, setPreserveBNodeIDs, setRDFHandler, setStopAtFirstError, setValueFactory, setVerifyData
public NDJSONLDParser()
public NDJSONLDParser(ValueFactory valueFactory)
ValueFactory
to create new Value
s.valueFactory
- The ValueFactory to usepublic RDFFormat getRDFFormat()
RDFParser
getRDFFormat
in interface RDFParser
getRDFFormat
in class JSONLDParser
protected Object getJSONObject(InputStream in, Reader reader, com.fasterxml.jackson.core.JsonFactory factory) throws IOException
getJSONObject
in class JSONLDParser
IOException
public void parse(InputStream in, String baseURI) throws RDFParseException, RDFHandlerException, IOException
RDFParser
parse
in interface RDFParser
parse
in class JSONLDParser
in
- The InputStream from which to read the data.baseURI
- The URI associated with the data in the InputStream. May be null
. Parsers for syntax
formats that do not support relative URIs will ignore this argument.
Note that if the data contains an embedded base URI, that embedded base URI will overrule the value supplied here (see RFC 3986 section 5.1 for details).
RDFParseException
- If the parser has found an unrecoverable parse error.RDFHandlerException
- If the configured statement handler has encountered an unrecoverable error.IOException
- If an I/O error occurred while data was read from the InputStream.Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.