|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.hp.hpl.mesa.rdf.jena.common.ResourceImpl
|
+--com.hp.hpl.jena.daml.common.DAMLCommonImpl
|
+--com.hp.hpl.jena.daml.common.DAMLClassImpl
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.
| Constructor Summary | |
DAMLClassImpl(java.lang.String uri,
DAMLModel store,
DAMLVocabulary vocabulary)
Constructor, takes URI for this class, and the underlying model it will be attached to. |
|
DAMLClassImpl(java.lang.String namespace,
java.lang.String name,
DAMLModel model,
DAMLVocabulary vocabulary)
Constructor, takes the name and namespace for this class, and the underlying model it will be attached to. |
|
| Method Summary | |
java.util.Iterator |
getDefinedProperties()
Answer an iteration of the properties that may be used for instances of this class: i.e. |
java.util.Iterator |
getDefinedProperties(boolean closed)
Answer an iteration of the properties that may be used for instances of this class: i.e. |
java.util.Iterator |
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. |
java.util.Iterator |
getInstances()
Answer an iterator over the instances of this class that currently exist in the model. |
java.util.Iterator |
getSameClasses()
Answer an iterator over all of the DAML classes that are equivalent to this value under the daml:sameClassAs relation. |
java.util.Iterator |
getSubClasses()
Answer an iterator over the DAML classes (or, strictly, class expressions) that mention this class as one of its super-classes. |
java.util.Iterator |
getSubClasses(boolean closed)
Answer an iterator over the DAML classes (or, strictly, class expressions) that mention this class as one of its super-classes. |
java.util.Iterator |
getSuperClasses()
Answer an iterator over the DAML classes (or, strictly, class expressions) that mention this class as one of its sub-classes. |
java.util.Iterator |
getSuperClasses(boolean closed)
Answer an iterator over the DAML classes (or, strictly, class expressions) that mention this class as one of its sub-classes. |
boolean |
hasSubClass(Resource cls)
Answer true if the given class is a sub-class of this class, using information from the rdf:subClassOf or daml:subClassOf relation. |
boolean |
hasSuperClass(Resource cls)
Answer true if the given class is a super-class of this class, using information from the rdf:subClassOf or daml:subClassOf relation. |
boolean |
isComplement()
Answer true if this class expression is an boolean complement of a list of class expressions. |
boolean |
isDisjointUnion()
Answer true if this class expression is a disjoint union of a list of class expressions. |
boolean |
isEnumeration()
Answer true if this class expression is an enumeration (i.e. |
boolean |
isIntersection()
Answer true if this class expression is an boolean intersection of a list of class expressions. |
boolean |
isNamedClass()
Answer true if this class expression is an named class (i.e. |
boolean |
isRestriction()
Answer true if this class expression is an property restriction (i.e. |
boolean |
isUnion()
Answer true if this class expression is an boolean union of a list of class expressions. |
PropertyAccessor |
prop_complementOf()
Property accessor for the property 'compelementOf', which is one element of the range of boolean expressions over classes permitted by DAML. |
PropertyAccessor |
prop_disjointUnionOf()
Property accessor for the 'disjointUnionOf' property of a class. |
PropertyAccessor |
prop_disjointWith()
Property accessor for the 'disjointWith' property of a class. |
PropertyAccessor |
prop_intersectionOf()
Property accessor for the property 'intersectionOf', which is one element of the range of boolean expressions over classes permitted by DAML. |
PropertyAccessor |
prop_oneOf()
Property accessor for the 'oneOf' property, which defines a class expression denoting that the class is exactly one of the given list of class expressions. |
PropertyAccessor |
prop_sameClassAs()
Property accessor for the 'sameClassAs' property of a class. |
PropertyAccessor |
prop_subClassOf()
Property accessor for the 'subClassOf' property of a class. |
PropertyAccessor |
prop_unionOf()
Property accessor for the property 'unionOf', which is one element of the range of boolean expressions over classes permitted by DAML. |
| Methods inherited from class com.hp.hpl.jena.daml.common.DAMLCommonImpl |
getAll, getDAMLModel, getEquivalenceSet, getNumPropertyValues, getPropertyValue, getPropertyValues, getRDFTypes, getSelfIterator, getVocabulary, hasRDFType, hasRDFType, port, prop_comment, prop_equivalentTo, prop_label, prop_type, remove, removeAll, removeProperty, replaceProperty, setPropertyValue, setRDFType, setRDFType, toString |
| Methods inherited from class com.hp.hpl.mesa.rdf.jena.common.ResourceImpl |
abort, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, begin, commit, equals, getEmbeddedResource, getId, getLocalName, getModel, getNameSpace, getProperty, getURI, hashCode, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, isAnon, listProperties, listProperties, removeProperties |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.hp.hpl.jena.daml.DAMLCommon |
getAll, getDAMLModel, getEquivalenceSet, getNumPropertyValues, getPropertyValue, getPropertyValues, getRDFTypes, getVocabulary, hasRDFType, hasRDFType, prop_comment, prop_equivalentTo, prop_label, prop_type, remove, removeAll, removeProperty, replaceProperty, setPropertyValue, setRDFType, setRDFType |
| Methods inherited from interface com.hp.hpl.mesa.rdf.jena.model.Resource |
abort, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, begin, commit, equals, getId, getLocalName, getModel, getNameSpace, getProperty, getURI, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, isAnon, listProperties, listProperties, removeProperties, toString |
| Constructor Detail |
public DAMLClassImpl(java.lang.String namespace,
java.lang.String name,
DAMLModel model,
DAMLVocabulary vocabulary)
namespace - The namespace the class inhabits, or nullname - The name of the classmodel - Reference to the DAML model that will contain statements about this DAML class.vocabulary - Reference to the DAML vocabulary used by this class.
public DAMLClassImpl(java.lang.String uri,
DAMLModel store,
DAMLVocabulary vocabulary)
uri - The URI of the classstore - Reference to the DAML store that will contain statements about this DAML class.vocabulary - Reference to the DAML vocabulary used by this class.| Method Detail |
public PropertyAccessor prop_subClassOf()
prop_subClassOf in interface DAMLClasspublic PropertyAccessor prop_disjointWith()
prop_disjointWith in interface DAMLClasspublic PropertyAccessor prop_disjointUnionOf()
prop_disjointUnionOf in interface DAMLClasspublic PropertyAccessor prop_sameClassAs()
prop_sameClassAs in interface DAMLClasspublic PropertyAccessor prop_unionOf()
prop_unionOf in interface DAMLClasspublic PropertyAccessor prop_intersectionOf()
prop_intersectionOf in interface DAMLClasspublic PropertyAccessor prop_complementOf()
prop_complementOf in interface DAMLClasspublic PropertyAccessor prop_oneOf()
prop_oneOf in interface DAMLClasspublic boolean isEnumeration()
isEnumeration in interface DAMLClassExpressionpublic boolean isNamedClass()
isNamedClass in interface DAMLClassExpressionpublic boolean isRestriction()
isRestriction in interface DAMLClassExpressionDAMLRestriction).public boolean isIntersection()
isIntersection in interface DAMLClassExpressionpublic boolean isUnion()
isUnion in interface DAMLClassExpressionpublic boolean isDisjointUnion()
isDisjointUnion in interface DAMLClassExpressionpublic boolean isComplement()
isComplement in interface DAMLClassExpressionpublic java.util.Iterator getSubClasses()
getSubClasses in interface DAMLClasspublic java.util.Iterator getSubClasses(boolean closed)
getSubClasses in interface DAMLClassclosed - If true, close the iteration over the sub-class relation: i.e.
return the sub-classes of the sub-classes, etc.
public java.util.Iterator getSuperClasses()
getSuperClasses in interface DAMLClasspublic java.util.Iterator getSuperClasses(boolean closed)
getSuperClasses in interface DAMLClassclosed - If true, close the iteration over the super-class relation: i.e.
return the super-classes of the super-classes, etc.
public java.util.Iterator getSameClasses()
daml:sameClassAs relation. Note: only considers
daml:sameClassAs, for general equivalence, see
getEquivalentValues().
getSameClasses in interface DAMLClasspublic java.util.Iterator getEquivalentValues()
daml:equivalentTo and
daml:sameClassAs.
getEquivalentValues in interface DAMLClassgetEquivalentValues in class DAMLCommonImplpublic boolean hasSubClass(Resource cls)
rdf:subClassOf or daml:subClassOf relation.
hasSubClass in interface DAMLClasscls - A resource representing a DAML Class
public boolean hasSuperClass(Resource cls)
rdf:subClassOf or daml:subClassOf relation.
hasSuperClass in interface DAMLClasscls - A resource representing a DAML Class
public java.util.Iterator getInstances()
getInstances in interface DAMLClassDAMLCommon.getRDFTypes(boolean)public java.util.Iterator getDefinedProperties()
getDefinedProperties in interface DAMLClasspublic java.util.Iterator getDefinedProperties(boolean closed)
getDefinedProperties in interface DAMLClassclosed - If true, close the iteration over the super-classes
of this class.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||