Enum Class ConfigurationOptions

java.lang.Object
java.lang.Enum<ConfigurationOptions>
org.semanticweb.owlapi.model.parameters.ConfigurationOptions
All Implemented Interfaces:
Serializable, Comparable<ConfigurationOptions>, java.lang.constant.Constable

public enum ConfigurationOptions extends Enum<ConfigurationOptions>
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.
  • Enum Constant Details

    • ACCEPT_HTTP_COMPRESSION

      public static final ConfigurationOptions ACCEPT_HTTP_COMPRESSION
      True if HTTP compression should be used.
    • CONNECTION_TIMEOUT

      public static final ConfigurationOptions CONNECTION_TIMEOUT
      Timeout for connections.
    • FOLLOW_REDIRECTS

      public static final ConfigurationOptions FOLLOW_REDIRECTS
      True if redirects should be followed across protocols.
    • LOAD_ANNOTATIONS

      public static final ConfigurationOptions LOAD_ANNOTATIONS
      True if annotations should be loaded, false if skipped.
    • MISSING_IMPORT_HANDLING_STRATEGY

      public static final ConfigurationOptions MISSING_IMPORT_HANDLING_STRATEGY
      Missing imports handling strategy.
    • MISSING_ONTOLOGY_HEADER_STRATEGY

      public static final ConfigurationOptions MISSING_ONTOLOGY_HEADER_STRATEGY
      Default missing ontology strategy.
    • REPORT_STACK_TRACES

      public static final ConfigurationOptions REPORT_STACK_TRACES
      Flag to enable stack traces on parsing exceptions.
    • RETRIES_TO_ATTEMPT

      public static final ConfigurationOptions RETRIES_TO_ATTEMPT
      Number of retries to attempt when retrieving an ontology from a remote URL. Defaults to 5.
    • PARSE_WITH_STRICT_CONFIGURATION

      public static final ConfigurationOptions PARSE_WITH_STRICT_CONFIGURATION
      True if strict parsing should be used.
    • TREAT_DUBLINCORE_AS_BUILTIN

      public static final ConfigurationOptions TREAT_DUBLINCORE_AS_BUILTIN
      True if Dublin Core.
    • PRIORITY_COLLECTION_SORTING

      public static final ConfigurationOptions PRIORITY_COLLECTION_SORTING
      sort configuration for priority collections
    • SAVE_IDS

      public static final ConfigurationOptions SAVE_IDS
      True if ids for blank nodes should always be written (axioms and anonymous individuals only).
    • REMAP_IDS

      public static final ConfigurationOptions REMAP_IDS
      True if all anonymous individuals should have their ids remapped after parsing.
    • USE_NAMESPACE_ENTITIES

      public static final ConfigurationOptions USE_NAMESPACE_ENTITIES
      True if entities should be used for namespace abbreviations.
    • INDENTING

      public static final ConfigurationOptions INDENTING
      True if indenting should be used when writing out a file.
    • INDENT_SIZE

      public static final ConfigurationOptions INDENT_SIZE
      Size of indentation between levels. Only used if indenting is to true.
    • LABELS_AS_BANNER

      public static final ConfigurationOptions LABELS_AS_BANNER
      True if rdfs:label values are to be used as banners in text output.
    • BANNERS_ENABLED

      public static final ConfigurationOptions BANNERS_ENABLED
      True if banners for ontology sections and entity comments should be output.
    • BANNED_PARSERS

      public static final ConfigurationOptions BANNED_PARSERS
      List of banned parsers keys.
    • ENTITY_EXPANSION_LIMIT

      public static final ConfigurationOptions ENTITY_EXPANSION_LIMIT
      Entity expansion limit for XML parsing.
    • REPAIR_ILLEGAL_PUNNINGS

      public static final ConfigurationOptions REPAIR_ILLEGAL_PUNNINGS
      Repair illegal punnings automatically.
    • AUTHORIZATION_VALUE

      public static final ConfigurationOptions AUTHORIZATION_VALUE
      Authorization header Value.
    • TRIM_TO_SIZE

      public static final ConfigurationOptions 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

      public static final ConfigurationOptions SKIP_MODULE_ANNOTATIONS
      True if annotations on entities included in modules should be skipped. By default annotations are included.
    • ALLOW_DUPLICATES_IN_CONSTRUCT_SETS

      public static final ConfigurationOptions 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 like Equivalent(A, A).
    • CACHE_SIZE

      public static final ConfigurationOptions CACHE_SIZE
      Max number of elements for caches.
    • OUTPUT_NAMED_GRAPH_IRI

      public static final ConfigurationOptions 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 with OWLDocumentFormat::setParameter("namedGraphOverride", "desired value").
  • Method Details

    • values

      public static ConfigurationOptions[] 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

      public static ConfigurationOptions valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • find

      @Nullable public static ConfigurationOptions find(String parameterName)
      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

      public <T> T getValue(Class<T> type, Map<ConfigurationOptions,Object> overrides)
      Type Parameters:
      T - type
      Parameters:
      type - type for this value
      overrides - 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

      public <T> T getDefaultValue(Class<T> type)
      Type Parameters:
      T - type
      Parameters:
      type - type to cast to
      Returns:
      default value