/** * <p>Answer an iterator over all of the properties that are declared to be sub-properties of * this property. Each element of the iterator will be an {@link OntProperty}.</p> * @param direct If true, only answer the direcly adjacent properties in the * property hierarchy: i.e. eliminate any property for which there is a longer route * to reach that child under the sub-property relation. * @return An iterator over the sub-properties of this property. * @exception ProfileException If the {@link Profile#SUB_PROPERTY_OF()} property is not supported in the current language profile. */ @Override public ExtendedIterator<OntProperty> listSubProperties( boolean direct ) { return listDirectPropertyValues( getProfile().SUB_PROPERTY_OF(), "SUB_PROPERTY_OF", OntProperty.class, getProfile().SUB_PROPERTY_OF(), direct, true ); }
/** * <p>Answer an iterator over all of the properties that are declared to be sub-properties of * this property. Each element of the iterator will be an {@link OntProperty}.</p> * @param direct If true, only answer the direcly adjacent properties in the * property hierarchy: i.e. eliminate any property for which there is a longer route * to reach that child under the sub-property relation. * @return An iterator over the sub-properties of this property. * @exception ProfileException If the {@link Profile#SUB_PROPERTY_OF()} property is not supported in the current language profile. */ @Override public ExtendedIterator<OntProperty> listSubProperties( boolean direct ) { return listDirectPropertyValues( getProfile().SUB_PROPERTY_OF(), "SUB_PROPERTY_OF", OntProperty.class, getProfile().SUB_PROPERTY_OF(), direct, true ); }
/** * <p>Answer an iterator over all of the properties that are declared to be super-properties of * this property. Each element of the iterator will be an {@link OntProperty}.</p> * @param direct If true, only answer the directly adjacent properties in the * property hierarchy: i.e. eliminate any property for which there is a longer route * to reach that child under the super-property relation. * @return An iterator over the super-properties of this property. * @exception ProfileException If the {@link Profile#SUB_PROPERTY_OF()} property is not supported in the current language profile. */ @Override public ExtendedIterator<OntProperty> listSuperProperties( boolean direct ) { // Eclispe Oxygen (July 2017) generates a warning on use of "this::equals" in filterDrop. OntProperty op = this; return listDirectPropertyValues( getProfile().SUB_PROPERTY_OF(), "SUB_PROPERTY_OF", OntProperty.class, getProfile().SUB_PROPERTY_OF(), direct, false ) .filterDrop(op::equals); }
/** * <p>Answer an iterator over all of the properties that are declared to be super-properties of * this property. Each element of the iterator will be an {@link OntProperty}.</p> * @param direct If true, only answer the directly adjacent properties in the * property hierarchy: i.e. eliminate any property for which there is a longer route * to reach that child under the super-property relation. * @return An iterator over the super-properties of this property. * @exception ProfileException If the {@link Profile#SUB_PROPERTY_OF()} property is not supported in the current language profile. */ @Override public ExtendedIterator<OntProperty> listSuperProperties( boolean direct ) { // Eclispe Oxygen (July 2017) generates a warning on use of "this::equals" in filterDrop. OntProperty op = this; return listDirectPropertyValues( getProfile().SUB_PROPERTY_OF(), "SUB_PROPERTY_OF", OntProperty.class, getProfile().SUB_PROPERTY_OF(), direct, false ) .filterDrop(op::equals); }