| Package | Description |
|---|---|
| org.eclipse.rdf4j.rio |
General classes and interfaces for RDF parsers and RDF writers.
|
| org.eclipse.rdf4j.rio.helpers |
Provides helpers classes for Rio.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Rio.main(String[] args) |
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 Model |
Rio.parse(InputStream in,
String baseURI,
RDFFormat dataFormat,
ParserConfig settings,
ValueFactory valueFactory,
ParseErrorListener errors,
Resource... contexts)
Adds RDF data from an
InputStream to a Model, optionally to one or more named contexts. |
static Model |
Rio.parse(InputStream in,
String baseURI,
RDFFormat dataFormat,
Resource... contexts)
Adds RDF data from an
InputStream to a Model, optionally to one or more named 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 Model |
Rio.parse(Reader reader,
String baseURI,
RDFFormat dataFormat,
ParserConfig settings,
ValueFactory valueFactory,
ParseErrorListener errors,
Resource... contexts)
|
static Model |
Rio.parse(Reader reader,
String baseURI,
RDFFormat dataFormat,
Resource... contexts)
|
| Modifier and Type | Method and Description |
|---|---|
protected BNode |
AbstractRDFParser.createBNode()
Deprecated.
|
protected BNode |
AbstractRDFParser.createBNode(String nodeID)
Deprecated.
|
protected Literal |
AbstractRDFParser.createLiteral(String label,
String lang,
IRI datatype)
Creates a
Literal object with the supplied parameters. |
protected Literal |
AbstractRDFParser.createLiteral(String label,
String lang,
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 Literal |
RDFParserHelper.createLiteral(String label,
String lang,
IRI datatype,
ParserConfig parserConfig,
ParseErrorListener errListener,
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 Literal |
RDFParserHelper.createLiteral(String label,
String lang,
IRI datatype,
ParserConfig parserConfig,
ParseErrorListener errListener,
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 Resource |
AbstractRDFParser.createNode()
|
protected Resource |
AbstractRDFParser.createNode(String nodeID)
|
protected Statement |
AbstractRDFParser.createStatement(Resource subj,
IRI pred,
Value obj)
Creates a new
Statement object with the supplied components. |
protected Statement |
AbstractRDFParser.createStatement(Resource subj,
IRI pred,
Value obj,
Resource context)
Creates a new
Statement object with the supplied components. |
protected 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,
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 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 IRI |
AbstractRDFParser.resolveURI(String uriSpec)
Resolves a URI-string against the base URI and creates a
IRI object
for it. |
Copyright © 2015-2019 Eclipse Foundation. All Rights Reserved.