- 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 ConstantsEnum ConstantDescriptionIf this key is set totrue, there is a special type of class expressions, which includes any structure declared asowl:Classorowl:Restrictionthat 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,OntIDwill 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:Classfor OWL &rdfs:Classfor RDFS types are required).Controlsowl:disjointWithfunctionality.Controlsowl:equivalentClassfunctionality.Controls dataowl:FunctionalPropertyfunctionality.Controlsowl:differentFromfunctionality.Controlsowl:sameAsfunctionality.Controlsowl:inverseOffunctionality (InverseObjectProperty axiom).Controls objectowl:FunctionalPropertyfunctionality.Controlsowl:AsymmetricPropertyfunctionality.Controlsowl:propertyChainAxiomfunctionality.Controlsowl:equivalentPropertyfunctionality.Controlsowl:InverseFunctionalPropertyfunctionality.Controlsowl:IrreflexivePropertyfunctionality.Controlsowl:ReflexivePropertyfunctionality.Controlsowl:SymmetricPropertyfunctionality.Controlsowl:TransitivePropertyfunctionality.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:hasKeyfunctionality.If this key is set totrue, thenowl:DataRangeandowl:distinctMemberswill also be considered, although in OWL2 they are deprecated.Controlsowl:disjointUnionOffunctionality.If this key is set totrue, thenowl:NamedIndividualdeclaration is used for creating individuals.Controlsowl:propertyDisjointWithfunctionality.If this key is set totrue, thenowl:qualifiedCardinality,owl:maxQualifiedCardinality,owl:minQualifiedCardinalitypredicates are allowed for Cardinality restrictions.Used whileOntModel.individuals(). -
Method Summary
Modifier and TypeMethodDescriptionstatic OntModelControlsReturns 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,OntIDwill 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:DataRangeandowl:distinctMemberswill 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:Classorowl:Restrictionthat 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:Restrictionfor OWL profile,rdfs:Classfor 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:Classfor OWL &rdfs:Classfor RDFS types are required). Note that this only applies toEnhNode#canAsandEnhNode#asmethods; 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.Profileimpls. -
USE_OWL2_NAMED_INDIVIDUAL_DECLARATION_FEATURE
If this key is set totrue, thenowl:NamedIndividualdeclaration is used for creating individuals. -
USE_OWL2_CLASS_HAS_KEY_FEATURE
Controlsowl:hasKeyfunctionality. If disabled,OntClass#hasKeys()will return an emptyStream, modification operations, such asOntClass#addHasKey(OntRelationalProperty...), will throwOntJenaException.Unsupportedexception. -
USE_OWL2_NAMED_CLASS_DISJOINT_UNION_FEATURE
Controlsowl:disjointUnionOffunctionality. If disabled,OntClass.Named#disjointUnions()will return an emptyStream, modification operations, such asOntClass.Named#addDisjointUnion(OntClass...), will throwOntJenaException.Unsupportedexception. -
USE_OWL_CLASS_DISJOINT_WITH_FEATURE
Controlsowl:disjointWithfunctionality. If disabled,OntClass#disjoints()will return an emptyStream, modification operations, such asOntClass#addDisjointClass(OntClass), will throwOntJenaException.Unsupportedexception. -
USE_OWL_CLASS_EQUIVALENT_FEATURE
Controlsowl:equivalentClassfunctionality. If disabled,OntClass#equivalentClasses()will return an emptyStream, modification operations, such asOntClass#addEquivalentClass(OntClass), will throwOntJenaException.Unsupportedexception. -
USE_OWL2_PROPERTY_DISJOINT_WITH_FEATURE
Controlsowl:propertyDisjointWithfunctionality. If disabled,OntRelationalProperty#disjointProperties()will return an emptyStream, modification operations, such asOntObjectProperty#addDisjointProperty(OntObjectProperty), will throwOntJenaException.Unsupportedexception. -
USE_OWL_PROPERTY_EQUIVALENT_FEATURE
Controlsowl:equivalentPropertyfunctionality. If disabled,OntRelationalProperty#equivalentProperties()will return an emptyStream, modification operations, such asOntObjectProperty#addEquivalentProperty(OntObjectProperty), will throwOntJenaException.Unsupportedexception. -
USE_OWL_DATA_PROPERTY_FUNCTIONAL_FEATURE
Controls dataowl:FunctionalPropertyfunctionality. If disabled,OntDataProperty#isFunctional()will returnfalse, modification operations, such asOntDataProperty#setFunctional(boolean), will throwOntJenaException.Unsupportedexception. -
USE_OWL_OBJECT_PROPERTY_FUNCTIONAL_FEATURE
Controls objectowl:FunctionalPropertyfunctionality. If disabled,OntObjectProperty#isFunctional()will returnfalse, modification operations, such asOntObjectProperty#setFunctional(boolean), will throwOntJenaException.Unsupportedexception. -
USE_OWL_PROPERTY_INVERSE_FUNCTIONAL_FEATURE
Controlsowl:InverseFunctionalPropertyfunctionality. If disabled,OntObjectProperty#isInverseFunctional()will returnfalse, modification operations, such asOntObjectProperty#setInverseFunctional(boolean), will throwOntJenaException.Unsupportedexception. -
USE_OWL_PROPERTY_SYMMETRIC_FEATURE
Controlsowl:SymmetricPropertyfunctionality. If disabled,OntObjectProperty#isSymmetric()will returnfalse, modification operations, such asOntObjectProperty#setSymmetric(boolean), will throwOntJenaException.Unsupportedexception. -
USE_OWL_PROPERTY_ASYMMETRIC_FEATURE
Controlsowl:AsymmetricPropertyfunctionality. If disabled,OntObjectProperty#isAsymmetric()will returnfalse, modification operations, such asOntObjectProperty#setAsymmetric(boolean), will throwOntJenaException.Unsupportedexception. -
USE_OWL_PROPERTY_TRANSITIVE_FEATURE
Controlsowl:TransitivePropertyfunctionality. If disabled,OntObjectProperty#isTransitive()will returnfalse, modification operations, such asOntObjectProperty#setTransitive(boolean), will throwOntJenaException.Unsupportedexception. -
USE_OWL_PROPERTY_REFLEXIVE_FEATURE
Controlsowl:ReflexivePropertyfunctionality. If disabled,OntObjectProperty#isReflexive()will returnfalse, modification operations, such asOntObjectProperty#setReflexive(boolean), will throwOntJenaException.Unsupportedexception. -
USE_OWL_PROPERTY_IRREFLEXIVE_FEATURE
Controlsowl:IrreflexivePropertyfunctionality. If disabled,OntObjectProperty#isIrreflexive()will returnfalse, modification operations, such asOntObjectProperty#setIrreflexive(boolean), will throwOntJenaException.Unsupportedexception. -
USE_OWL_INVERSE_OBJECT_PROPERTIES_FEATURE
Controlsowl:inverseOffunctionality (InverseObjectProperty axiom). If disabled,OntObjectProperty#inverseProperties()will return an emptyStream, modification operations, such asOntObjectProperty#addInverseProperty(OntObjectProperty), will throwOntJenaException.Unsupportedexception. -
USE_OWL_PROPERTY_CHAIN_AXIOM_FEATURE
Controlsowl:propertyChainAxiomfunctionality. If disabled,OntObjectProperty#propertyChains()will returnfalse, modification operations, such asOntObjectProperty#addPropertyChain(OntObjectProperty...), will throwOntJenaException.Unsupportedexception. -
USE_OWL_INDIVIDUAL_SAME_AS_FEATURE
Controlsowl:sameAsfunctionality. If disabled,OntIndividual#sameIndividuals()will returnfalse, modification operations, such asOntIndividual#addSameIndividual(OntIndividual), will throwOntJenaException.Unsupportedexception. -
USE_OWL_INDIVIDUAL_DIFFERENT_FROM_FEATURE
Controlsowl:differentFromfunctionality. If disabled,OntIndividual#differentIndividuals()will returnfalse, modification operations, such asOntIndividual#removeDifferentIndividual(Resource), will throwOntJenaException.Unsupportedexception. -
USE_OWL2_QUALIFIED_CARDINALITY_RESTRICTION_FEATURE
If this key is set totrue, thenowl:qualifiedCardinality,owl:maxQualifiedCardinality,owl:minQualifiedCardinalitypredicates 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
-