com.hp.hpl.jena.daml
Interface DAMLInstance
- All Superinterfaces:
- DAMLCommon, RDFNode, Resource
- All Known Implementing Classes:
- DAMLInstanceImpl
- public interface DAMLInstance
- extends DAMLCommon
Java representation of a DAML Instance.
- Version:
- CVS info: $Id: DAMLInstance.java,v 1.1 2001/09/24 17:02:38 ijd Exp $
- Author:
- Ian Dickinson, HP Labs (email)
Method Summary |
PropertyAccessor |
accessProperty(Property property)
Answer a property accessor for a user defined property. |
java.util.Iterator |
getEquivalentValues()
Answer an iterator over all of the DAML instances that are equivalent to this
instance, which will be the union of daml:equivalentTo and
daml:sameIndividualAs . |
java.util.Iterator |
getSameInstances()
Return an iterator over all of the instances that are the same as this one,
by generating the transitive closure over the daml:samePropertyAs
property. |
PropertyAccessor |
prop_sameIndividualAs()
Property accessor for daml:sameIndividualAs property on a DAML instance. |
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 |
prop_sameIndividualAs
public PropertyAccessor prop_sameIndividualAs()
- Property accessor for
daml:sameIndividualAs
property on a DAML instance.
- Returns:
- a property accessor
getSameInstances
public java.util.Iterator getSameInstances()
- Return an iterator over all of the instances that are the same as this one,
by generating the transitive closure over the
daml:samePropertyAs
property.
- Returns:
- an iterator whose values will all be DAMLInstance objects
getEquivalentValues
public java.util.Iterator getEquivalentValues()
- Answer an iterator over all of the DAML instances that are equivalent to this
instance, which will be the union of
daml:equivalentTo
and
daml:sameIndividualAs
.
- Specified by:
getEquivalentValues
in interface DAMLCommon
- Returns:
- an iterator ranging over every equivalent DAML instance - each value of
the iteration should be a DAMLInstance object.
accessProperty
public PropertyAccessor accessProperty(Property property)
- Answer a property accessor for a user defined property. TODO: think of
a better name for this method!
- Parameters:
property
- An RDF or DAML property- Returns:
- a property accessor, that simplifies some of the basic operations
of a given property on a given object
Copyright © 2001 Hewlett-Packard. All Rights Reserved.