Enum Class ConfigurationOptions
- All Implemented Interfaces:
Serializable
,Comparable<ConfigurationOptions>
,java.lang.constant.Constable
This enum handles default values and config file or system property overrides. The config file
name is
owlapi.properties
; to enable, make sure the file is in the classpath. The
property names are "org.semanticweb.owlapi.model.parameters.ConfigurationOptions."+name()
, both in the properties file and in the system properties.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTrue if HTTP compression should be used.False if collections used in constructs such as equivalent classes and properties should be duplicate free.Authorization header Value.List of banned parsers keys.True if banners for ontology sections and entity comments should be output.Max number of elements for caches.Timeout for connections.Entity expansion limit for XML parsing.True if redirects should be followed across protocols.Size of indentation between levels.True if indenting should be used when writing out a file.True if rdfs:label values are to be used as banners in text output.True if annotations should be loaded, false if skipped.Missing imports handling strategy.Default missing ontology strategy.False if named graph IRIs should not be created for formats like TriG and RDF/JSON.True if strict parsing should be used.sort configuration for priority collectionsTrue if all anonymous individuals should have their ids remapped after parsing.Repair illegal punnings automatically.Flag to enable stack traces on parsing exceptions.Number of retries to attempt when retrieving an ontology from a remote URL.True if ids for blank nodes should always be written (axioms and anonymous individuals only).True if annotations on entities included in modules should be skipped.True if Dublin Core.True if ontologies should be trimmed to size after load.True if entities should be used for namespace abbreviations. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigurationOptions
<T> T
getDefaultValue
(Class<T> type) <T> T
getValue
(Class<T> type, Map<ConfigurationOptions, Object> overrides) static ConfigurationOptions
Returns the enum constant of this class with the specified name.static ConfigurationOptions[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
ACCEPT_HTTP_COMPRESSION
True if HTTP compression should be used. -
CONNECTION_TIMEOUT
Timeout for connections. -
FOLLOW_REDIRECTS
True if redirects should be followed across protocols. -
LOAD_ANNOTATIONS
True if annotations should be loaded, false if skipped. -
MISSING_IMPORT_HANDLING_STRATEGY
Missing imports handling strategy. -
MISSING_ONTOLOGY_HEADER_STRATEGY
Default missing ontology strategy. -
REPORT_STACK_TRACES
Flag to enable stack traces on parsing exceptions. -
RETRIES_TO_ATTEMPT
Number of retries to attempt when retrieving an ontology from a remote URL. Defaults to 5. -
PARSE_WITH_STRICT_CONFIGURATION
True if strict parsing should be used. -
TREAT_DUBLINCORE_AS_BUILTIN
True if Dublin Core. -
PRIORITY_COLLECTION_SORTING
sort configuration for priority collections -
SAVE_IDS
True if ids for blank nodes should always be written (axioms and anonymous individuals only). -
REMAP_IDS
True if all anonymous individuals should have their ids remapped after parsing. -
USE_NAMESPACE_ENTITIES
True if entities should be used for namespace abbreviations. -
INDENTING
True if indenting should be used when writing out a file. -
INDENT_SIZE
Size of indentation between levels. Only used if indenting is to true. -
LABELS_AS_BANNER
True if rdfs:label values are to be used as banners in text output. -
BANNERS_ENABLED
True if banners for ontology sections and entity comments should be output. -
BANNED_PARSERS
List of banned parsers keys. -
ENTITY_EXPANSION_LIMIT
Entity expansion limit for XML parsing. -
REPAIR_ILLEGAL_PUNNINGS
Repair illegal punnings automatically. -
AUTHORIZATION_VALUE
Authorization header Value. -
TRIM_TO_SIZE
True if ontologies should be trimmed to size after load. If set to false, trim will only happen on explicit call. -
SKIP_MODULE_ANNOTATIONS
True if annotations on entities included in modules should be skipped. By default annotations are included. -
ALLOW_DUPLICATES_IN_CONSTRUCT_SETS
False if collections used in constructs such as equivalent classes and properties should be duplicate free. Some systems might need to allow this, e.g., reasoners which require the creation of a tautology likeEquivalent(A, A)
. -
CACHE_SIZE
Max number of elements for caches. -
OUTPUT_NAMED_GRAPH_IRI
False if named graph IRIs should not be created for formats like TriG and RDF/JSON. This is the historic behaviour of the API. Switch to true to always use the ontology IRI as graph IRI for named ontologies. The named graph IRI can be set independently or overridden withOWLDocumentFormat::setParameter("namedGraphOverride", "desired value")
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
find
- Parameters:
parameterName
- parameter name - by default the full name of this enumeration plus the enum member name- Returns:
- matching ConfigurationOptions member, or null if none found
-
getValue
- Type Parameters:
T
- type- Parameters:
type
- type for this valueoverrides
- local overrides- Returns:
- value for this configuration option. Values are evaluated as follows: first, check overrides; if no overrides are present, check if a system property with the expected name is set; if not, check the config file; if no value is set in the config file, use the default defined in this enumeration.
-
getDefaultValue
- Type Parameters:
T
- type- Parameters:
type
- type to cast to- Returns:
- default value
-