Enum Class PunningsMode

java.lang.Object
java.lang.Enum<PunningsMode>
org.apache.jena.ontapi.common.PunningsMode
All Implemented Interfaces:
Serializable, Comparable<PunningsMode>, Constable

public enum PunningsMode extends Enum<PunningsMode>
A standard personality mode to manage punnings.
See Also:
  • Enum Constant Details

    • DL1_COMPATIBLE

      public static final PunningsMode DL1_COMPATIBLE
      For OWL1 DL. OWL1 DL required a strict separation between the names of, e.g., classes and individuals. The difference between this mode and DL1 is that declarations rdfs:Class & rdfs:Datatype considered as OntClass declarations; also, owl:Restriction is considered as prohibited declaration for entities that aren't classes (properties, datarange, named individuals). See OntModelControls.USE_LEGACY_COMPATIBLE_NAMED_CLASS_FACTORY
    • DL1

      public static final PunningsMode DL1
      For OWL1 DL. OWL1 DL required a strict separation between the names of, e.g., classes and individuals.
    • DL2

      public static final PunningsMode DL2
      For OWL2 DL. Personality with four kinds of restriction on a rdf:type intersection (i.e. "illegal punnings"):
      • Named owl:Class <-> Named rdfs:Datatype
      • Named owl:ObjectProperty <-> owl:DatatypeProperty
      • Named owl:ObjectProperty <-> owl:AnnotationProperty
      • owl:AnnotationProperty <-> owl:DatatypeProperty
      each of the pairs above can't exist in the form of OWL-Entity in the same model at the same time. From specification: "OWL 2 DL imposes certain restrictions: it requires that a name cannot be used for both a class and a datatype and that a name can only be used for one kind of property."
    • DL_WEAK

      public static final PunningsMode DL_WEAK
      Forbidden intersections of rdf-declarations:
      • Class <-> Datatype
      • ObjectProperty <-> DataProperty
    • FULL

      public static final PunningsMode FULL
      Allow any entity type intersections.
  • Method Details

    • values

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