org.universAAL.middleware.owl
Class TypeRestriction
java.lang.Object
org.universAAL.middleware.rdf.Resource
org.universAAL.middleware.owl.TypeExpression
org.universAAL.middleware.owl.TypeRestriction
- Direct Known Subclasses:
- BoundedValueRestriction
public abstract class TypeRestriction
- extends TypeExpression
Fields inherited from class org.universAAL.middleware.rdf.Resource |
ANON_URI_PREFIX, blockAddingTypes, isXMLLiteral, ns_delim_index, PROP_RDF_FIRST, PROP_RDF_REST, PROP_RDF_TYPE, PROP_RDFS_COMMENT, PROP_RDFS_LABEL, PROP_SERIALIZATION_FULL, PROP_SERIALIZATION_OPTIONAL, PROP_SERIALIZATION_REDUCED, PROP_SERIALIZATION_UNDEFINED, PROP_uAAL_INVOLVED_HUMAN_USER, props, RDF_EMPTY_LIST, RDF_NAMESPACE, RDFS_NAMESPACE, TYPE_RDF_LIST, TYPE_RDFS_CLASS, uAAL_NAMESPACE_PREFIX, uAAL_SERVICE_NAMESPACE, uAAL_VOCABULARY_NAMESPACE, uri |
Methods inherited from class org.universAAL.middleware.owl.TypeExpression |
checkTTL, collectTypesMinimized, copy, getDefaultMatchmakingTTL, hasMember, hasMember, hasMember, isDisjointWith, isDisjointWith, isDisjointWith, isWellFormed, matches, matches, matches, synchronize |
Methods inherited from class org.universAAL.middleware.rdf.Resource |
addMultiLangProp, addType, asList, asList, asRDFList, changeProperty, copy, deepCopy, equals, generateAnonURI, getDefaultLang, getFilename, getLocalName, getMultiLangProp, getNamespace, getOrConstructLabel, getProperty, getPropertyURIs, getPropSerializationType, getResource, getResourceComment, getResourceLabel, getStaticFieldValue, getType, getTypes, getURI, hashCode, hasProperty, hasQualifiedName, isAnon, isAnon, isBlockingAddingTypes, isClosedCollection, isQualifiedName, literal, numberOfProperties, representsQualifiedURI, serializesAsXMLLiteral, setPropertyPath, setPropertyPath, setPropertyPathFromOffset, setResourceComment, setResourceLabel, toString, toStringRecursive, toStringRecursive, unliteral |
PROP_OWL_ON_DATATYPE
public static final String PROP_OWL_ON_DATATYPE
- See Also:
- Constant Field Values
PROP_OWL_WITH_RESTRICTIONS
public static final String PROP_OWL_WITH_RESTRICTIONS
- See Also:
- Constant Field Values
restrictions
protected ArrayList restrictions
TypeRestriction
protected TypeRestriction(String datatypeURI)
- Standard constructor.
getTypeURI
public String getTypeURI()
iterate
protected TypeRestriction.Facet iterate(ListIterator it)
addConstrainingFacet
protected void addConstrainingFacet(String facetURI,
Object value)
getNamedSuperclasses
public String[] getNamedSuperclasses()
- Description copied from class:
TypeExpression
- Get the set of class URIs for all super classes of the individuals of
this class expression.
- Specified by:
getNamedSuperclasses
in class TypeExpression
- See Also:
TypeExpression.getNamedSuperclasses()
getUpperEnumeration
public Object[] getUpperEnumeration()
- Description copied from class:
TypeExpression
- Each type expression can contain multiple objects; this method returns
this set of objects.
- Specified by:
getUpperEnumeration
in class TypeExpression
- See Also:
TypeExpression.getUpperEnumeration()
setProperty
public boolean setProperty(String propURI,
Object o)
- Description copied from class:
Resource
- Adds a statement with this resource as the subject, the given
propURI
as the predicate and the given value as the object.
Subclasses must override this in order to decide if the statement to be
added fits the general class constraints. If not, the call of this method
should be ignored. For each property only one single call may be made to
this method, unless subsequent calls to this method for setting the value
of the same property are treated as an update for an update-able
property. Multi-valued properties must be set using an instance of
List
. The differentiation, if a such list should be
treated as an rdf:List, can be made with the help of
Resource.isClosedCollection(String)
. The default implementation here
accepts all property-value pairs blindly except for rdf:type which is
handled if the value is a type URI, a Resource or a java.util.List of
them.
Note: The setting of the property rdf:type is being handled by this class
via the final methods Resource.addType(String, boolean)
,
Resource.getType()
, and Resource.getTypes()
. Although these methods give
the view of handling type URIs as strings, but in reality the types are
stored as direct instances of this class. So, the subclasses should
ignore calls for setting rdf:type; if not, then the subclass must pay
attention that the value should be a List
of direct instances of
this class so that (1) the Resource.toString()
method returns just the
URI and (2) the serializers get no problems with the value. Also,
settings via subclasses may be overwritten by this class if a subsequent
call to Resource.addType(String, boolean)
is made.
- Overrides:
setProperty
in class Resource
- Returns:
- true if the property changed as a result of the call
- See Also:
Resource.setProperty(String, Object)
Copyright © 2014 universAAL Consortium. All Rights Reserved.