public final class OWLOntologyLoaderConfiguration extends Object
A configuration object that specifies options and hints to objects that load OWLOntologies. Every
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
strategies to cope with missing headers
|
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_LOAD_ANNOTATIONS_FLAG_VALUE
default annotation value
|
static OWLOntologyLoaderConfiguration.MissingOntologyHeaderStrategy |
DEFAULT_MISSING_ONTOLOGY_HEADER_STRATEGY
default missing ontology strategy
|
| 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.
|
Set<IRI> |
getIgnoredImports()
Gets the list of ontology document IRIs that are ignored during ontology loading if they are encountered as
imported ontologies.
|
MissingImportHandlingStrategy |
getMissingImportHandlingStrategy()
Gets the strategy used for missing imports.
|
OWLOntologyLoaderConfiguration.MissingOntologyHeaderStrategy |
getMissingOntologyHeaderStrategy() |
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 |
isSilentMissingImportsHandling()
Deprecated.
|
boolean |
isStrict() |
OWLOntologyLoaderConfiguration |
removeIgnoredImport(IRI ontologyDocumentIRI)
Removes an ontology document IRI from the list of ontology imports that will be ignored during ontology loading.
|
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) |
void |
setSilentMissingImportsHandling(boolean b)
Deprecated.
Do not use because this method mutates the OWLOntologyLoaderConfiguration instance that it is called
on. Use
setMissingImportHandlingStrategy(MissingImportHandlingStrategy) |
OWLOntologyLoaderConfiguration |
setStrict(boolean strict) |
public static final boolean DEFAULT_LOAD_ANNOTATIONS_FLAG_VALUE
public static final OWLOntologyLoaderConfiguration.MissingOntologyHeaderStrategy DEFAULT_MISSING_ONTOLOGY_HEADER_STRATEGY
public OWLOntologyLoaderConfiguration.MissingOntologyHeaderStrategy getMissingOntologyHeaderStrategy()
public OWLOntologyLoaderConfiguration setMissingOntologyHeaderStrategy(OWLOntologyLoaderConfiguration.MissingOntologyHeaderStrategy missingOntologyHeaderStrategy)
missingOntologyHeaderStrategy - new valuepublic 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.public 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 isFollowRedirects()
public OWLOntologyLoaderConfiguration setFollowRedirects(boolean value)
value - true if redirects should be followed across protocols, false
otherwise.public OWLOntologyLoaderConfiguration setMissingImportHandlingStrategy(MissingImportHandlingStrategy missingImportHandlingStrategy)
MissingImportHandlingStrategy for the strategies and their
descriptions.missingImportHandlingStrategy - The strategy to be used.OWLOntologyLoaderConfiguration object with the
strategy set.public MissingImportHandlingStrategy getMissingImportHandlingStrategy()
MissingImportHandlingStrategy for the strategies and their descriptions.@Deprecated public void setSilentMissingImportsHandling(boolean b)
setMissingImportHandlingStrategy(MissingImportHandlingStrategy)b - new value for missing imports@Deprecated public boolean isSilentMissingImportsHandling()
getMissingImportHandlingStrategy().public boolean isStrict()
public OWLOntologyLoaderConfiguration setStrict(boolean strict)
strict - new value for strictpublic boolean isIgnoredImport(IRI iri)
iri - iri to checkpublic Set<IRI> getIgnoredImports()
public 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 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.public OWLOntologyLoaderConfiguration clearIgnoredImports()
OWLOntologyLoaderConfiguration with the list of ignored ontology document IRIs set to
be empty.Copyright © 2013 The University of Manchester. All Rights Reserved.