| com.hp.hpl.jena.ontology.SomeValuesFromRestriction
All known Subclasses: com.hp.hpl.jena.ontology.impl.SomeValuesFromRestrictionImpl,
SomeValuesFromRestriction | public interface SomeValuesFromRestriction extends Restriction(Code) | |
A property restriction that requires the named property to have at least one
range instance belonging to the given class.
author: Ian Dickinson, HP Labs author: (email) version: CVS $Id: SomeValuesFromRestriction.java,v 1.10 2008/01/02 12:06:41 andy_seaborne Exp $ |
Method Summary | |
public Resource | getSomeValuesFrom() Answer the resource characterising the constraint on at least one value of the restricted property. | public boolean | hasSomeValuesFrom(Resource cls) Answer true if this property restriction has the given class as the class to which at least one
value of the restricted property must belong.
Parameters: cls - A class to test True if the given class is the class to which at least one value must belong exception: OntProfileException - If the Profile.SOME_VALUES_FROM property is not supported in the current language profile. | public void | removeSomeValuesFrom(Resource cls) Remove the statement that this restriction has some values from the given class among
the values for the restricted property. | public void | setSomeValuesFrom(Resource cls) Assert that this restriction restricts the property to have at least one value
that is a member of the given class. |
getSomeValuesFrom | public Resource getSomeValuesFrom()(Code) | | Answer the resource characterising the constraint on at least one value of the restricted property. This may be
a class, the URI of a concrete datatype, a DataRange object or the URI rdfs:Literal.
A resource, which will have been pre-converted to the appropriate Java value type(OntClass or DataRange) if appropriate. exception: OntProfileException - If the Profile.ALL_VALUES_FROM property is not supported in the current language profile. |
hasSomeValuesFrom | public boolean hasSomeValuesFrom(Resource cls)(Code) | | Answer true if this property restriction has the given class as the class to which at least one
value of the restricted property must belong.
Parameters: cls - A class to test True if the given class is the class to which at least one value must belong exception: OntProfileException - If the Profile.SOME_VALUES_FROM property is not supported in the current language profile. |
removeSomeValuesFrom | public void removeSomeValuesFrom(Resource cls)(Code) | | Remove the statement that this restriction has some values from the given class among
the values for the restricted property. If this statement
is not true of the current model, nothing happens.
Parameters: cls - A Resource the denotes the class to be removed from this restriction |
setSomeValuesFrom | public void setSomeValuesFrom(Resource cls)(Code) | | Assert that this restriction restricts the property to have at least one value
that is a member of the given class. Any existing statements for someValuesFrom
will be removed.
Parameters: cls - The class that at least one value of the property must belong to exception: OntProfileException - If the Profile.SOME_VALUES_FROM property is not supported in the current language profile. |
|
|