| Package | Description |
|---|---|
| org.eclipse.rdf4j.query.resultio | |
| org.eclipse.rdf4j.query.resultio.sparqlxml |
Parsers and writers for the SPARQL Query Results XML Format
|
| org.eclipse.rdf4j.repository.http.helpers | |
| org.eclipse.rdf4j.rio |
General classes and interfaces for RDF parsers and RDF writers.
|
| org.eclipse.rdf4j.rio.helpers |
Provides helpers classes for Rio.
|
| org.eclipse.rdf4j.rio.ntriples |
Parser and writer for RDF in N-Triples format.
|
| org.eclipse.rdf4j.rio.rdfjson | |
| org.eclipse.rdf4j.rio.rdfxml |
Parser and writer for XML-serialized RDF.
|
| org.eclipse.rdf4j.rio.trix |
Parser and writer for RDF in
TriX format.
|
| org.eclipse.rdf4j.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<?>> |
QueryResultWriter.getSupportedSettings() |
Collection<RioSetting<?>> |
QueryResultParser.getSupportedSettings() |
Collection<RioSetting<?>> |
AbstractQueryResultWriter.getSupportedSettings() |
Collection<RioSetting<?>> |
AbstractQueryResultParser.getSupportedSettings() |
| Modifier and Type | Method and Description |
|---|---|
<T> QueryResultParser |
QueryResultParser.set(RioSetting<T> setting,
T value)
Set a setting on the parser, and return this parser object to allow chaining.
|
<T> QueryResultParser |
AbstractQueryResultParser.set(RioSetting<T> setting,
T value) |
| Modifier and Type | Method and Description |
|---|---|
Collection<RioSetting<Boolean>> |
AbstractSPARQLXMLParser.getCompulsoryXmlFeatureSettings()
Returns a collection of settings that will always be set as XML parser features using
XMLReader.setFeature(String, boolean). |
Collection<RioSetting<?>> |
AbstractSPARQLXMLParser.getCompulsoryXmlPropertySettings()
Returns a collection of settings that will always be set as XML parser properties using
XMLReader.setProperty(String, Object) |
Collection<RioSetting<Boolean>> |
AbstractSPARQLXMLParser.getOptionalXmlFeatureSettings()
Returns a collection of settings that will be used, if set in
AbstractQueryResultParser.getParserConfig(), as XML parser
features using XMLReader.setFeature(String, boolean). |
Collection<RioSetting<?>> |
AbstractSPARQLXMLParser.getOptionalXmlPropertySettings()
Returns a collection of settings that will be used, if set in
AbstractQueryResultParser.getParserConfig(), as XML parser
properties using XMLReader.setProperty(String, Object) |
Collection<RioSetting<?>> |
AbstractSPARQLXMLParser.getSupportedSettings() |
| Modifier and Type | Field and Description |
|---|---|
static RioSetting<Integer> |
HTTPRepositorySettings.MAX_STATEMENT_BUFFER_SIZE
Maximum size (in number of statements) allowed for statement buffers
before they are forcibly flushed.
|
| 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 |
|---|---|
ParserConfig |
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> WriterConfig |
WriterConfig.set(RioSetting<T> setting,
T value) |
<T> RioConfig |
RioConfig.set(RioSetting<T> setting,
T value)
Sets a
RioSetting to have a new value. |
<T> RDFWriter |
RDFWriter.set(RioSetting<T> setting,
T value)
Set a setting on the writer, and return this writer object to allow chaining.
|
<T> RDFParser |
RDFParser.set(RioSetting<T> setting,
T value)
Set a setting on the parser, and return this parser object to allow chaining.
|
<T> ParserConfig |
ParserConfig.set(RioSetting<T> setting,
T value) |
| Modifier and Type | Method and Description |
|---|---|
ParserConfig |
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> |
BasicWriterSettings.BASE_DIRECTIVE
Boolean setting for writer to determine whether it should include a base directive.
|
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> |
NTriplesWriterSettings.ESCAPE_UNICODE
Boolean setting for writer to determine if unicode escapes are used.
|
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
Deprecated.
|
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> |
JSONLDSettings.HIERARCHICAL_VIEW
If set to true, the JSON-LD processor will try to represent the JSON-LD object in a hierarchical view.
|
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<Boolean> |
BasicWriterSettings.INLINE_BLANK_NODES
Inline blanks nodes by their value and don't write any blank node labels when this setting is true.
|
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<Set<Namespace>> |
BasicParserSettings.NAMESPACES
Setting to provide a collection of
Namespace objects which will be used when parsing RDF as the
basis for the default set of namespaces of the document. |
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 omit the rdf:langString datatype from
language literals when serialising them.
|
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<String> |
BasicParserSettings.SKOLEMIZE_ORIGIN
Scheme and authority of new mint Skolem IRIs that should replace Blank Nodes.
|
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> |
BasicParserSettings.VERIFY_URI_SYNTAX
Boolean setting for parser to determine if URIs should be verified to contain only legal characters.
|
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 remove the xsd:string datatype from literals
and represent them as RDF-1.0 Plain Literals.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<RioSetting<?>> |
AbstractRDFWriter.getSupportedSettings() |
Collection<RioSetting<?>> |
AbstractRDFParser.getSupportedSettings() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
<T> RDFWriter |
AbstractRDFWriter.set(RioSetting<T> setting,
T value) |
<T> RDFParser |
AbstractRDFParser.set(RioSetting<T> setting,
T value) |
| Modifier and Type | Method and Description |
|---|---|
Collection<RioSetting<?>> |
NTriplesWriter.getSupportedSettings() |
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
AbstractRDFParser.reportError(String, RioSetting), 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
AbstractRDFParser.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
AbstractRDFParser.getParserConfig(), as XML parser
properties using XMLReader.setProperty(String, Object) |
Collection<RioSetting<?>> |
RDFXMLParser.getSupportedSettings() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
RDFXMLParser.reportError(Exception e,
RioSetting<Boolean> setting)
Overrides
AbstractRDFParser.reportError(String, RioSetting), adding line- and column number
information to the error. |
protected void |
RDFXMLParser.reportError(String msg,
RioSetting<Boolean> setting)
Overrides
AbstractRDFParser.reportError(String, RioSetting), adding line- and column number
information to the error. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
TriXParser.reportError(String msg,
RioSetting<Boolean> setting)
Overrides
AbstractRDFParser.reportError(String, RioSetting), 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
AbstractRDFParser.reportError(String, RioSetting),
adding line number information to the error. |
Copyright © 2015-2018 Eclipse Foundation. All Rights Reserved.