/** * <p>Answer the property that this property restriction applies to. If there is * more than one such resource, an arbitrary selection is made (though well-defined property restrictions * should not have more than one <code>onProperty</code> statement.</p> * @return The property that this property restriction applies to * @exception ProfileException If the {@link Profile#ON_PROPERTY()} property is not supported in the current language profile. */ @Override public OntProperty getOnProperty() { return objectAs( getProfile().ON_PROPERTY(), "ON_PROPERTY", OntProperty.class ); }
/** * <p>Answer the property that this property restriction applies to. If there is * more than one such resource, an arbitrary selection is made (though well-defined property restrictions * should not have more than one <code>onProperty</code> statement.</p> * @return The property that this property restriction applies to * @exception ProfileException If the {@link Profile#ON_PROPERTY()} property is not supported in the current language profile. */ @Override public OntProperty getOnProperty() { return objectAs( getProfile().ON_PROPERTY(), "ON_PROPERTY", OntProperty.class ); }