|
|||||||||
| Home >> All >> com >> hp >> hpl >> jena >> ontology >> daml >> [ impl overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.hp.hpl.jena.ontology.daml.impl
Class DAMLClassImpl

java.lang.Objectcom.hp.hpl.jena.enhanced.Polymorphic
com.hp.hpl.jena.enhanced.EnhNode
com.hp.hpl.jena.rdf.model.impl.ResourceImpl
com.hp.hpl.jena.ontology.impl.OntResourceImpl
com.hp.hpl.jena.ontology.impl.OntClassImpl
com.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
- extends com.hp.hpl.jena.ontology.impl.OntClassImpl
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 |
| 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.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.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 |
| 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.DAMLCommonAdd 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:
setRDFTypein interfacecom.hp.hpl.jena.ontology.daml.DAMLCommon
- Description copied from interface:
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:
getDAMLModelin interfacecom.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
completeflag 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:
getRDFTypesin interfacecom.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:
getVocabularyin interfacecom.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_labelin interfacecom.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_commentin interfacecom.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
equivalentToproperty. 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_equivalentToin interfacecom.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:typeproperty of a DAML value.- Specified by:
prop_typein interfacecom.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:equivalentToanddaml:sameClassAs.- Specified by:
getEquivalentValuesin interfacecom.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:
getEquivalenceSetin interfacecom.hp.hpl.jena.ontology.daml.DAMLCommon
prop_subClassOf
public com.hp.hpl.jena.ontology.daml.PropertyAccessor prop_subClassOf()
Property accessor for the
daml:subClassOfproperty of a class. This denotes a class that is a super-class of this class.- Specified by:
prop_subClassOfin interfacecom.hp.hpl.jena.ontology.daml.DAMLClass
prop_disjointWith
public com.hp.hpl.jena.ontology.daml.PropertyAccessor prop_disjointWith()
Property accessor for the
daml:disjointWithproperty of a class. This denotes a class with which this class has no instances in common.- Specified by:
prop_disjointWithin interfacecom.hp.hpl.jena.ontology.daml.DAMLClass
prop_disjointUnionOf
public com.hp.hpl.jena.ontology.daml.PropertyAccessor prop_disjointUnionOf()
Property accessor for the
daml:disjointUnionOfproperty of a class. This denotes a list of classes that are each pair-wise disjoint, and whose union describes this class.- Specified by:
prop_disjointUnionOfin interfacecom.hp.hpl.jena.ontology.daml.DAMLClass
prop_sameClassAs
public com.hp.hpl.jena.ontology.daml.PropertyAccessor prop_sameClassAs()
Property accessor for the
daml:sameClassAsproperty of a DAML class. This denotes a class whose instances are the same those of this class.- Specified by:
prop_sameClassAsin interfacecom.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_unionOfin interfacecom.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_intersectionOfin interfacecom.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_complementOfin interfacecom.hp.hpl.jena.ontology.daml.DAMLClass
prop_oneOf
public com.hp.hpl.jena.ontology.daml.PropertyAccessor prop_oneOf()
Property accessor for the
daml:oneOfproperty, which defines a class expression denoting that the class is exactly one of the given list of classes.- Specified by:
prop_oneOfin interfacecom.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:
isEnumerationin interfacecom.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:
isNamedClassin interfacecom.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:
isRestrictionin interfacecom.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:
isIntersectionin interfacecom.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:
isUnionin interfacecom.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:
isDisjointUnionin interfacecom.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:
isComplementin interfacecom.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:
getSubClassesin interfacecom.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
closedis now re-interpreted to mean the inverse ofdirect, see OntClass.listSubClasses(boolean)>OntClass.listSubClasses(boolean)55 for more details.- Specified by:
getSubClassesin interfacecom.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:
getSuperClassesin interfacecom.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
closedis now re-interpreted to mean the inverse ofdirect, see OntClass.listSubClasses(boolean)>OntClass.listSubClasses(boolean)55 for more details.- Specified by:
getSuperClassesin interfacecom.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:sameClassAsrelation. Note: only considersdaml:sameClassAs, for general equivalence, seegetEquivalentValues()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:
getSameClassesin interfacecom.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:
getInstancesin interfacecom.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:
getDefinedPropertiesin interfacecom.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
closedis now re-interpreted to mean the inverse ofdirect, see OntClass.listSubClasses(boolean)>OntClass.listSubClasses(boolean)55 for more details.- Specified by:
getDefinedPropertiesin interfacecom.hp.hpl.jena.ontology.daml.DAMLClass
|
|||||||||
| Home >> All >> com >> hp >> hpl >> jena >> ontology >> daml >> [ impl overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC