Package | Description |
---|---|
org.openrdf.query.resultio | |
org.openrdf.rio |
General classes and interfaces for RDF parsers and RDF writers.
|
org.openrdf.rio.helpers |
Provides helpers classes for Rio.
|
org.openrdf.rio.ntriples |
Parser and writer for RDF in N-Triples format.
|
org.openrdf.rio.rdfjson | |
org.openrdf.rio.rdfxml |
Parser and writer for XML-serialized RDF.
|
org.openrdf.rio.turtle |
Parser and writer for RDF in Turtle format.
|
Modifier and Type | Field and Description |
---|---|
static RioSetting<Boolean> |
BasicQueryWriterSettings.ADD_SESAME_QNAME
Specifies whether the writer should add the proprietary
"http://www.openrdf.org/schema/qname#qname" annotations to output.
|
static RioSetting<String> |
BasicQueryWriterSettings.JSONP_CALLBACK
Specifies a callback function name for wrapping JSON results to support
the JSONP cross-origin request methodology.
|
Modifier and Type | Method and Description |
---|---|
Collection<RioSetting<?>> |
QueryResultWriterBase.getSupportedSettings() |
Collection<RioSetting<?>> |
QueryResultWriter.getSupportedSettings() |
Collection<RioSetting<?>> |
QueryResultParserBase.getSupportedSettings() |
Collection<RioSetting<?>> |
QueryResultParser.getSupportedSettings() |
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.
|
Modifier and Type | Method and Description |
---|---|
Collection<RioSetting<?>> |
NTriplesParser.getSupportedSettings() |
Modifier and Type | Method and Description |
---|---|
protected void |
NTriplesParser.reportError(Exception e,
RioSetting<Boolean> setting) |
protected void |
NTriplesParser.reportError(String msg,
RioSetting<Boolean> setting)
Overrides
RDFParserBase#reportError(String) , adding line number
information to the error. |
Modifier and Type | Method and Description |
---|---|
Collection<RioSetting<?>> |
RDFJSONWriter.getSupportedSettings() |
Collection<RioSetting<?>> |
RDFJSONParser.getSupportedSettings() |
Modifier and Type | Method and Description |
---|---|
protected void |
RDFJSONParser.reportError(String msg,
com.fasterxml.jackson.core.JsonLocation location,
RioSetting<Boolean> setting) |
protected void |
RDFJSONParser.reportError(String msg,
Throwable e,
com.fasterxml.jackson.core.JsonLocation location,
RioSetting<Boolean> setting) |
Modifier and Type | Method and Description |
---|---|
Collection<RioSetting<Boolean>> |
RDFXMLParser.getCompulsoryXmlFeatureSettings()
Returns a collection of settings that will always be set as XML parser
features using
XMLReader.setFeature(String, boolean) . |
Collection<RioSetting<?>> |
RDFXMLParser.getCompulsoryXmlPropertySettings()
Returns a collection of settings that will always be set as XML parser
properties using
XMLReader.setProperty(String, Object) |
Collection<RioSetting<Boolean>> |
RDFXMLParser.getOptionalXmlFeatureSettings()
Returns a collection of settings that will be used, if set in
RDFParserBase.getParserConfig() , as XML parser features using
XMLReader.setFeature(String, boolean) . |
Collection<RioSetting<?>> |
RDFXMLParser.getOptionalXmlPropertySettings()
Returns a collection of settings that will be used, if set in
RDFParserBase.getParserConfig() , as XML parser properties using
XMLReader.setProperty(String, Object) |
Collection<RioSetting<?>> |
RDFXMLParser.getSupportedSettings() |
Modifier and Type | Method and Description |
---|---|
protected void |
RDFXMLParser.reportError(String msg,
RioSetting<Boolean> setting)
Overrides
RDFParserBase#reportError(String) , adding line- and
column number information to the error. |
Modifier and Type | Method and Description |
---|---|
Collection<RioSetting<?>> |
TurtleParser.getSupportedSettings() |
Modifier and Type | Method and Description |
---|---|
protected void |
TurtleParser.reportError(String msg,
RioSetting<Boolean> setting)
Overrides
RDFParserBase#reportError(String) , adding line number
information to the error. |
Copyright © 2001-2016 Aduna. All Rights Reserved.