- All Implemented Interfaces:
Serializable
,Comparable<OntModelControls>
,Constable
Default settings for
OntConfig
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIf this key is set totrue
, there is a special type of class expressions, which includes any structure declared asowl:Class
orowl:Restriction
that cannot be classified as a specific type.If this key is set totrue
, all class expressions are allowed to be named (can have URI).If this key is set totrue
, then the class/property hierarchies (e.g., seeOntClass.subClasses()
) are to be inferred by the naked model itself using builtin algorithms.Iftrue
, a multiple ontology header is allowed.Iftrue
,OntID
will be generated automatically if it is absent (as a b-node).Iftrue
, named class testing is compatible with the legacyorg.apache.jena.ontology.OntModel
, otherwise, a strict check against the specification for the class declaration is performed (owl:Class
for OWL &rdfs:Class
for RDFS types are required).Controlsowl:disjointWith
functionality.Controlsowl:equivalentClass
functionality.Controls dataowl:FunctionalProperty
functionality.Controlsowl:differentFrom
functionality.Controlsowl:sameAs
functionality.Controlsowl:inverseOf
functionality (InverseObjectProperty axiom).Controls objectowl:FunctionalProperty
functionality.Controlsowl:AsymmetricProperty
functionality.Controlsowl:propertyChainAxiom
functionality.Controlsowl:equivalentProperty
functionality.Controlsowl:InverseFunctionalProperty
functionality.Controlsowl:IrreflexiveProperty
functionality.Controlsowl:ReflexiveProperty
functionality.Controlsowl:SymmetricProperty
functionality.Controlsowl:TransitiveProperty
functionality.If this key is set totrue
, thenowl:DataRange
(OWL1) instead ofrdfs:Datatype
(OWL2).If this key is set totrue
, thenowl:distinctMembers
(OWL1) is used instead ofowl:members
(OWL2).Controlsowl:hasKey
functionality.If this key is set totrue
, thenowl:DataRange
andowl:distinctMembers
will also be considered, although in OWL2 they are deprecated.Controlsowl:disjointUnionOf
functionality.If this key is set totrue
, thenowl:NamedIndividual
declaration is used for creating individuals.Controlsowl:propertyDisjointWith
functionality.If this key is set totrue
, thenowl:qualifiedCardinality
,owl:maxQualifiedCardinality
,owl:minQualifiedCardinality
predicates are allowed for Cardinality restrictions.Used whileOntModel.individuals()
. -
Method Summary
Modifier and TypeMethodDescriptionstatic OntModelControls
Returns the enum constant of this class with the specified name.static OntModelControls[]
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
-
USE_GENERATE_ONTOLOGY_HEADER_IF_ABSENT_STRATEGY
Iftrue
,OntID
will be generated automatically if it is absent (as a b-node). A valid OWL ontology must have a single ontology ID. -
USE_CHOOSE_MOST_SUITABLE_ONTOLOGY_HEADER_STRATEGY
Iftrue
, a multiple ontology header is allowed. Since a valid OWL ontology can have only a single ontology ID, the most suitable will be chosen. Note that if there are several anonymous headers with similar contents, then there is no guarantee that the same node will always be selected after restarting JVM. -
USE_BUILTIN_HIERARCHY_SUPPORT
If this key is set totrue
, then the class/property hierarchies (e.g., seeOntClass.subClasses()
) are to be inferred by the naked model itself using builtin algorithms. Should not be used in conjunction with Reasoner. -
USE_OWL2_DEPRECATED_VOCABULARY_FEATURE
If this key is set totrue
, thenowl:DataRange
andowl:distinctMembers
will also be considered, although in OWL2 they are deprecated. Applicable only for OWL2. -
USE_OWL1_DATARANGE_DECLARATION_FEATURE
If this key is set totrue
, thenowl:DataRange
(OWL1) instead ofrdfs:Datatype
(OWL2). -
USE_OWL1_DISTINCT_MEMBERS_PREDICATE_FEATURE
If this key is set totrue
, thenowl:distinctMembers
(OWL1) is used instead ofowl:members
(OWL2). E.g._:x rdf:type owl:AllDifferent . _:x owl:distinctMembers (a1...an).
-
ALLOW_NAMED_CLASS_EXPRESSIONS
If this key is set totrue
, all class expressions are allowed to be named (can have URI). This option is for compatibility with legacyorg.apache.jena.ontology.OntModel
. In OWL2, complex class expression should be anonymous. -
ALLOW_GENERIC_CLASS_EXPRESSIONS
If this key is set totrue
, there is a special type of class expressions, which includes any structure declared asowl:Class
orowl:Restriction
that cannot be classified as a specific type. Casting such a construction to a particular class type (e.g.generic.as(OntClass.OneOf.class)
) will result in an exception, but as a class expression, it can a type of the individual, can be a domain for property, etc. This option is for compatibility with legacyorg.apache.jena.ontology.OntModel
. -
USE_SIMPLIFIED_TYPE_CHECKING_WHILE_LIST_INDIVIDUALS
Used whileOntModel.individuals()
. Iftrue
, the class type is checked only by declaration (owl:Class
&owl:Restriction
for OWL profile,rdfs:Class
for RDFS profile). Otherwise, a full checking is performed. -
USE_LEGACY_COMPATIBLE_NAMED_CLASS_FACTORY
Iftrue
, named class testing is compatible with the legacyorg.apache.jena.ontology.OntModel
, otherwise, a strict check against the specification for the class declaration is performed (owl:Class
for OWL &rdfs:Class
for RDFS types are required). Note that this only applies toEnhNode#canAs
andEnhNode#as
methods; iteration (e.g., methodsOntModel.ontObjects(OntClass.class)
) still does not take into account classes with incorrect or missing declarations. For legacy Jena's casting rules seeorg.apache.jena.ontology.Profile
impls. -
USE_OWL2_NAMED_INDIVIDUAL_DECLARATION_FEATURE
If this key is set totrue
, thenowl:NamedIndividual
declaration is used for creating individuals. -
USE_OWL2_CLASS_HAS_KEY_FEATURE
Controlsowl:hasKey
functionality. If disabled,OntClass#hasKeys()
will return an emptyStream
, modification operations, such asOntClass#addHasKey(OntRelationalProperty...)
, will throwOntJenaException.Unsupported
exception. -
USE_OWL2_NAMED_CLASS_DISJOINT_UNION_FEATURE
Controlsowl:disjointUnionOf
functionality. If disabled,OntClass.Named#disjointUnions()
will return an emptyStream
, modification operations, such asOntClass.Named#addDisjointUnion(OntClass...)
, will throwOntJenaException.Unsupported
exception. -
USE_OWL_CLASS_DISJOINT_WITH_FEATURE
Controlsowl:disjointWith
functionality. If disabled,OntClass#disjoints()
will return an emptyStream
, modification operations, such asOntClass#addDisjointClass(OntClass)
, will throwOntJenaException.Unsupported
exception. -
USE_OWL_CLASS_EQUIVALENT_FEATURE
Controlsowl:equivalentClass
functionality. If disabled,OntClass#equivalentClasses()
will return an emptyStream
, modification operations, such asOntClass#addEquivalentClass(OntClass)
, will throwOntJenaException.Unsupported
exception. -
USE_OWL2_PROPERTY_DISJOINT_WITH_FEATURE
Controlsowl:propertyDisjointWith
functionality. If disabled,OntRelationalProperty#disjointProperties()
will return an emptyStream
, modification operations, such asOntObjectProperty#addDisjointProperty(OntObjectProperty)
, will throwOntJenaException.Unsupported
exception. -
USE_OWL_PROPERTY_EQUIVALENT_FEATURE
Controlsowl:equivalentProperty
functionality. If disabled,OntRelationalProperty#equivalentProperties()
will return an emptyStream
, modification operations, such asOntObjectProperty#addEquivalentProperty(OntObjectProperty)
, will throwOntJenaException.Unsupported
exception. -
USE_OWL_DATA_PROPERTY_FUNCTIONAL_FEATURE
Controls dataowl:FunctionalProperty
functionality. If disabled,OntDataProperty#isFunctional()
will returnfalse
, modification operations, such asOntDataProperty#setFunctional(boolean)
, will throwOntJenaException.Unsupported
exception. -
USE_OWL_OBJECT_PROPERTY_FUNCTIONAL_FEATURE
Controls objectowl:FunctionalProperty
functionality. If disabled,OntObjectProperty#isFunctional()
will returnfalse
, modification operations, such asOntObjectProperty#setFunctional(boolean)
, will throwOntJenaException.Unsupported
exception. -
USE_OWL_PROPERTY_INVERSE_FUNCTIONAL_FEATURE
Controlsowl:InverseFunctionalProperty
functionality. If disabled,OntObjectProperty#isInverseFunctional()
will returnfalse
, modification operations, such asOntObjectProperty#setInverseFunctional(boolean)
, will throwOntJenaException.Unsupported
exception. -
USE_OWL_PROPERTY_SYMMETRIC_FEATURE
Controlsowl:SymmetricProperty
functionality. If disabled,OntObjectProperty#isSymmetric()
will returnfalse
, modification operations, such asOntObjectProperty#setSymmetric(boolean)
, will throwOntJenaException.Unsupported
exception. -
USE_OWL_PROPERTY_ASYMMETRIC_FEATURE
Controlsowl:AsymmetricProperty
functionality. If disabled,OntObjectProperty#isAsymmetric()
will returnfalse
, modification operations, such asOntObjectProperty#setAsymmetric(boolean)
, will throwOntJenaException.Unsupported
exception. -
USE_OWL_PROPERTY_TRANSITIVE_FEATURE
Controlsowl:TransitiveProperty
functionality. If disabled,OntObjectProperty#isTransitive()
will returnfalse
, modification operations, such asOntObjectProperty#setTransitive(boolean)
, will throwOntJenaException.Unsupported
exception. -
USE_OWL_PROPERTY_REFLEXIVE_FEATURE
Controlsowl:ReflexiveProperty
functionality. If disabled,OntObjectProperty#isReflexive()
will returnfalse
, modification operations, such asOntObjectProperty#setReflexive(boolean)
, will throwOntJenaException.Unsupported
exception. -
USE_OWL_PROPERTY_IRREFLEXIVE_FEATURE
Controlsowl:IrreflexiveProperty
functionality. If disabled,OntObjectProperty#isIrreflexive()
will returnfalse
, modification operations, such asOntObjectProperty#setIrreflexive(boolean)
, will throwOntJenaException.Unsupported
exception. -
USE_OWL_INVERSE_OBJECT_PROPERTIES_FEATURE
Controlsowl:inverseOf
functionality (InverseObjectProperty axiom). If disabled,OntObjectProperty#inverseProperties()
will return an emptyStream
, modification operations, such asOntObjectProperty#addInverseProperty(OntObjectProperty)
, will throwOntJenaException.Unsupported
exception. -
USE_OWL_PROPERTY_CHAIN_AXIOM_FEATURE
Controlsowl:propertyChainAxiom
functionality. If disabled,OntObjectProperty#propertyChains()
will returnfalse
, modification operations, such asOntObjectProperty#addPropertyChain(OntObjectProperty...)
, will throwOntJenaException.Unsupported
exception. -
USE_OWL_INDIVIDUAL_SAME_AS_FEATURE
Controlsowl:sameAs
functionality. If disabled,OntIndividual#sameIndividuals()
will returnfalse
, modification operations, such asOntIndividual#addSameIndividual(OntIndividual)
, will throwOntJenaException.Unsupported
exception. -
USE_OWL_INDIVIDUAL_DIFFERENT_FROM_FEATURE
Controlsowl:differentFrom
functionality. If disabled,OntIndividual#differentIndividuals()
will returnfalse
, modification operations, such asOntIndividual#removeDifferentIndividual(Resource)
, will throwOntJenaException.Unsupported
exception. -
USE_OWL2_QUALIFIED_CARDINALITY_RESTRICTION_FEATURE
If this key is set totrue
, thenowl:qualifiedCardinality
,owl:maxQualifiedCardinality
,owl:minQualifiedCardinality
predicates are allowed for Cardinality restrictions.
-
-
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
-