Method Summary |
|
public void | addDistinctMember(Resource res) Add the given individual to the list of distinct members of this AllDifferent declaration.
Parameters: res - A resource that will be added to the list of all different members. exception: OntProfileException - If the Profile.DISTINCT_MEMBERS property is not supported in the current language profile. |
public void | addDistinctMembers(Iterator individuals) Add the given individuals to the list of distinct members of this AllDifferent declaration.
Parameters: individuals - An iterator over the distinct invididuals that will be added exception: OntProfileException - If the Profile.DISTINCT_MEMBERS property is not supported in the current language profile. |
public RDFList | getDistinctMembers() Answer the list of distinct members for this AllDifferent declaration.
The list of individuals declared distinct by this AllDifferent declaration. exception: OntProfileException - If the Profile.DISTINCT_MEMBERS property is not supported in the current language profile. |
public boolean | hasDistinctMember(Resource res) Answer true if this AllDifferent declaration includes res as one of the distinct individuals.
Parameters: res - A resource to test against True if res is declared to be distinct from the other individuals in this declation. exception: OntProfileException - If the Profile.DISTINCT_MEMBERS property is not supported in the current language profile. |
public ExtendedIterator | listDistinctMembers() Answer an iterator over all of the individuals that are declared to be distinct by
this AllDifferent declaration. |
public void | removeDistinctMember(Resource res) Remove the given resource from the list of distinct individuals. |
public void | setDistinctMembers(RDFList members) Assert that the list of distinct individuals in this AllDifferent declaration
is the given list. |