|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DAMLClass
Java representation of a DAML ontology Class. Note that the ontology classes are not the same as Java classes: think of classifications rather than active data structures.
Method Summary | |
---|---|
ExtendedIterator |
getDefinedProperties()
Answer an iteration of the properties that may be used for instances of this class: i.e. the properties that have this class, or one of its super-classes, as domain. |
ExtendedIterator |
getDefinedProperties(boolean closed)
Answer an iteration of the properties that may be used for instances of this class: i.e. the properties that have this class, or optionally one of its super-classes, as domain. |
ExtendedIterator |
getEquivalentValues()
Answer an iterator over all of the DAML objects that are equivalent to this class, which will be the union of daml:equivalentTo and
daml:sameClassAs . |
ExtendedIterator |
getInstances()
Answer an iterator over the instances of this class that currently exist in the model. |
ExtendedIterator |
getSameClasses()
Answer an iterator over all of the DAML classes that are equivalent to this value under the daml:sameClassAs relation. |
ExtendedIterator |
getSubClasses()
Answer an iterator over the DAML classes that mention this class as one of its super-classes. |
ExtendedIterator |
getSubClasses(boolean closed)
Answer an iterator over the DAML classes that mention this class as one of its super-classes. |
ExtendedIterator |
getSuperClasses()
Answer an iterator over the DAML classes that are super-classes of this class. |
ExtendedIterator |
getSuperClasses(boolean closed)
Answer an iterator over the DAML classes that are super-classes of this class. |
boolean |
isComplement()
Answer true if this class expression is an boolean complement of another class. |
boolean |
isDisjointUnion()
Answer true if this class is a disjoint union of a list of classes. |
boolean |
isEnumeration()
Answer true if this class is an enumeration (i.e. has a property daml:oneOf with a list of values). |
boolean |
isIntersection()
Answer true if this class is an intersection of a list of classes. |
boolean |
isNamedClass()
Answer true if this class is a named class (i.e. is not an anonymous class expression). |
boolean |
isRestriction()
Answer true if this class is an property restriction (i.e. is a daml:Restriction instance). |
boolean |
isUnion()
Answer true if this class is a union of a list of classes. |
PropertyAccessor |
prop_complementOf()
Property accessor for the property daml:compelementOf , which denotes the
class whose members are the individuals not in the given class. |
PropertyAccessor |
prop_disjointUnionOf()
Property accessor for the daml:disjointUnionOf property of a class. |
PropertyAccessor |
prop_disjointWith()
Property accessor for the daml:disjointWith property of a class. |
PropertyAccessor |
prop_intersectionOf()
Property accessor for the property daml:intersectionOf , which denotes an
intersection (conjunction) of a list of classes. |
PropertyAccessor |
prop_oneOf()
Property accessor for the daml:oneOf property, which defines a class expression
denoting that the class is exactly one of the given list of classes. |
PropertyAccessor |
prop_sameClassAs()
Property accessor for the daml:sameClassAs property of a DAML class. |
PropertyAccessor |
prop_subClassOf()
Property accessor for the daml:subClassOf property of a class. |
PropertyAccessor |
prop_unionOf()
Property accessor for the property daml:unionOf , which denotes a class
expression consisting of the union (disjunction) of a list of classes. |
Methods inherited from interface com.hp.hpl.jena.ontology.daml.DAMLCommon |
---|
getDAMLModel, getEquivalenceSet, getRDFTypes, getVocabulary, prop_comment, prop_equivalentTo, prop_label, prop_type, setRDFType |
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, getRequiredProperty, getURI, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, isAnon, listProperties, listProperties, removeAll, removeProperties, toString |
Methods inherited from interface com.hp.hpl.jena.rdf.model.RDFNode |
---|
as, canAs, inModel, visitWith |
Methods inherited from interface com.hp.hpl.jena.graph.FrontsNode |
---|
asNode |
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, getRequiredProperty, getURI, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, isAnon, listProperties, listProperties, removeAll, removeProperties, toString |
Methods inherited from interface com.hp.hpl.jena.rdf.model.RDFNode |
---|
as, canAs, inModel, visitWith |
Methods inherited from interface com.hp.hpl.jena.graph.FrontsNode |
---|
asNode |
Method Detail |
---|
PropertyAccessor prop_subClassOf()
Property accessor for the daml:subClassOf
property of a class. This
denotes a class that is a super-class of this class.
daml:subClassOf
.PropertyAccessor prop_disjointWith()
Property accessor for the daml:disjointWith
property of a class. This
denotes a class with which this class has no instances in common.
daml:disjointWith
.PropertyAccessor prop_disjointUnionOf()
Property accessor for the daml:disjointUnionOf
property of a class. This
denotes a list of classes that are each pair-wise disjoint, and whose
union describes this class.
daml:disjointUnionOf
.PropertyAccessor prop_sameClassAs()
Property accessor for the daml:sameClassAs
property of a DAML class. This
denotes a class whose instances are the same those of this class.
daml:sameClassAs
.PropertyAccessor prop_unionOf()
Property accessor for the property daml:unionOf
, which denotes a class
expression consisting of the union (disjunction) of a list of classes.
daml:unionOf
.PropertyAccessor prop_intersectionOf()
Property accessor for the property daml:intersectionOf
, which denotes an
intersection (conjunction) of a list of classes.
daml:intersectionOf
.PropertyAccessor prop_complementOf()
Property accessor for the property daml:compelementOf
, which denotes the
class whose members are the individuals not in the given class.
daml:compelementOf
.PropertyAccessor prop_oneOf()
Property accessor for the daml:oneOf
property, which defines a class expression
denoting that the class is exactly one of the given list of classes.
daml:oneOf
.ExtendedIterator getSubClasses()
Answer an iterator over the DAML classes
that mention this class as one of its super-classes. Will return
all available sub-classes (see getSubClasses(boolean)
for
more details). The elements
of the iterator will be DAMLClass
objects.
ExtendedIterator getSubClasses(boolean closed)
Answer an iterator over the DAML classes
that mention this class as one of its super-classes.
The members of the iterator will be DAMLClass
objects
Note: In a change to the Jena 1 DAML API, whether
this iterator includes inferred sub-classes is determined
not by a flag at the API level, but by the construction of the DAML
model itself. See the model factory
for details. The boolean parameter
closed
is now re-interpreted to mean the inverse of
direct
, see OntClass.listSubClasses(boolean)
for more details.
closed
- If true, return all available values; otherwise, return
only local (direct) sub-classes. See note for details.
ExtendedIterator getSuperClasses()
Answer an iterator over the DAML classes
that are super-classes of this class. Will return
all available super-classes (see getSuperClasses(boolean)
for
more details). The elements
of the iterator will be DAMLClass
objects.
ExtendedIterator getSuperClasses(boolean closed)
Answer an iterator over the DAML classes
that are super-classes of this class.
The members of the iterator will be DAMLClass
objects
Note: In a change to the Jena 1 DAML API, whether
this iterator includes inferred super-classes is determined
not by a flag at the API level, but by the construction of the DAML
model itself. See the model factory
for details. The boolean parameter
closed
is now re-interpreted to mean the inverse of
direct
, see OntClass.listSubClasses(boolean)
for more details.
closed
- If true, return all available values; otherwise, return
only local (direct) super-classes. See note for details.
ExtendedIterator getSameClasses()
Answer an iterator over all of the DAML classes that are equivalent to this
value under the daml:sameClassAs
relation. Note: only considers
daml:sameClassAs
, for general equivalence, see
getEquivalentValues()
. Note also that the first member of the iteration is
always the DAMLClass on which the method is invoked: trivially, a DAMLClass is
a member of the set of DAMLClasses equivalent to itself. If the caller wants
the set of classes equivalent to this one, not including itself, simply ignore
the first element of the iteration.
ExtendedIterator getEquivalentValues()
Answer an iterator over all of the DAML objects that are equivalent to this
class, which will be the union of daml:equivalentTo
and
daml:sameClassAs
.
getEquivalentValues
in interface DAMLCommon
ExtendedIterator getInstances()
Answer an iterator over the instances of this class that currently exist in the model.
DAMLCommon.getRDFTypes(boolean)
ExtendedIterator getDefinedProperties()
Answer an iteration of the properties that may be used for instances of this class: i.e. the properties that have this class, or one of its super-classes, as domain.
ExtendedIterator getDefinedProperties(boolean closed)
Answer an iteration of the properties that may be used for instances of this class: i.e. the properties that have this class, or optionally one of its super-classes, as domain.
Note: In a change to the Jena 1 DAML API, whether
this iterator includes the defined properties for inferred
super-classes is determined
not by a flag at the API level, but by the construction of the DAML
model itself. See the model factory
for details. The boolean parameter
closed
is now re-interpreted to mean the inverse of
direct
, see OntClass.listSubClasses(boolean)
for more details.
closed
- If true, use all available information from the class hierarchy;
if false, only use local properties.
boolean isEnumeration()
Answer true if this class is an enumeration (i.e. has a property
daml:oneOf
with a list of values). This is not an exclusive property, a class
can be an enumeration at the same time as one of the other kinds
of class expression, though the conjunction of these may produce the Nothing
class.
boolean isNamedClass()
Answer true if this class is a named class (i.e. is not an anonymous class expression). This is not an exclusive property, a class can be named at the same time as one of the other kinds of class expression.
boolean isRestriction()
Answer true if this class is an property restriction (i.e. is a
daml:Restriction
instance). This is not an exclusive property: a class
expression can be a property restriction at the same time as one of the other kinds
of class expression, though the conjunction of these may produce the Nothing
class.
isRestriction
in interface OntClass
boolean isIntersection()
Answer true if this class is an intersection of a list of classes. This is not an exclusive property: a class expression can be an intersection at the same time as one of the other kinds of class expression, though the conjunction of these may produce the Nothing class.
boolean isUnion()
Answer true if this class is a union of a list of classes. This is not an exclusive property, a class expression can be a union at the same time as one of the other kinds of class expression, though the conjunction of these may produce the Nothing class.
boolean isDisjointUnion()
Answer true if this class is a disjoint union of a list of classes. This is not an exclusive property, a class expression can be a disjoint union at the same time as one of the other kinds of class expression, though the conjunction of these may produce the Nothing class.
boolean isComplement()
Answer true if this class expression is an boolean complement of another class. This is not an exclusive property, a class expression can be an complement at the same time as one of the other kinds of class expression, though the conjunction of these may produce the Nothing class.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |