org.dbe.studio.tools.ontologyviewer.metamodels.odm
Class OdmRestrictionClass
java.lang.Object
org.dbe.studio.tools.ontologyviewer.metamodels.odm.OdmOntologyClass
org.dbe.studio.tools.ontologyviewer.metamodels.odm.OdmRestrictionClass
- public class OdmRestrictionClass
- extends OdmOntologyClass
A property restriction is a special kind of class description. It describes
an anonymous class, namely a class of all individuals that satisfy the
restriction. OWL distinguishes two kinds of property restrictions: value
constraints and cardinality constraints
A value constraint puts constraints on the range of the property when applied
to this particular class description. For example, we might want to refer to
those individuals whose value of the property adjacentTo should be some Region,
and then use this within a class axiom, perhaps even a class axiom for Region
itself. Note that this is different from rdfs:range, which is applied to all
situations in which the property is used.
A cardinality constraint puts constraints on the number of values a property
can take, in the context of this particular class description. For example,
we might want to say that for a soccer team the hasPlayer property has 11 values.
For a basketball team the same property would have only 5 values
A restriction class should have exactly one triple linking the restriction
to a particular property, using the owl:onProperty property. The restriction
class should also have exactly one triple that represents the value constraint
c.q. cardinality constraint on the property under consideration, e.g., that
the cardinality of the property is exactly 1.
Property restrictions can be applied both to datatype properties (properties
for which the value is a data literal) and object properties (properties for
which the value is an individual). For more information about this distinction,
see the section on properties.
Fields inherited from class org.dbe.studio.tools.ontologyviewer.metamodels.odm.OdmOntologyClass |
annotationProps, classExtension, datatypeProperties, disjointWithClasses, equivalentClasses, id, name, objectProperties, ontology, subClassOf, superClassOf |
Methods inherited from class org.dbe.studio.tools.ontologyviewer.metamodels.odm.OdmOntologyClass |
addAnnotationProp, addClassInstance, addDatatypeProperty, addDisjointWithClass, addEquivalentClass, addObjectProperty, addSubClass, addSuperClass, findDatatypeProperty, getAnnotationProps, getClassExtension, getDatatypeProperties, getDisjointWithClasses, getEquivalentClasses, getId, getName, getObjectProperties, getOntology, getSubClassOf, getSuperClassOf, removeAnnotationProp, removeClassInstance, removeDatatypeProperty, removeDisjointWithClass, removeEquivalentClass, removeObjectProperty, removeSubClass, removeSuperClass, setAnnotationProps, setClassExtension, setDatatypeProperties, setId, setName, setObjectProperties, setOntology |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
onProperty
OdmProperty onProperty
allValuesFrom
OdmOntologyClass allValuesFrom
someValuesFrom
OdmOntologyClass someValuesFrom
hasValue
java.lang.Object hasValue
minCardinality
java.lang.String minCardinality
maxCardinality
java.lang.String maxCardinality
cardinality
java.lang.String cardinality
OdmRestrictionClass
public OdmRestrictionClass(OdmOntology ontology,
OdmProperty prop)
OdmRestrictionClass
public OdmRestrictionClass(OdmOntology ontology,
OdmProperty prop,
java.lang.String name,
java.lang.String id)
- Parameters:
ontology
- name
- id
-
setOnProperty
public void setOnProperty(OdmProperty prop)
setAllValuesFrom
public void setAllValuesFrom(OdmOntologyClass avf)
setSomeValuesFrom
public void setSomeValuesFrom(OdmOntologyClass svf)
setHasValue
public void setHasValue(java.lang.Object o)
setMinCardinality
public void setMinCardinality(java.lang.String minC)
setMaxCardinality
public void setMaxCardinality(java.lang.String maxC)
setCardinality
public void setCardinality(java.lang.String c)
getOnProperty
public OdmProperty getOnProperty()
getAllValuesFrom
public OdmOntologyClass getAllValuesFrom()
getSomeValuesFrom
public OdmOntologyClass getSomeValuesFrom()
getHasValue
public java.lang.Object getHasValue()
getMinCardinality
public java.lang.String getMinCardinality()
getMaxCardinality
public java.lang.String getMaxCardinality()
getCardinality
public java.lang.String getCardinality()
Copyright © 2004-2005 Digital Business Ecosystem. All Rights Reserved.