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.| 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.
|
String |
getBannedParsers() |
int |
getConnectionTimeout() |
String |
getEntityExpansionLimit() |
MissingImportHandlingStrategy |
getMissingImportHandlingStrategy()
Gets the strategy used for missing imports.
|
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 |
setBannedParsers(String ban) |
OWLOntologyLoaderConfiguration |
setConnectionTimeout(int l) |
OWLOntologyLoaderConfiguration |
setEntityExpansionLimit(String limit) |
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(MissingOntologyHeaderStrategy missingOntologyHeaderStrategy) |
OWLOntologyLoaderConfiguration |
setPriorityCollectionSorting(PriorityCollectionSorting sorting)
Set the priorty collection sorting option.
|
OWLOntologyLoaderConfiguration |
setRepairIllegalPunnings(boolean b) |
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) |
boolean |
shouldRepairIllegalPunnings() |
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 clearIgnoredImports()
OWLOntologyLoaderConfiguration with the list of ignored ontology document
IRIs set to be empty.public boolean isIgnoredImport(IRI iri)
iri - iri to checkpublic 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 PriorityCollectionSorting getPriorityCollectionSorting()
PriorityCollectionSorting for this configuration. It determines how
parsers, storers and mappers are ordered. Default is
PriorityCollectionSorting.ON_SET_INJECTION_ONLYpublic OWLOntologyLoaderConfiguration setPriorityCollectionSorting(PriorityCollectionSorting sorting)
sorting - the sorting option to be used.OWLOntologyLoaderConfiguration with the new sorting option set.public int getConnectionTimeout()
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.public MissingImportHandlingStrategy getMissingImportHandlingStrategy()
MissingImportHandlingStrategy for the strategies and their
descriptions.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 MissingOntologyHeaderStrategy getMissingOntologyHeaderStrategy()
public OWLOntologyLoaderConfiguration setMissingOntologyHeaderStrategy(MissingOntologyHeaderStrategy missingOntologyHeaderStrategy)
missingOntologyHeaderStrategy - new valuepublic int getRetriesToAttempt()
public OWLOntologyLoaderConfiguration setRetriesToAttempt(int retries)
retries - new value of retries to attemptpublic boolean isAcceptingHTTPCompression()
public OWLOntologyLoaderConfiguration setAcceptingHTTPCompression(boolean b)
b - true if HTTP compression should be acceptedpublic boolean isFollowRedirects()
public OWLOntologyLoaderConfiguration setFollowRedirects(boolean value)
value - true if redirects should be followed across protocols, false otherwise.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 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 isReportStackTrace()
public boolean isStrict()
public boolean shouldRepairIllegalPunnings()
public OWLOntologyLoaderConfiguration setStrict(boolean strict)
strict - new value for strictpublic 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.public OWLOntologyLoaderConfiguration setTreatDublinCoreAsBuiltIn(boolean value)
value - true if Dublin Core vocabulary should be treated as built in.public String getBannedParsers()
public OWLOntologyLoaderConfiguration setBannedParsers(String ban)
ban - list of parser factory class names that should be skipped when attempting ontology
parsing. The list is space separated.OntologyConfigurator with the new option set.public String getEntityExpansionLimit()
public OWLOntologyLoaderConfiguration setEntityExpansionLimit(String limit)
limit - maximum number of XML entities to expand.OntologyConfigurator with the new option set.public OWLOntologyLoaderConfiguration setReportStackTraces(boolean b)
b - the new value for the flagOWLOntologyLoaderConfiguration with the report flag set to the new value.public OWLOntologyLoaderConfiguration setRepairIllegalPunnings(boolean b)
b - if illegal punnings should be repairedOWLOntologyLoaderConfiguration with the repair flag set to the new value.Copyright © 2017 The University of Manchester. All rights reserved.