|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A property restriction that requires the named property to have a given individual as its value.
Method Summary | |
RDFNode |
getHasValue()
Answer the RDF value that all values of the restricted property must be equal to. |
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. |
void |
removeHasValue(RDFNode value)
Remove the statement that this restriction requires the restricted property to have the given value. |
void |
setHasValue(RDFNode value)
Assert that this restriction restricts the property to have the given value. |
Methods inherited from interface com.hp.hpl.jena.rdf.model.Resource |
abort, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, begin, commit, equals, getId, getLocalName, getModel, getNameSpace, getNode, getProperty, getURI, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, isAnon, listProperties, listProperties, removeAll, removeProperties, toString |
Methods inherited from interface com.hp.hpl.jena.rdf.model.RDFNode |
as, asNode, canAs, inModel, visitWith |
Method Detail |
public void setHasValue(RDFNode value)
Assert that this restriction restricts the property to have the given
value. Any existing statements for hasValue
will be removed.
value
- The RDF value (an individual or a literal)
that is the value that the restricted property must have to be a member of the
class defined by this restriction.
OntProfileException
- If the Profile.HAS_VALUE()
property is not supported in the current language profile.public RDFNode getHasValue()
Answer the RDF value that all values of the restricted property must be equal to.
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.
value
- An RDF value to test
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. If this statement is not true of the current model, nothing happens.
value
- An RDF value that is to be removed as the required value for the restricted property
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |