|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataRange
Represents an ontology DataRange: a class-like construct that contains only concrete data literals. See section 6.2 of the OWL language reference for details. In OWL Full, there is no difference between a DataRange and a Class.
Method Summary | |
---|---|
void |
addOneOf(Iterator<Literal> literals)
Add each literal from the given iteratation to the enumeration that defines the permissible values of this datarange. |
void |
addOneOf(Literal lit)
Add a literal to the enumeration that defines the permissible values of this class. |
RDFList |
getOneOf()
Answer a list of literals that defines the extension of this datarange. |
boolean |
hasOneOf(Literal lit)
Answer true if the given literal is one of the enumerated literals that are the permissible values of this datarange. |
com.hp.hpl.jena.util.iterator.ExtendedIterator<Literal> |
listOneOf()
Answer an iterator over all of the literals that are declared to be the permissible values for this class. |
void |
removeOneOf(Literal lit)
Remove the statement that this enumeration includes lit among its members. |
void |
setOneOf(RDFList en)
Assert that this data range is exactly the enumeration of the given individuals. |
Methods inherited from interface com.hp.hpl.jena.rdf.model.Resource |
---|
abort, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addProperty, addProperty, addProperty, addProperty, begin, commit, equals, getId, getLocalName, getNameSpace, getProperty, getPropertyResourceValue, getRequiredProperty, getURI, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, inModel, listProperties, listProperties, removeAll, removeProperties, toString |
Methods inherited from interface com.hp.hpl.jena.rdf.model.RDFNode |
---|
as, asLiteral, asResource, canAs, getModel, isAnon, isLiteral, isResource, isURIResource, visitWith |
Methods inherited from interface com.hp.hpl.jena.graph.FrontsNode |
---|
asNode |
Method Detail |
---|
void setOneOf(RDFList en)
Assert that this data range is exactly the enumeration of the given individuals. Any existing
statements for oneOf
will be removed.
en
- A list of literals that defines the permissible values for this datarange
OntProfileException
- If the Profile.ONE_OF()
property is not supported in the current language profile.void addOneOf(Literal lit)
Add a literal to the enumeration that defines the permissible values of this class.
lit
- A literal to add to the enumeration
OntProfileException
- If the Profile.ONE_OF()
property is not supported in the current language profile.void addOneOf(Iterator<Literal> literals)
Add each literal from the given iteratation to the enumeration that defines the permissible values of this datarange.
literals
- An iterator over literals
OntProfileException
- If the Profile.ONE_OF()
property is not supported in the current language profile.RDFList getOneOf()
Answer a list of literals that defines the extension of this datarange.
OntProfileException
- If the Profile.ONE_OF()
property is not supported in the current language profile.com.hp.hpl.jena.util.iterator.ExtendedIterator<Literal> listOneOf()
Answer an iterator over all of the literals that are declared to be the permissible values for
this class. Each element of the iterator will be an Literal
.
OntProfileException
- If the Profile.ONE_OF()
property is not supported in the current language profile.boolean hasOneOf(Literal lit)
Answer true if the given literal is one of the enumerated literals that are the permissible values of this datarange.
lit
- A literal to test
OntProfileException
- If the Profile.ONE_OF()
property is not supported in the current language profile.void removeOneOf(Literal lit)
Remove the statement that this enumeration includes lit
among its members. If this statement
is not true of the current model, nothing happens.
lit
- A literal that may be declared to be part of this data range, and which is
no longer to be one of the data range values.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |