Interface DataRange

All Superinterfaces:
FrontsNode, OntResource, RDFNode, Resource
All Known Implementing Classes:
DataRangeImpl

public interface DataRange extends OntResource

Represents an ontology DataRange: a class-like construct that contains only concrete data literals. See section 6.2 of the OWL language reference for details. In OWL Full, there is no difference between a DataRange and a Class.

  • Method Details

    • setOneOf

      void setOneOf(RDFList en)

      Assert that this data range is exactly the enumeration of the given individuals. Any existing statements for oneOf will be removed.

      Parameters:
      en - A list of literals that defines the permissible values for this datarange
      Throws:
      ProfileException - If the Profile.ONE_OF() property is not supported in the current language profile.
    • addOneOf

      void addOneOf(Literal lit)

      Add a literal to the enumeration that defines the permissible values of this class.

      Parameters:
      lit - A literal to add to the enumeration
      Throws:
      ProfileException - If the Profile.ONE_OF() property is not supported in the current language profile.
    • addOneOf

      void addOneOf(Iterator<Literal> literals)

      Add each literal from the given iteration to the enumeration that defines the permissible values of this datarange.

      Parameters:
      literals - An iterator over literals
      Throws:
      ProfileException - If the Profile.ONE_OF() property is not supported in the current language profile.
    • getOneOf

      RDFList getOneOf()

      Answer a list of literals that defines the extension of this datarange.

      Returns:
      A list of literals that is the permissible values
      Throws:
      ProfileException - If the Profile.ONE_OF() property is not supported in the current language profile.
    • listOneOf

      Answer an iterator over all of the literals that are declared to be the permissible values for this class. Each element of the iterator will be an Literal.

      Returns:
      An iterator over the literals that are the permissible values
      Throws:
      ProfileException - If the Profile.ONE_OF() property is not supported in the current language profile.
    • hasOneOf

      boolean hasOneOf(Literal lit)

      Answer true if the given literal is one of the enumerated literals that are the permissible values of this datarange.

      Parameters:
      lit - A literal to test
      Returns:
      True if the given literal is in the permissible values for this class.
      Throws:
      ProfileException - If the Profile.ONE_OF() property is not supported in the current language profile.
    • removeOneOf

      void removeOneOf(Literal lit)

      Remove the statement that this enumeration includes lit among its members. If this statement is not true of the current model, nothing happens.

      Parameters:
      lit - A literal that may be declared to be part of this data range, and which is no longer to be one of the data range values.