| |
|
| com.hp.hpl.jena.ontology.HasValueRestriction
All known Subclasses: com.hp.hpl.jena.ontology.impl.HasValueRestrictionImpl,
HasValueRestriction | public interface HasValueRestriction extends Restriction(Code) | |
A property restriction that requires the named property to have a given individual as
its value.
author: Ian Dickinson, HP Labs author: (email) version: CVS $Id: HasValueRestriction.java,v 1.11 2008/01/02 12:06:41 andy_seaborne Exp $ |
Method Summary | |
public RDFNode | getHasValue() Answer the RDF value that all values of the restricted property must be equal to.
An RDFNode that is the value of the restricted property exception: OntProfileException - If the Profile.HAS_VALUE property is not supported in the current language profile. | public boolean | hasValue(RDFNode value) Answer true if this property restriction has the given RDF value as the value which all
values of the restricted property must equal.
Parameters: value - An RDF value to test True if the given value is the value of the restricted property in this restriction exception: OntProfileException - If the Profile.HAS_VALUE property is not supported in the current language profile. | public void | removeHasValue(RDFNode value) Remove the statement that this restriction requires the restricted property to have
the given value. | public void | setHasValue(RDFNode value) Assert that this restriction restricts the property to have the given
value. |
getHasValue | public RDFNode getHasValue()(Code) | | Answer the RDF value that all values of the restricted property must be equal to.
An RDFNode that is the value of the restricted property exception: OntProfileException - If the Profile.HAS_VALUE property is not supported in the current language profile. |
hasValue | public boolean hasValue(RDFNode value)(Code) | | Answer true if this property restriction has the given RDF value as the value which all
values of the restricted property must equal.
Parameters: value - An RDF value to test True if the given value is the value of the restricted property in this restriction exception: OntProfileException - If the Profile.HAS_VALUE property is not supported in the current language profile. |
removeHasValue | public void removeHasValue(RDFNode value)(Code) | | Remove the statement that this restriction requires the restricted property to have
the given value. If this statement
is not true of the current model, nothing happens.
Parameters: value - An RDF value that is to be removed as the required value for the restricted property |
setHasValue | public void setHasValue(RDFNode value)(Code) | | Assert that this restriction restricts the property to have the given
value. Any existing statements for hasValue
will be removed.
Parameters: value - The RDF value (an individual or a literal) that is the value that the restricted property must have to be a member of theclass defined by this restriction. exception: OntProfileException - If the Profile.HAS_VALUE property is not supported in the current language profile. |
|
|
|