| Package | Description |
|---|---|
| org.openrdf.rio |
General classes and interfaces for RDF parsers and RDF writers.
|
| org.openrdf.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 |
RDFParserBase.createBNode()
Creates a new
BNode object. |
protected BNode |
RDFParserBase.createBNode(String nodeID)
Creates a
BNode object for the specified identifier. |
protected Literal |
RDFParserBase.createLiteral(String label,
String lang,
URI datatype)
Creates a
Literal object with the supplied parameters. |
protected Literal |
RDFParserBase.createLiteral(String label,
String lang,
URI datatype,
int lineNo,
int 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,
URI 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,
URI datatype,
ParserConfig parserConfig,
ParseErrorListener errListener,
ValueFactory valueFactory,
int lineNo,
int 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 Statement |
RDFParserBase.createStatement(Resource subj,
URI pred,
Value obj)
Creates a new
Statement object with the supplied components. |
protected Statement |
RDFParserBase.createStatement(Resource subj,
URI pred,
Value obj,
Resource context)
Creates a new
Statement object with the supplied components. |
protected URI |
RDFParserBase.createURI(String uri)
Creates a
URI object for the specified URI-string. |
protected String |
RDFParserBase.getNamespace(String prefix)
Gets the namespace that is associated with the specified prefix or throws
an
RDFParseException. |
protected void |
RDFParserBase.reportError(Exception e,
int lineNo,
int 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,
int lineNo,
int 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 |
RDFParserBase.reportError(String msg,
int lineNo,
int 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,
int lineNo,
int 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 |
RDFParserBase.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 |
RDFParserBase.reportFatalError(Exception e)
Reports a fatal error to the registered ParseErrorListener, if any, and
throws a ParseException afterwards.
|
protected void |
RDFParserBase.reportFatalError(Exception e,
int lineNo,
int 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,
int lineNo,
int 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 |
RDFParserBase.reportFatalError(String msg)
Reports a fatal error to the registered ParseErrorListener, if any, and
throws a ParseException afterwards.
|
protected void |
RDFParserBase.reportFatalError(String msg,
int lineNo,
int 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,
int lineNo,
int 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 URI |
RDFParserBase.resolveURI(String uriSpec)
Resolves a URI-string against the base URI and creates a
URI
object for it. |
Copyright © 2001-2014 Aduna. All Rights Reserved.