com.hp.hpl.jena.ontology.daml
Interface DAMLInstance

All Superinterfaces:
DAMLCommon, FrontsNode, OntResource, RDFNode, Resource
All Known Subinterfaces:
DAMLDataInstance

public interface DAMLInstance
extends DAMLCommon

Java representation of a DAML Instance.

Version:
CVS info: $Id: DAMLInstance.java,v 1.6 2004/12/06 13:50:18 andy_seaborne Exp $
Author:
Ian Dickinson, HP Labs (email)

Method Summary
 PropertyAccessor accessProperty(Property property)
          Answer a property accessor for a user defined property.
 ExtendedIterator 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.
 ExtendedIterator 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.ontology.daml.DAMLCommon
getDAMLModel, getEquivalenceSet, getRDFTypes, getVocabulary, prop_comment, prop_equivalentTo, prop_label, prop_type, setRDFType
 
Methods inherited from interface com.hp.hpl.jena.ontology.OntResource
accessor, accessor, 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, 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
 

Method Detail

prop_sameIndividualAs

PropertyAccessor prop_sameIndividualAs()
Property accessor for daml:sameIndividualAs property on a DAML instance.

Returns:
a property accessor

getSameInstances

ExtendedIterator 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

ExtendedIterator 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

PropertyAccessor accessProperty(Property property)
Answer a property accessor for a user defined property.

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 © 2000, 2001, 2002, 2003, 2004 Hewlett-Packard Development Company, LP