| 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 | Field and Description |
|---|---|
protected ConcurrentMap<RioSetting<Object>,Object> |
RioConfig.settings
A map containing mappings from settings to their values.
|
| Modifier and Type | Method and Description |
|---|---|
Set<RioSetting<?>> |
ParserConfig.getNonFatalErrors()
Get the current set of non-fatal errors.
|
Collection<RioSetting<?>> |
RDFWriter.getSupportedSettings() |
Collection<RioSetting<?>> |
RDFParser.getSupportedSettings() |
| Modifier and Type | Method and Description |
|---|---|
void |
ParserConfig.addNonFatalError(RioSetting<?> nextNonFatalError)
Add a non-fatal error to the set used by parsers to determine whether they
should attempt to recover from a particular parsing error.
|
<T> T |
RioConfig.get(RioSetting<T> setting)
Return the value for a given
RioSetting or the default value if it
has not been set. |
boolean |
ParserConfig.isNonFatalError(RioSetting<?> errorToCheck)
This method is used by the parser to check whether they should throw an
exception or attempt to recover from a non-fatal error.
|
<T> boolean |
RioConfig.isSet(RioSetting<T> setting)
Checks for whether a
RioSetting has been explicitly set by a user. |
<T> void |
RioConfig.set(RioSetting<T> setting,
T value)
Sets a
RioSetting to have a new value. |
| Modifier and Type | Method and Description |
|---|---|
void |
ParserConfig.setNonFatalErrors(Set<RioSetting<?>> nonFatalErrors)
This method indicates a list of optional errors that the parser should
attempt to recover from.
|
| Modifier and Type | Class and Description |
|---|---|
class |
RioSettingImpl<T>
Basic implementation of
RioSetting interface. |
| Modifier and Type | Field and Description |
|---|---|
static RioSetting<Boolean> |
TurtleParserSettings.CASE_INSENSITIVE_DIRECTIVES
Allows the Turtle parser to recognise @BASE and @PREFIX
in a similar way to the SPARQL case insensitive directives.
|
static RioSetting<Boolean> |
JSONLDSettings.COMPACT_ARRAYS
If set to true, the JSON-LD processor replaces arrays with just one
element with that element during compaction.
|
static RioSetting<XMLReader> |
XMLParserSettings.CUSTOM_XML_READER
Parser setting to customise the XMLReader that is used by an XML based Rio
parser.
|
static RioSetting<List<DatatypeHandler>> |
BasicParserSettings.DATATYPE_HANDLERS
Setting used to specify which
DatatypeHandler implementations are
to be used for a given parser configuration. |
static RioSetting<Boolean> |
XMLParserSettings.FAIL_ON_DUPLICATE_RDF_ID
Parser setting to determine whether to throw an error for duplicate uses
of rdf:ID in a single document.
|
static RioSetting<Boolean> |
XMLParserSettings.FAIL_ON_INVALID_NCNAME
Parser setting to determine whether to ignore XML documents containing
invalid NCNAMEs.
|
static RioSetting<Boolean> |
XMLParserSettings.FAIL_ON_INVALID_QNAME
Parser setting to determine whether to ignore XML documents containing
invalid QNAMEs.
|
static RioSetting<Boolean> |
XMLParserSettings.FAIL_ON_MISMATCHED_TAGS
Parser setting to determine whether to throw an error for XML documents
containing mismatched tags
|
static RioSetting<Boolean> |
RDFJSONParserSettings.FAIL_ON_MULTIPLE_OBJECT_DATATYPES
Boolean setting for parser to determine whether an RDF/JSON parser should
fail if it finds multiple datatypes for a single object in a single
statement.
|
static RioSetting<Boolean> |
RDFJSONParserSettings.FAIL_ON_MULTIPLE_OBJECT_LANGUAGES
Boolean setting for parser to determine whether an RDF/JSON parser should
fail if it finds multiple languages for a single object in a single
statement.
|
static RioSetting<Boolean> |
RDFJSONParserSettings.FAIL_ON_MULTIPLE_OBJECT_TYPES
Boolean setting for parser to determine whether an RDF/JSON parser should
fail if it finds multiple types for a single object in a single statement.
|
static RioSetting<Boolean> |
RDFJSONParserSettings.FAIL_ON_MULTIPLE_OBJECT_VALUES
Boolean setting for parser to determine whether an RDF/JSON parser should
fail if it finds multiple values for a single object in a single
statement.
|
static RioSetting<Boolean> |
XMLParserSettings.FAIL_ON_NON_STANDARD_ATTRIBUTES
Parser setting to determine whether to ignore non-standard attributes that
are found in an XML document.
|
static RioSetting<Boolean> |
NTriplesParserSettings.FAIL_ON_NTRIPLES_INVALID_LINES
Boolean setting for parser to determine whether syntactically invalid
lines in N-Triples and N-Quads documents generate a parse error.
|
static RioSetting<Boolean> |
RDFaParserSettings.FAIL_ON_RDFA_UNDEFINED_PREFIXES
Boolean setting for parser to determine whether the published RDFa
prefixes are used to substitute for undefined prefixes.
|
static RioSetting<Boolean> |
XMLParserSettings.FAIL_ON_SAX_NON_FATAL_ERRORS
Parser setting to determine whether to ignore non-fatal errors that come
from SAX parsers.
|
static RioSetting<Boolean> |
TriXParserSettings.FAIL_ON_TRIX_INVALID_STATEMENT
Boolean setting for parser to determine whether invalid statements are
ignored in TriX.
|
static RioSetting<Boolean> |
TriXParserSettings.FAIL_ON_TRIX_MISSING_DATATYPE
Boolean setting for parser to determine whether missing datatypes in TriX
are ignored.
|
static RioSetting<Boolean> |
BasicParserSettings.FAIL_ON_UNKNOWN_DATATYPES
Boolean setting for parser to determine whether to fail parsing if
datatypes are not recognised.
|
static RioSetting<Boolean> |
BasicParserSettings.FAIL_ON_UNKNOWN_LANGUAGES
Boolean setting for parser to determine whether to fail parsing if
languages are not recognised.
|
static RioSetting<Boolean> |
RDFJSONParserSettings.FAIL_ON_UNKNOWN_PROPERTY
Boolean setting for parser to determine whether an RDF/JSON parser should
fail if it finds multiple properties that it does not recognise in the
JSON document.
|
static RioSetting<Boolean> |
XMLWriterSettings.INCLUDE_ROOT_RDF_TAG
Boolean setting for RDF/XML Writer to determine whether the rdf:RDF root
tag is to be written.
|
static RioSetting<Boolean> |
XMLWriterSettings.INCLUDE_XML_PI
Boolean setting for XML Writer to determine whether the XML PI (Processing
Instruction) should be printed.
|
static RioSetting<JSONLDMode> |
JSONLDSettings.JSONLD_MODE
The
JSONLDMode that the writer will use to reorganise the JSONLD
document after it is created. |
static RioSetting<List<LanguageHandler>> |
BasicParserSettings.LANGUAGE_HANDLERS
Setting used to specify which
LanguageHandler implementations are
to be used for a given parser configuration. |
static RioSetting<LargeLiteralHandling> |
BasicParserSettings.LARGE_LITERALS_HANDLING
Boolean setting for parser to determine whether parser should preserve,
truncate, drop, or otherwise manipulate statements that contain long
literals.
|
static RioSetting<Long> |
BasicParserSettings.LARGE_LITERALS_LIMIT
If
BasicParserSettings.LARGE_LITERALS_HANDLING is set to
LargeLiteralHandling.PRESERVE, which it is by default, then the
value of this setting is not used. |
static RioSetting<Boolean> |
XMLParserSettings.LOAD_EXTERNAL_DTD
Parser setting specifying whether external DTDs should be loaded.
|
static RioSetting<Boolean> |
BasicParserSettings.NORMALIZE_DATATYPE_VALUES
Boolean setting for parser to determine whether recognised datatypes need
to have their values be normalized.
|
static RioSetting<Boolean> |
BasicParserSettings.NORMALIZE_LANGUAGE_TAGS
Boolean setting for parser to determine whether languages need to be
normalized, and to which format they should be normalised.
|
static RioSetting<Boolean> |
JSONLDSettings.OPTIMIZE
If set to true, the JSON-LD processor is allowed to optimize the output of
the Compaction algorithm to produce even compacter representations.
|
static RioSetting<Boolean> |
XMLParserSettings.PARSE_STANDALONE_DOCUMENTS
Flag indicating whether the parser parses stand-alone RDF documents.
|
static RioSetting<Boolean> |
BasicParserSettings.PRESERVE_BNODE_IDS
Boolean setting for parser to determine whether parser should attempt to
preserve identifiers for blank nodes.
|
static RioSetting<Boolean> |
BasicWriterSettings.PRETTY_PRINT
Boolean setting for writer to determine whether pretty printing is
preferred.
|
static RioSetting<Boolean> |
BasicWriterSettings.RDF_LANGSTRING_TO_LANG_LITERAL
Boolean setting for writer to determine whether it should attempt to
remove the rdf:langString datatype from literals and represent them as
RDF-1.0 Language Literals.
|
static RioSetting<RDFaVersion> |
RDFaParserSettings.RDFA_COMPATIBILITY
Boolean setting for parser to determine the RDFa version to use when
processing the document.
|
static RioSetting<Boolean> |
XMLParserSettings.SECURE_PROCESSING
Parser setting for the secure processing feature of XML parsers to avoid
DOS attacks
|
static RioSetting<Boolean> |
RDFJSONParserSettings.SUPPORT_GRAPHS_EXTENSION
Boolean setting for parser to determine whether an RDF/JSON parser should
support the graphs extension to make it a quads format.
|
static RioSetting<Boolean> |
JSONLDSettings.USE_NATIVE_TYPES
If set to true, the JSON-LD processor will try to convert typed values to
JSON native types instead of using the expanded object form when
converting from RDF.
|
static RioSetting<Boolean> |
JSONLDSettings.USE_RDF_TYPE
If set to true, the JSON-LD processor will use the expanded rdf:type IRI
as the property instead of @type when converting from RDF.
|
static RioSetting<Boolean> |
BasicParserSettings.VERIFY_DATATYPE_VALUES
Boolean setting for parser to determine whether values for recognised
datatypes are to be verified.
|
static RioSetting<Boolean> |
BasicParserSettings.VERIFY_LANGUAGE_TAGS
Boolean setting for parser to determine whether languages are to be
verified based on a given set of definitions for valid languages.
|
static RioSetting<Boolean> |
BasicParserSettings.VERIFY_RELATIVE_URIS
Boolean setting for parser to determine whether relative URIs are
verified.
|
static RioSetting<Boolean> |
RDFaParserSettings.VOCAB_EXPANSION_ENABLED
Enables or disables vocabulary expansion feature.
|
static RioSetting<Boolean> |
BasicWriterSettings.XSD_STRING_TO_PLAIN_LITERAL
Boolean setting for writer to determine whether it should attempt to
remove the xsd:string datatype from literals and represent them as RDF-1.0
Plain Literals.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<RioSetting<?>> |
RDFWriterBase.getSupportedSettings() |
Collection<RioSetting<?>> |
RDFParserBase.getSupportedSettings() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
Copyright © 2001-2014 Aduna. All Rights Reserved.