Interface AsOWLDataProperty

All Known Subinterfaces:
OWLAnnotationProperty, OWLClass, OWLDataProperty, OWLDataPropertyExpression, OWLDatatype, OWLEntity, OWLLogicalEntity, OWLNamedIndividual, OWLObjectInverseOf, OWLObjectProperty, OWLObjectPropertyExpression, OWLProperty, OWLPropertyExpression
All Known Implementing Classes:
OWL2DatatypeImpl, OWLAnnotationPropertyImpl, OWLClassImpl, OWLDataPropertyImpl, OWLDatatypeImpl, OWLNamedIndividualImpl, OWLObjectInverseOfImpl, OWLObjectPropertyImpl

public interface AsOWLDataProperty
Convert to OWLDataProperty interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    A convenience method that obtains this entity as an OWLDataProperty (in order to avoid explicit casting).
    default boolean
    A convenience method that determines if this entity is an OWLDataProperty.
  • Method Details

    • isOWLDataProperty

      default boolean isOWLDataProperty()
      A convenience method that determines if this entity is an OWLDataProperty.
      Returns:
      true if this entity is an OWLDataProperty, otherwise false
    • asOWLDataProperty

      default OWLDataProperty asOWLDataProperty()
      A convenience method that obtains this entity as an OWLDataProperty (in order to avoid explicit casting).
      Returns:
      The entity as an OWLDataProperty.
      Throws:
      OWLRuntimeException - if this entity is not an OWLDataProperty (check with the isOWLDataProperty() method first).