| Package | Description |
|---|---|
| org.eclipse.rdf4j.rio |
Rio: The RDF4J parser/writer API.
|
| org.eclipse.rdf4j.rio.helpers |
Provides helpers classes for Rio.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Rio.main(String[] args) |
default void |
RDFParser.parse(InputStream in)
Parses the data from the supplied InputStream.
|
static org.eclipse.rdf4j.model.Model |
Rio.parse(InputStream in,
RDFFormat dataFormat,
org.eclipse.rdf4j.model.Resource... contexts)
Adds RDF data from an
InputStream to a Model, optionally to one or more named contexts. |
void |
RDFParser.parse(InputStream in,
String baseURI)
Parses the data from the supplied InputStream, using the supplied baseURI to resolve any relative URI references.
|
static org.eclipse.rdf4j.model.Model |
Rio.parse(InputStream in,
String baseURI,
RDFFormat dataFormat,
ParserConfig settings,
org.eclipse.rdf4j.model.ValueFactory valueFactory,
ParseErrorListener errors,
org.eclipse.rdf4j.model.ModelFactory modelFactory,
org.eclipse.rdf4j.model.Resource... contexts)
Adds RDF data from an
InputStream to a Model, optionally to one or more named contexts. |
static org.eclipse.rdf4j.model.Model |
Rio.parse(InputStream in,
String baseURI,
RDFFormat dataFormat,
ParserConfig settings,
org.eclipse.rdf4j.model.ValueFactory valueFactory,
ParseErrorListener errors,
org.eclipse.rdf4j.model.Resource... contexts)
Adds RDF data from an
InputStream to a Model, optionally to one or more named contexts. |
static org.eclipse.rdf4j.model.Model |
Rio.parse(InputStream in,
String baseURI,
RDFFormat dataFormat,
org.eclipse.rdf4j.model.Resource... contexts)
Adds RDF data from an
InputStream to a Model, optionally to one or more named contexts. |
default void |
RDFParser.parse(Reader reader)
Parses the data from the supplied Reader.
|
static org.eclipse.rdf4j.model.Model |
Rio.parse(Reader reader,
RDFFormat dataFormat,
org.eclipse.rdf4j.model.Resource... contexts)
|
void |
RDFParser.parse(Reader reader,
String baseURI)
Parses the data from the supplied Reader, using the supplied baseURI to resolve any relative URI references.
|
static org.eclipse.rdf4j.model.Model |
Rio.parse(Reader reader,
String baseURI,
RDFFormat dataFormat,
ParserConfig settings,
org.eclipse.rdf4j.model.ValueFactory valueFactory,
ParseErrorListener errors,
org.eclipse.rdf4j.model.ModelFactory modelFactory,
org.eclipse.rdf4j.model.Resource... contexts)
|
static org.eclipse.rdf4j.model.Model |
Rio.parse(Reader reader,
String baseURI,
RDFFormat dataFormat,
ParserConfig settings,
org.eclipse.rdf4j.model.ValueFactory valueFactory,
ParseErrorListener errors,
org.eclipse.rdf4j.model.Resource... contexts)
|
static org.eclipse.rdf4j.model.Model |
Rio.parse(Reader reader,
String baseURI,
RDFFormat dataFormat,
org.eclipse.rdf4j.model.Resource... contexts)
|
| Modifier and Type | Method and Description |
|---|---|
protected org.eclipse.rdf4j.model.BNode |
AbstractRDFParser.createBNode()
Deprecated.
|
protected org.eclipse.rdf4j.model.BNode |
AbstractRDFParser.createBNode(String nodeID)
Deprecated.
|
protected org.eclipse.rdf4j.model.Literal |
AbstractRDFParser.createLiteral(String label,
String lang,
org.eclipse.rdf4j.model.IRI datatype)
Creates a
Literal object with the supplied parameters. |
protected org.eclipse.rdf4j.model.Literal |
AbstractRDFParser.createLiteral(String label,
String lang,
org.eclipse.rdf4j.model.IRI datatype,
long lineNo,
long columnNo)
Creates a
Literal object with the supplied parameters, using the lineNo and columnNo to enhance error
messages or exceptions that may be generated during the creation of the literal. |
static org.eclipse.rdf4j.model.Literal |
RDFParserHelper.createLiteral(String label,
String lang,
org.eclipse.rdf4j.model.IRI datatype,
ParserConfig parserConfig,
ParseErrorListener errListener,
org.eclipse.rdf4j.model.ValueFactory valueFactory)
Create a literal using the given parameters, including iterative verification and normalization by any
DatatypeHandler or LanguageHandler implementations that are found in the ParserConfig. |
static org.eclipse.rdf4j.model.Literal |
RDFParserHelper.createLiteral(String label,
String lang,
org.eclipse.rdf4j.model.IRI datatype,
ParserConfig parserConfig,
ParseErrorListener errListener,
org.eclipse.rdf4j.model.ValueFactory valueFactory,
long lineNo,
long columnNo)
Create a literal using the given parameters, including iterative verification and normalization by any
DatatypeHandler or LanguageHandler implementations that are found in the ParserConfig. |
protected org.eclipse.rdf4j.model.Resource |
AbstractRDFParser.createNode()
|
protected org.eclipse.rdf4j.model.Resource |
AbstractRDFParser.createNode(String nodeID)
|
protected org.eclipse.rdf4j.model.Statement |
AbstractRDFParser.createStatement(org.eclipse.rdf4j.model.Resource subj,
org.eclipse.rdf4j.model.IRI pred,
org.eclipse.rdf4j.model.Value obj)
Creates a new
Statement object with the supplied components. |
protected org.eclipse.rdf4j.model.Statement |
AbstractRDFParser.createStatement(org.eclipse.rdf4j.model.Resource subj,
org.eclipse.rdf4j.model.IRI pred,
org.eclipse.rdf4j.model.Value obj,
org.eclipse.rdf4j.model.Resource context)
Creates a new
Statement object with the supplied components. |
protected org.eclipse.rdf4j.model.IRI |
AbstractRDFParser.createURI(String uri)
Creates a
IRI object for the specified URI-string. |
protected String |
AbstractRDFParser.getNamespace(String prefix)
Gets the namespace that is associated with the specified prefix or throws an
RDFParseException. |
protected void |
AbstractRDFParser.reportError(Exception e,
long lineNo,
long columnNo,
RioSetting<Boolean> relevantSetting)
Reports an error with associated line- and column number to the registered ParseErrorListener, if the given
setting has been set to true.
|
static void |
RDFParserHelper.reportError(Exception e,
long lineNo,
long columnNo,
RioSetting<Boolean> relevantSetting,
ParserConfig parserConfig,
ParseErrorListener errListener)
Reports an error with associated line- and column number to the registered ParseErrorListener, if the given
setting has been set to true.
|
protected void |
AbstractRDFParser.reportError(Exception e,
RioSetting<Boolean> relevantSetting)
Reports an error with associated line- and column number to the registered ParseErrorListener, if the given
setting has been set to true.
|
protected void |
AbstractRDFParser.reportError(String msg,
Exception e,
long lineNo,
long columnNo,
RioSetting<Boolean> relevantSetting)
Reports an error with associated line- and column number to the registered ParseErrorListener, if the given
setting has been set to true.
|
protected void |
AbstractRDFParser.reportError(String msg,
long lineNo,
long columnNo,
RioSetting<Boolean> relevantSetting)
Reports an error with associated line- and column number to the registered ParseErrorListener, if the given
setting has been set to true.
|
static void |
RDFParserHelper.reportError(String msg,
long lineNo,
long columnNo,
RioSetting<Boolean> relevantSetting,
ParserConfig parserConfig,
ParseErrorListener errListener)
Reports an error with associated line- and column number to the registered ParseErrorListener, if the given
setting has been set to true.
|
protected void |
AbstractRDFParser.reportError(String msg,
RioSetting<Boolean> relevantSetting)
Reports an error with associated line- and column number to the registered ParseErrorListener, if the given
setting has been set to true.
|
static void |
RDFParserHelper.reportError(String msg,
RioSetting<Boolean> relevantSetting,
ParserConfig parserConfig,
ParseErrorListener errListener)
Reports an error with associated line- and column number to the registered ParseErrorListener, if the given
setting has been set to true.
|
protected void |
AbstractRDFParser.reportFatalError(Exception e)
Reports a fatal error to the registered ParseErrorListener, if any, and throws a ParseException
afterwards.
|
protected void |
AbstractRDFParser.reportFatalError(Exception e,
long lineNo,
long columnNo)
Reports a fatal error with associated line- and column number to the registered ParseErrorListener, if any, and
throws a ParseException wrapped the supplied exception afterwards.
|
static void |
RDFParserHelper.reportFatalError(Exception e,
long lineNo,
long columnNo,
ParseErrorListener errListener)
Reports a fatal error with associated line- and column number to the registered ParseErrorListener, if any, and
throws a ParseException wrapped the supplied exception afterwards.
|
static void |
RDFParserHelper.reportFatalError(Exception e,
ParseErrorListener errListener)
Reports a fatal error to the registered ParseErrorListener, if any, and throws a ParseException
afterwards.
|
protected void |
AbstractRDFParser.reportFatalError(String msg)
Reports a fatal error to the registered ParseErrorListener, if any, and throws a ParseException
afterwards.
|
protected void |
AbstractRDFParser.reportFatalError(String message,
Exception e,
long lineNo,
long columnNo)
Reports a fatal error with associated line- and column number to the registered ParseErrorListener, if any, and
throws a ParseException wrapped the supplied exception afterwards.
|
static void |
RDFParserHelper.reportFatalError(String message,
Exception e,
long lineNo,
long columnNo,
ParseErrorListener errListener)
Reports a fatal error with associated line- and column number to the registered ParseErrorListener, if any, and
throws a ParseException wrapped the supplied exception afterwards.
|
protected void |
AbstractRDFParser.reportFatalError(String msg,
long lineNo,
long columnNo)
Reports a fatal error with associated line- and column number to the registered ParseErrorListener, if any, and
throws a ParseException afterwards.
|
static void |
RDFParserHelper.reportFatalError(String msg,
long lineNo,
long columnNo,
ParseErrorListener errListener)
Reports a fatal error with associated line- and column number to the registered ParseErrorListener, if any, and
throws a ParseException afterwards.
|
static void |
RDFParserHelper.reportFatalError(String msg,
ParseErrorListener errListener)
Reports a fatal error to the registered ParseErrorListener, if any, and throws a ParseException
afterwards.
|
protected org.eclipse.rdf4j.model.IRI |
AbstractRDFParser.resolveURI(String uriSpec)
Resolves a URI-string against the base URI and creates a
IRI object for it. |
Copyright © 2015-2021 Eclipse Foundation. All Rights Reserved.