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 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(Reader reader,
String baseURI,
RDFFormat dataFormat,
ParserConfig settings,
ValueFactory valueFactory,
ParseErrorListener errors,
Resource... contexts)
|
RDFParser |
RDFParser.setParseErrorListener(ParseErrorListener el)
Sets the ParseErrorListener that will be notified of any errors that this
parser finds during parsing.
|
Modifier and Type | Class and Description |
---|---|
class |
ParseErrorCollector
A ParseErrorListener that collects Rio parse errors in the sequence they were
collected in.
|
class |
ParseErrorLogger
A ParseErrorListener that reports Rio parser errors to the SLf4J Logging
framework.
|
Modifier and Type | Method and Description |
---|---|
ParseErrorListener |
AbstractRDFParser.getParseErrorListener() |
Modifier and Type | Method and Description |
---|---|
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 . |
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.
|
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.
|
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.
|
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.
|
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.
|
RDFParser |
AbstractRDFParser.setParseErrorListener(ParseErrorListener el) |
Copyright © 2001-2016 Aduna. All Rights Reserved.