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() |
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.@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.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 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 shouldRepairIllegalPunnings()
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.public String getBannedParsers()
public String getAuthorizationValue()
public String getEntityExpansionLimit()
public boolean shouldTrimToSize()
@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.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 OWLOntologyLoaderConfiguration setEntityExpansionLimit(String limit)
limit - maximum number of XML entities to expand.OntologyConfigurator with the new option set.public OWLOntologyLoaderConfiguration setRepairIllegalPunnings(boolean b)
b - if illegal punnings should be repairedOWLOntologyLoaderConfiguration with the repair flag set to the new value.public OWLOntologyLoaderConfiguration setAuthorizationValue(String authorizationValue)
authorizationValue - Authorization header value.OntologyConfigurator with the new option set.public OWLOntologyLoaderConfiguration setTrimToSize(boolean value)
value - new value for trim to sizeOntologyConfigurator with the new option set.Copyright © 2018 The University of Manchester. All rights reserved.