Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.hp.hpl.jena.ontology.daml.impl
Class DAMLClassImpl  view DAMLClassImpl download DAMLClassImpl.java

java.lang.Object
  extended bycom.hp.hpl.jena.enhanced.Polymorphic
      extended bycom.hp.hpl.jena.enhanced.EnhNode
          extended bycom.hp.hpl.jena.rdf.model.impl.ResourceImpl
              extended bycom.hp.hpl.jena.ontology.impl.OntResourceImpl
                  extended bycom.hp.hpl.jena.ontology.impl.OntClassImpl
                      extended bycom.hp.hpl.jena.ontology.daml.impl.DAMLClassImpl
All Implemented Interfaces:
com.hp.hpl.jena.ontology.daml.DAMLClass, com.hp.hpl.jena.ontology.daml.DAMLCommon, com.hp.hpl.jena.graph.FrontsNode, com.hp.hpl.jena.ontology.OntClass, com.hp.hpl.jena.ontology.OntResource, com.hp.hpl.jena.rdf.model.RDFNode, com.hp.hpl.jena.rdf.model.Resource
Direct Known Subclasses:
DAMLRestrictionImpl

public class DAMLClassImpl
extends com.hp.hpl.jena.ontology.impl.OntClassImpl
implements com.hp.hpl.jena.ontology.daml.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.

Version:
CVS info: $Id: DAMLClassImpl.java,v 1.15 2005/04/08 17:38:52 ian_dickinson Exp $

Nested Class Summary
 
Nested classes inherited from class com.hp.hpl.jena.ontology.impl.OntResourceImpl
com.hp.hpl.jena.ontology.impl.OntResourceImpl.AsMapper, com.hp.hpl.jena.ontology.impl.OntResourceImpl.LangTagFilter, com.hp.hpl.jena.ontology.impl.OntResourceImpl.ObjectAsMapper, com.hp.hpl.jena.ontology.impl.OntResourceImpl.ObjectAsStringMapper, com.hp.hpl.jena.ontology.impl.OntResourceImpl.ObjectMapper, com.hp.hpl.jena.ontology.impl.OntResourceImpl.SingleEqualityFilter, com.hp.hpl.jena.ontology.impl.OntResourceImpl.SubjectAsMapper, com.hp.hpl.jena.ontology.impl.OntResourceImpl.SubjectMapper
 
Field Summary
static com.hp.hpl.jena.enhanced.Implementation factory
          A factory for generating DAMLClass facets from nodes in enhanced graphs.
protected  com.hp.hpl.jena.ontology.daml.DAMLCommon m_common
          DAML common delegate
private  com.hp.hpl.jena.ontology.daml.PropertyAccessor m_propComplementOf
          Property accessor for complementOf
private  com.hp.hpl.jena.ontology.daml.PropertyAccessor m_propDisjointUnionOf
          Property accessor for disjointUnionOf
private  com.hp.hpl.jena.ontology.daml.PropertyAccessor m_propDisjointWith
          Property accessor for disjointWith
private  com.hp.hpl.jena.ontology.daml.PropertyAccessor m_propIntersectionOf
          Property accessor for intersectionOf
private  com.hp.hpl.jena.ontology.daml.PropertyAccessor m_propOneOf
          Property accessor for oneOf
private  com.hp.hpl.jena.ontology.daml.PropertyAccessor m_propSameClassAs
          Property accessor for sameClassAs
private  com.hp.hpl.jena.ontology.daml.PropertyAccessor m_propSubClassOf
          Property accessor for onProperty
private  com.hp.hpl.jena.ontology.daml.PropertyAccessor m_propUnionOf
          Property accessor for unionOf
protected  com.hp.hpl.jena.vocabulary.DAMLVocabulary m_vocabulary
          Vocabulary - this is really obsoleted by the profile mechanism
 
Fields inherited from class com.hp.hpl.jena.ontology.impl.OntClassImpl
m_domainQuery, m_restrictionPropQuery
 
Fields inherited from class com.hp.hpl.jena.ontology.impl.OntResourceImpl
KNOWN_LANGUAGES
 
Fields inherited from class com.hp.hpl.jena.rdf.model.impl.ResourceImpl
rdfNodeFactory
 
Fields inherited from class com.hp.hpl.jena.enhanced.EnhNode
enhGraph, node
 
Fields inherited from class com.hp.hpl.jena.enhanced.Polymorphic
 
Constructor Summary
DAMLClassImpl(com.hp.hpl.jena.graph.Node n, com.hp.hpl.jena.enhanced.EnhGraph g)
           Construct a DAML class represented by the given node in the given graph.
 
Method Summary
 com.hp.hpl.jena.ontology.daml.DAMLModel getDAMLModel()
          Answer the DAML model wherein this value is stored.
 com.hp.hpl.jena.util.iterator.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.
 com.hp.hpl.jena.util.iterator.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.
 com.hp.hpl.jena.util.iterator.ExtendedIterator getEquivalenceSet()
          Answer the set of equivalent values to this value, but not including the value itself.
 com.hp.hpl.jena.util.iterator.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.
 com.hp.hpl.jena.util.iterator.ExtendedIterator getInstances()
          Answer an iterator over the instances of this class that currently exist in the model.
 com.hp.hpl.jena.util.iterator.ExtendedIterator getRDFTypes(boolean complete)
          Answer an iterator over all of the types to which this resource belongs.
 com.hp.hpl.jena.util.iterator.ExtendedIterator getSameClasses()
          Answer an iterator over all of the DAML classes that are equivalent to this value under the daml:sameClassAs relation.
 com.hp.hpl.jena.util.iterator.ExtendedIterator getSubClasses()
          Answer an iterator over the DAML classes that mention this class as one of its super-classes.
 com.hp.hpl.jena.util.iterator.ExtendedIterator getSubClasses(boolean closed)
          Answer an iterator over the DAML classes that mention this class as one of its super-classes.
 com.hp.hpl.jena.util.iterator.ExtendedIterator getSuperClasses()
          Answer an iterator over the DAML classes that are super-classes of this class.
 com.hp.hpl.jena.util.iterator.ExtendedIterator getSuperClasses(boolean closed)
          Answer an iterator over the DAML classes that are super-classes of this class.
 com.hp.hpl.jena.vocabulary.DAMLVocabulary getVocabulary()
          Answer the DAML+OIL vocabulary that corresponds to the namespace that this value was declared in.
 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. has a property 'oneOf' with a list of values).
 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. is not an anonymous class expression).
 boolean isRestriction()
          Answer true if this class expression is an property restriction (i.e. is a Restriction value).
 boolean isUnion()
          Answer true if this class expression is an boolean union of a list of class expressions.
 com.hp.hpl.jena.ontology.daml.LiteralAccessor prop_comment()
          Accessor for the property of the comment on the value, whose value is a literal (string).
 com.hp.hpl.jena.ontology.daml.PropertyAccessor prop_complementOf()
          Property accessor for the property daml:compelementOf, which denotes the class whose members are the individuals not in the given class.
 com.hp.hpl.jena.ontology.daml.PropertyAccessor prop_disjointUnionOf()
          Property accessor for the daml:disjointUnionOf property of a class.
 com.hp.hpl.jena.ontology.daml.PropertyAccessor prop_disjointWith()
          Property accessor for the daml:disjointWith property of a class.
 com.hp.hpl.jena.ontology.daml.PropertyAccessor prop_equivalentTo()
          Property accessor for the equivalentTo property.
 com.hp.hpl.jena.ontology.daml.PropertyAccessor prop_intersectionOf()
          Property accessor for the property daml:intersectionOf, which denotes an intersection (conjunction) of a list of classes.
 com.hp.hpl.jena.ontology.daml.LiteralAccessor prop_label()
          Accessor for the property of the label on the value, whose value is a literal (string).
 com.hp.hpl.jena.ontology.daml.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.
 com.hp.hpl.jena.ontology.daml.PropertyAccessor prop_sameClassAs()
          Property accessor for the daml:sameClassAs property of a DAML class.
 com.hp.hpl.jena.ontology.daml.PropertyAccessor prop_subClassOf()
          Property accessor for the daml:subClassOf property of a class.
 com.hp.hpl.jena.ontology.daml.PropertyAccessor prop_type()
          Property accessor for the rdf:type property of a DAML value.
 com.hp.hpl.jena.ontology.daml.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.
 void setRDFType(com.hp.hpl.jena.rdf.model.Resource rdfClass, boolean replace)
          Add an RDF type property for this node in the underlying model.
 
Methods inherited from class com.hp.hpl.jena.ontology.impl.OntClassImpl
addDisjointWith, addEquivalentClass, addSubClass, addSuperClass, asComplementClass, asEnumeratedClass, asIntersectionClass, asRestriction, asUnionClass, canProveSuperClass, convertToComplementClass, convertToEnumeratedClass, convertToIntersectionClass, convertToRestriction, convertToUnionClass, createIndividual, createIndividual, getDisjointWith, getEquivalentClass, getSubClass, getSuperClass, hasDeclaredProperty, hasEquivalentClass, hasSubClass, hasSubClass, hasSubClass, hasSuperClass, hasSuperClass, hasSuperClass, hasSuperClassDirect, isComplementClass, isDisjointWith, isEnumeratedClass, isHierarchyRoot, isIntersectionClass, isUnionClass, listAllProperties, listDeclaredProperties, listDeclaredProperties, listDisjointWith, listEquivalentClasses, listInstances, listSubClasses, listSubClasses, listSuperClasses, listSuperClasses, removeDisjointWith, removeEquivalentClass, removeSubClass, removeSuperClass, setDisjointWith, setEquivalentClass, setSubClass, setSuperClass, testDomain
 
Methods inherited from class com.hp.hpl.jena.ontology.impl.OntResourceImpl
addComment, addComment, addDifferentFrom, addIsDefinedBy, addLabel, addLabel, addListPropertyValue, addPropertyValue, addRDFType, addSameAs, addSeeAlso, addVersionInfo, asAllDifferent, asAnnotationProperty, asClass, asDataRange, asDatatypeProperty, asIndividual, asObjectProperty, asOntology, asProperty, checkProfile, convertToType, getCardinality, getComment, getDifferentFrom, getIsDefinedBy, getLabel, getProfile, getPropertyValue, getRDFType, getRDFType, getSameAs, getSeeAlso, getVersionInfo, hasComment, hasComment, hasLabel, hasLabel, hasPropertyValue, hasRDFType, hasRDFType, hasRDFType, hasRDFType, hasSeeAlso, hasType, hasVersionInfo, isAllDifferent, isAnnotationProperty, isClass, isDataRange, isDatatypeProperty, isDefinedBy, isDifferentFrom, isIndividual, isObjectProperty, isOntLanguageTerm, isOntology, isProperty, isSameAs, langTagMatch, listAs, listComments, listDifferentFrom, listDirectPropertyValues, listIsDefinedBy, listLabels, listPropertyValues, listRDFTypes, listSameAs, listSeeAlso, listVersionInfo, objectAs, objectAsInt, objectAsProperty, objectAsResource, remove, removeComment, removeComment, removeDefinedBy, removeDifferentFrom, removeLabel, removeLabel, removeProperty, removePropertyValue, removeRDFType, removeSameAs, removeSeeAlso, removeVersionInfo, selectLang, setComment, setDifferentFrom, setIsDefinedBy, setLabel, setPropertyValue, setPropertyValue, setRDFType, setSameAs, setSeeAlso, setVersionInfo
 
Methods inherited from class com.hp.hpl.jena.rdf.model.impl.ResourceImpl
abort, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, begin, commit, getId, getLocalName, getModel, getModelCom, getNameSpace, getNode, getProperty, getRequiredProperty, getURI, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, inModel, isAnon, listProperties, listProperties, mustHaveModel, removeAll, removeProperties, toString, visitWith
 
Methods inherited from class com.hp.hpl.jena.enhanced.EnhNode
as, asNode, canAs, canSupport, convertTo, equals, getGraph, getPersonality, hashCode, isValid, viewAs
 
Methods inherited from class com.hp.hpl.jena.enhanced.Polymorphic
addView, already, asInternal, supports
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hp.hpl.jena.ontology.OntResource
addComment, addComment, addDifferentFrom, addIsDefinedBy, addLabel, addLabel, addRDFType, addSameAs, addSeeAlso, addVersionInfo, asAllDifferent, asAnnotationProperty, asClass, asDataRange, asDatatypeProperty, asIndividual, asObjectProperty, asOntology, asProperty, getCardinality, getComment, getDifferentFrom, getIsDefinedBy, getLabel, 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
 
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.ontology.OntClass
addDisjointWith, addEquivalentClass, addSubClass, addSuperClass, asComplementClass, asEnumeratedClass, asIntersectionClass, asRestriction, asUnionClass, convertToComplementClass, convertToEnumeratedClass, convertToIntersectionClass, convertToRestriction, convertToUnionClass, createIndividual, createIndividual, getDisjointWith, getEquivalentClass, getSubClass, getSuperClass, hasDeclaredProperty, hasEquivalentClass, hasSubClass, hasSubClass, hasSubClass, hasSuperClass, hasSuperClass, hasSuperClass, isComplementClass, isDisjointWith, isEnumeratedClass, isHierarchyRoot, isIntersectionClass, isUnionClass, listDeclaredProperties, listDeclaredProperties, listDisjointWith, listEquivalentClasses, listInstances, listSubClasses, listSubClasses, listSuperClasses, listSuperClasses, removeDisjointWith, removeEquivalentClass, removeSubClass, removeSuperClass, setDisjointWith, setEquivalentClass, setSubClass, setSuperClass
 

Field Detail

factory

public static com.hp.hpl.jena.enhanced.Implementation factory
A factory for generating DAMLClass facets from nodes in enhanced graphs. Note: should not be invoked directly by user code: use as() 55 instead.


m_propSubClassOf

private com.hp.hpl.jena.ontology.daml.PropertyAccessor m_propSubClassOf
Property accessor for onProperty


m_propDisjointWith

private com.hp.hpl.jena.ontology.daml.PropertyAccessor m_propDisjointWith
Property accessor for disjointWith


m_propDisjointUnionOf

private com.hp.hpl.jena.ontology.daml.PropertyAccessor m_propDisjointUnionOf
Property accessor for disjointUnionOf


m_propSameClassAs

private com.hp.hpl.jena.ontology.daml.PropertyAccessor m_propSameClassAs
Property accessor for sameClassAs


m_propOneOf

private com.hp.hpl.jena.ontology.daml.PropertyAccessor m_propOneOf
Property accessor for oneOf


m_propUnionOf

private com.hp.hpl.jena.ontology.daml.PropertyAccessor m_propUnionOf
Property accessor for unionOf


m_propIntersectionOf

private com.hp.hpl.jena.ontology.daml.PropertyAccessor m_propIntersectionOf
Property accessor for intersectionOf


m_propComplementOf

private com.hp.hpl.jena.ontology.daml.PropertyAccessor m_propComplementOf
Property accessor for complementOf


m_common

protected com.hp.hpl.jena.ontology.daml.DAMLCommon m_common
DAML common delegate


m_vocabulary

protected com.hp.hpl.jena.vocabulary.DAMLVocabulary m_vocabulary
Vocabulary - this is really obsoleted by the profile mechanism

Constructor Detail

DAMLClassImpl

public DAMLClassImpl(com.hp.hpl.jena.graph.Node n,
                     com.hp.hpl.jena.enhanced.EnhGraph g)

Construct a DAML class represented by the given node in the given graph.

Method Detail

setRDFType

public void setRDFType(com.hp.hpl.jena.rdf.model.Resource rdfClass,
                       boolean replace)
Deprecated.  

Description copied from interface: com.hp.hpl.jena.ontology.daml.DAMLCommon

Add an RDF type property for this node in the underlying model. If the replace flag is true, this type will replace any current type property for the node. Otherwise, the type will be in addition to any existing type property.

Deprecated in favour of OntResource.addRDFType(com.hp.hpl.jena.rdf.model.Resource)>OntResource.addRDFType(com.hp.hpl.jena.rdf.model.Resource) 55 for add, or OntResource.setRDFType(com.hp.hpl.jena.rdf.model.Resource)>OntResource.setRDFType(com.hp.hpl.jena.rdf.model.Resource) 55 for replace.

Specified by:
setRDFType in interface com.hp.hpl.jena.ontology.daml.DAMLCommon

getDAMLModel

public com.hp.hpl.jena.ontology.daml.DAMLModel getDAMLModel()
Description copied from interface: com.hp.hpl.jena.ontology.daml.DAMLCommon

Answer the DAML model wherein this value is stored.

Specified by:
getDAMLModel in interface com.hp.hpl.jena.ontology.daml.DAMLCommon

getRDFTypes

public com.hp.hpl.jena.util.iterator.ExtendedIterator getRDFTypes(boolean complete)
Description copied from interface: com.hp.hpl.jena.ontology.daml.DAMLCommon

Answer an iterator over all of the types to which this resource belongs. Optionally, restrict the results to the most specific types, so that any class that is subsumed by another class in this resource's set of types is not reported.

Note: that the interpretation of the complete flag has changed since Jena 1.x. Previously, the boolean flag was to generated the transitive closure of the class hierarchy; this is now handled by the underlyin inference graph (if specified). Now the flag is used to restrict the returned values to the most-specific types for this resource.

Specified by:
getRDFTypes in interface com.hp.hpl.jena.ontology.daml.DAMLCommon

getVocabulary

public com.hp.hpl.jena.vocabulary.DAMLVocabulary getVocabulary()
Description copied from interface: com.hp.hpl.jena.ontology.daml.DAMLCommon

Answer the DAML+OIL vocabulary that corresponds to the namespace that this value was declared in.

Specified by:
getVocabulary in interface com.hp.hpl.jena.ontology.daml.DAMLCommon

prop_label

public com.hp.hpl.jena.ontology.daml.LiteralAccessor prop_label()
Description copied from interface: com.hp.hpl.jena.ontology.daml.DAMLCommon

Accessor for the property of the label on the value, whose value is a literal (string).

Specified by:
prop_label in interface com.hp.hpl.jena.ontology.daml.DAMLCommon

prop_comment

public com.hp.hpl.jena.ontology.daml.LiteralAccessor prop_comment()
Description copied from interface: com.hp.hpl.jena.ontology.daml.DAMLCommon

Accessor for the property of the comment on the value, whose value is a literal (string).

Specified by:
prop_comment in interface com.hp.hpl.jena.ontology.daml.DAMLCommon

prop_equivalentTo

public com.hp.hpl.jena.ontology.daml.PropertyAccessor prop_equivalentTo()
Description copied from interface: com.hp.hpl.jena.ontology.daml.DAMLCommon

Property accessor for the equivalentTo property. This denotes that two terms have the same meaning. The DAML spec helpfully says: for equivalentTo(X, Y), read X is an equivalent term to Y.

Specified by:
prop_equivalentTo in interface com.hp.hpl.jena.ontology.daml.DAMLCommon

prop_type

public com.hp.hpl.jena.ontology.daml.PropertyAccessor prop_type()
Description copied from interface: com.hp.hpl.jena.ontology.daml.DAMLCommon

Property accessor for the rdf:type property of a DAML value.

Specified by:
prop_type in interface com.hp.hpl.jena.ontology.daml.DAMLCommon

getEquivalentValues

public com.hp.hpl.jena.util.iterator.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.

Specified by:
getEquivalentValues in interface com.hp.hpl.jena.ontology.daml.DAMLClass

getEquivalenceSet

public com.hp.hpl.jena.util.iterator.ExtendedIterator getEquivalenceSet()
Answer the set of equivalent values to this value, but not including the value itself. The iterator will range over a set: each element occurs only once.

Specified by:
getEquivalenceSet in interface com.hp.hpl.jena.ontology.daml.DAMLCommon

prop_subClassOf

public com.hp.hpl.jena.ontology.daml.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.

Specified by:
prop_subClassOf in interface com.hp.hpl.jena.ontology.daml.DAMLClass

prop_disjointWith

public com.hp.hpl.jena.ontology.daml.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.

Specified by:
prop_disjointWith in interface com.hp.hpl.jena.ontology.daml.DAMLClass

prop_disjointUnionOf

public com.hp.hpl.jena.ontology.daml.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.

Specified by:
prop_disjointUnionOf in interface com.hp.hpl.jena.ontology.daml.DAMLClass

prop_sameClassAs

public com.hp.hpl.jena.ontology.daml.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.

Specified by:
prop_sameClassAs in interface com.hp.hpl.jena.ontology.daml.DAMLClass

prop_unionOf

public com.hp.hpl.jena.ontology.daml.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.

Specified by:
prop_unionOf in interface com.hp.hpl.jena.ontology.daml.DAMLClass

prop_intersectionOf

public com.hp.hpl.jena.ontology.daml.PropertyAccessor prop_intersectionOf()

Property accessor for the property daml:intersectionOf, which denotes an intersection (conjunction) of a list of classes.

Specified by:
prop_intersectionOf in interface com.hp.hpl.jena.ontology.daml.DAMLClass

prop_complementOf

public com.hp.hpl.jena.ontology.daml.PropertyAccessor prop_complementOf()

Property accessor for the property daml:compelementOf, which denotes the class whose members are the individuals not in the given class.

Specified by:
prop_complementOf in interface com.hp.hpl.jena.ontology.daml.DAMLClass

prop_oneOf

public com.hp.hpl.jena.ontology.daml.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.

Specified by:
prop_oneOf in interface com.hp.hpl.jena.ontology.daml.DAMLClass

isEnumeration

public boolean isEnumeration()
Answer true if this class expression is an enumeration (i.e. has a property 'oneOf' with a list of values). This is not an exclusive property, a class expression 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.

Specified by:
isEnumeration in interface com.hp.hpl.jena.ontology.daml.DAMLClass

isNamedClass

public boolean isNamedClass()
Answer true if this class expression is an named class (i.e. is not an anonymous class expression). This is not an exclusive property, a class expression can be named at the same time as one of the other kinds of class expression, though the conjunction of these may produce the Nothing class.

Specified by:
isNamedClass in interface com.hp.hpl.jena.ontology.daml.DAMLClass

isRestriction

public boolean isRestriction()
Answer true if this class expression is an property restriction (i.e. is a Restriction value). 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.

Specified by:
isRestriction in interface com.hp.hpl.jena.ontology.daml.DAMLClass

isIntersection

public boolean isIntersection()
Answer true if this class expression is an boolean intersection of a list of class expressions. 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.

Specified by:
isIntersection in interface com.hp.hpl.jena.ontology.daml.DAMLClass

isUnion

public boolean isUnion()
Answer true if this class expression is an boolean union of a list of class expressions. This is not an exclusive property, a class expression can be an union at the same time as one of the other kinds of class expression, though the conjunction of these may produce the Nothing class.

Specified by:
isUnion in interface com.hp.hpl.jena.ontology.daml.DAMLClass

isDisjointUnion

public boolean isDisjointUnion()
Answer true if this class expression is a disjoint union of a list of class expressions. 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.

Specified by:
isDisjointUnion in interface com.hp.hpl.jena.ontology.daml.DAMLClass

isComplement

public boolean isComplement()
Answer true if this class expression is an boolean complement of a list of class expressions. 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.

Specified by:
isComplement in interface com.hp.hpl.jena.ontology.daml.DAMLClass

getSubClasses

public com.hp.hpl.jena.util.iterator.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) 55 for more details). The elements of the iterator will be com.hp.hpl.jena.ontology.daml.DAMLClass objects.

Specified by:
getSubClasses in interface com.hp.hpl.jena.ontology.daml.DAMLClass

getSubClasses

public com.hp.hpl.jena.util.iterator.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 com.hp.hpl.jena.ontology.daml.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 com.hp.hpl.jena.rdf.model.ModelFactory for details. The boolean parameter closed is now re-interpreted to mean the inverse of direct, see OntClass.listSubClasses(boolean)>OntClass.listSubClasses(boolean) 55 for more details.

Specified by:
getSubClasses in interface com.hp.hpl.jena.ontology.daml.DAMLClass

getSuperClasses

public com.hp.hpl.jena.util.iterator.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) 55 for more details). The elements of the iterator will be com.hp.hpl.jena.ontology.daml.DAMLClass objects.

Specified by:
getSuperClasses in interface com.hp.hpl.jena.ontology.daml.DAMLClass

getSuperClasses

public com.hp.hpl.jena.util.iterator.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 com.hp.hpl.jena.ontology.daml.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 com.hp.hpl.jena.rdf.model.ModelFactory for details. The boolean parameter closed is now re-interpreted to mean the inverse of direct, see OntClass.listSubClasses(boolean)>OntClass.listSubClasses(boolean) 55 for more details.

Specified by:
getSuperClasses in interface com.hp.hpl.jena.ontology.daml.DAMLClass

getSameClasses

public com.hp.hpl.jena.util.iterator.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() 55 . 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.

Specified by:
getSameClasses in interface com.hp.hpl.jena.ontology.daml.DAMLClass

getInstances

public com.hp.hpl.jena.util.iterator.ExtendedIterator getInstances()

Answer an iterator over the instances of this class that currently exist in the model.

Specified by:
getInstances in interface com.hp.hpl.jena.ontology.daml.DAMLClass

getDefinedProperties

public com.hp.hpl.jena.util.iterator.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.

Specified by:
getDefinedProperties in interface com.hp.hpl.jena.ontology.daml.DAMLClass

getDefinedProperties

public com.hp.hpl.jena.util.iterator.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 com.hp.hpl.jena.rdf.model.ModelFactory for details. The boolean parameter closed is now re-interpreted to mean the inverse of direct, see OntClass.listSubClasses(boolean)>OntClass.listSubClasses(boolean) 55 for more details.

Specified by:
getDefinedProperties in interface com.hp.hpl.jena.ontology.daml.DAMLClass