public class OWLOntologyLoaderConfiguration extends Object implements Serializable
OWLOntologyLoaderConfiguration is immutable.
Changing a setting results in the creation of a new
OWLOntologyLoaderConfiguration with that setting. For example,
OWLOntologyLoaderConfiguration config = new OWLOntologyLoaderConfiguration(); config = config.setLoadAnnotationAxioms(false);creates an
OWLOntologyLoaderConfiguration object with the load
annotation axioms set to false.| Modifier and Type | Class and Description |
|---|---|
static class |
OWLOntologyLoaderConfiguration.MissingOntologyHeaderStrategy
what action to take if the ontology header is missing.
|
| Constructor and Description |
|---|
OWLOntologyLoaderConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
OWLOntologyLoaderConfiguration |
addIgnoredImport(IRI ontologyDocumentIRI)
Adds an ontology document IRI to the list of ontology imports that will
be ignored during ontology loading.
|
OWLOntologyLoaderConfiguration |
clearIgnoredImports()
Clears all ontology document IRIs from the list of ignored ontology
document IRIs.
|
int |
getConnectionTimeout() |
MissingImportHandlingStrategy |
getMissingImportHandlingStrategy()
Gets the strategy used for missing imports.
|
OWLOntologyLoaderConfiguration.MissingOntologyHeaderStrategy |
getMissingOntologyHeaderStrategy() |
PriorityCollectionSorting |
getPriorityCollectionSorting() |
int |
getRetriesToAttempt() |
boolean |
isAcceptingHTTPCompression() |
boolean |
isFollowRedirects()
When loading an ontology, a parser might connect to a remote URL.
|
boolean |
isIgnoredImport(IRI iri) |
boolean |
isLoadAnnotationAxioms()
Determines whether or not annotation axioms (instances of
OWLAnnotationAxiom) should be loaded. |
boolean |
isReportStackTrace() |
boolean |
isStrict() |
boolean |
isTreatDublinCoreAsBuiltIn()
Determines if the various parsers, for formats such as RDF based formats
that do not require strong typing, should treat Dublin Core Vocabulary as
built in vocabulary, so that Dublin Core metadata properties are
interpreted as annotation properties.
|
OWLOntologyLoaderConfiguration |
removeIgnoredImport(IRI ontologyDocumentIRI)
Removes an ontology document IRI from the list of ontology imports that
will be ignored during ontology loading.
|
OWLOntologyLoaderConfiguration |
setAcceptingHTTPCompression(boolean b) |
OWLOntologyLoaderConfiguration |
setConnectionTimeout(int l) |
OWLOntologyLoaderConfiguration |
setFollowRedirects(boolean value) |
OWLOntologyLoaderConfiguration |
setLoadAnnotationAxioms(boolean b)
Specifies whether or not annotation axioms (instances of
OWLAnnotationAxiom) should be loaded or whether they should be
discarded on loading. |
OWLOntologyLoaderConfiguration |
setMissingImportHandlingStrategy(MissingImportHandlingStrategy missingImportHandlingStrategy)
Sets the strategy that is used for missing imports handling.
|
OWLOntologyLoaderConfiguration |
setMissingOntologyHeaderStrategy(OWLOntologyLoaderConfiguration.MissingOntologyHeaderStrategy missingOntologyHeaderStrategy) |
OWLOntologyLoaderConfiguration |
setPriorityCollectionSorting(PriorityCollectionSorting sorting)
Set the priorty collection sorting option.
|
OWLOntologyLoaderConfiguration |
setReportStackTraces(boolean b)
Set the value for the report stack traces flag.
|
OWLOntologyLoaderConfiguration |
setRetriesToAttempt(int retries) |
OWLOntologyLoaderConfiguration |
setStrict(boolean strict) |
OWLOntologyLoaderConfiguration |
setTreatDublinCoreAsBuiltIn(boolean value) |
public OWLOntologyLoaderConfiguration setPriorityCollectionSorting(PriorityCollectionSorting sorting)
sorting - the sorting option to be used.OWLOntologyLoaderConfiguration with the new sorting option set.public PriorityCollectionSorting getPriorityCollectionSorting()
PriorityCollectionSorting for this configuration. It determines how parsers, storers and mappers are ordered.
Default is PriorityCollectionSorting.ON_SET_INJECTION_ONLYpublic OWLOntologyLoaderConfiguration addIgnoredImport(IRI ontologyDocumentIRI)
ontologyDocumentIRI - The ontology document IRI that will be ignored if it is
encountered as an imported ontology during loading.OWLOntologyLoaderConfiguration with the ignored
ontology document IRI set.public OWLOntologyLoaderConfiguration clearIgnoredImports()
OWLOntologyLoaderConfiguration with the list of
ignored ontology document IRIs set to be empty.public int getConnectionTimeout()
public MissingImportHandlingStrategy getMissingImportHandlingStrategy()
MissingImportHandlingStrategy for the
strategies and their descriptions.public OWLOntologyLoaderConfiguration.MissingOntologyHeaderStrategy getMissingOntologyHeaderStrategy()
public int getRetriesToAttempt()
public boolean isAcceptingHTTPCompression()
public boolean isFollowRedirects()
public boolean isIgnoredImport(IRI iri)
iri - iri to checkpublic boolean isLoadAnnotationAxioms()
OWLAnnotationAxiom) should be loaded. By default, the loading of
annotation axioms is enabled.true if annotation assertions will be loaded, or
false if annotation assertions will not be loaded because
they will be discarded on loading.public boolean isReportStackTrace()
public boolean isStrict()
public boolean isTreatDublinCoreAsBuiltIn()
true if the Dublin Core Vocabulary should be treated as
built in vocabulary and Dublin Core properties are interpreted as
annotation properties, otherwise false. The defaut is
true.@Nonnull public OWLOntologyLoaderConfiguration removeIgnoredImport(IRI ontologyDocumentIRI)
ontologyDocumentIRI - The ontology document IRI that would be ignored if it is
encountered as an imported ontology during loading.OWLOntologyLoaderConfiguration with the ignored
ontology document IRI removed.@Nonnull public OWLOntologyLoaderConfiguration setAcceptingHTTPCompression(boolean b)
b - true if HTTP compression should be accepted@Nonnull public OWLOntologyLoaderConfiguration setConnectionTimeout(int l)
l - new timeout Note: the timeout is an int and represents
milliseconds. This is necessary for use in URLConnectionOWLOntologyLoaderConfiguration with the connection
timeout set to the new value.@Nonnull public OWLOntologyLoaderConfiguration setFollowRedirects(boolean value)
value - true if redirects should be followed across protocols, false
otherwise.@Nonnull public OWLOntologyLoaderConfiguration setLoadAnnotationAxioms(boolean b)
OWLAnnotationAxiom) should be loaded or whether they should be
discarded on loading. By default, the loading of annotation axioms is
enabled.b - true if annotation axioms should be loaded, or
false if annotation axioms should not be loaded and should
be discarded on loading.OWLOntologyLoaderConfiguration object with the option
set.@Nonnull public OWLOntologyLoaderConfiguration setMissingImportHandlingStrategy(@Nonnull MissingImportHandlingStrategy missingImportHandlingStrategy)
MissingImportHandlingStrategy for the strategies and their
descriptions.missingImportHandlingStrategy - The strategy to be used.OWLOntologyLoaderConfiguration object with the
strategy set.@Nonnull public OWLOntologyLoaderConfiguration setMissingOntologyHeaderStrategy(@Nonnull OWLOntologyLoaderConfiguration.MissingOntologyHeaderStrategy missingOntologyHeaderStrategy)
missingOntologyHeaderStrategy - new value@Nonnull public OWLOntologyLoaderConfiguration setReportStackTraces(boolean b)
b - the new value for the flagOWLOntologyLoaderConfiguration with the report flag set
to the new value.@Nonnull public OWLOntologyLoaderConfiguration setRetriesToAttempt(int retries)
retries - new value of retries to attempt@Nonnull public OWLOntologyLoaderConfiguration setStrict(boolean strict)
strict - new value for strict@Nonnull public OWLOntologyLoaderConfiguration setTreatDublinCoreAsBuiltIn(boolean value)
value - true if Dublin Core vocabulary should be treated as built in.Copyright © 2016 The University of Manchester. All Rights Reserved.