public class OWLOntologyLoaderConfiguration extends Object implements Serializable
OWLOntology
instances. 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.| 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.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 String getAuthorizationValue()
public boolean isAcceptingHTTPCompression()
public boolean shouldTrimToSize()
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 default 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.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.public boolean shouldSkipModuleAnnotations()
public OWLOntologyLoaderConfiguration withSkipModuleAnnotations(boolean value)
value - true if annotation axioms should not be added to modulesOWLOntologyLoaderConfiguration with the annotation axioms flag set to the
new value.public boolean shouldAllowDuplicatesInConstructSets()
Equivalent(A, A).public OWLOntologyLoaderConfiguration withAllowDuplicatesInConstructSets(boolean value)
value - false if collections used in constructs such as equivalent classes and
properties should be duplicate free.OWLOntologyLoaderConfiguration with the allow duplicates flag set to the
new value.Copyright © 2020 The University of Manchester. All rights reserved.