public interface DataRange extends OntResource
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.
asAnnotationProperty, asDatatypeProperty, asObjectProperty, asProperty, isAnnotationProperty, isDatatypeProperty, isObjectProperty, isProperty
Modifier and Type | Method and Description |
---|---|
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.
|
org.apache.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.
|
addComment, addComment, addDifferentFrom, addIsDefinedBy, addLabel, addLabel, addRDFType, addSameAs, addSeeAlso, addVersionInfo, asAllDifferent, asAnnotationProperty, asClass, asDataRange, asDatatypeProperty, asIndividual, asObjectProperty, asOntology, asProperty, getCardinality, getComment, getDifferentFrom, getIsDefinedBy, getLabel, getOntModel, getProfile, getPropertyValue, getRDFType, getRDFType, getSameAs, getSeeAlso, getVersionInfo, hasComment, hasComment, hasLabel, hasLabel, hasRDFType, hasRDFType, hasRDFType, hasSeeAlso, hasVersionInfo, isAllDifferent, isAnnotationProperty, isClass, isDataRange, isDatatypeProperty, isDefinedBy, isDifferentFrom, isIndividual, isObjectProperty, isOntLanguageTerm, isOntology, isProperty, isSameAs, listComments, listDifferentFrom, listIsDefinedBy, listLabels, listPropertyValues, listRDFTypes, listSameAs, listSeeAlso, listVersionInfo, remove, removeComment, removeComment, removeDefinedBy, removeDifferentFrom, removeLabel, removeLabel, removeProperty, removeRDFType, removeSameAs, removeSeeAlso, removeVersionInfo, setComment, setDifferentFrom, setIsDefinedBy, setLabel, setPropertyValue, setRDFType, setSameAs, setSeeAlso, setVersionInfo
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
as, asLiteral, asResource, canAs, getModel, isAnon, isLiteral, isResource, isURIResource, visitWith
asNode
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 datarangeProfileException
- 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 enumerationProfileException
- 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 literalsProfileException
- 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.
ProfileException
- If the Profile.ONE_OF()
property is not supported in the current language profile.org.apache.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
.
ProfileException
- 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 testProfileException
- 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.Licenced under the Apache License, Version 2.0