com.hp.hpl.jena.ontology
Interface Individual

All Superinterfaces:
FrontsNode, OntResource, RDFNode, Resource

public interface Individual
extends OntResource

Interface that encapsulates an individual in an ontology, sometimes referred to as a fact or assertion, or a member of the a-box. In order to be recognised as an individual, rather than a generic resource, at least one rdf:type statement, referring to a known class, must be present in the model.

Version:
CVS $Id: Individual.java,v 1.12 2005/02/21 12:04:28 andy_seaborne Exp $
Author:
Ian Dickinson, HP Labs (email)

Method Summary
 void addSameIndividualAs(Resource res)
          Deprecated. WebOnt have removed owl:sameIndividualAs. Use OntResource.addSameAs(com.hp.hpl.jena.rdf.model.Resource) instead.
 OntResource getSameIndividualAs()
          Deprecated. WebOnt have removed owl:sameIndividualAs. Use OntResource.getSameAs() instead.
 boolean isSameIndividualAs(Resource res)
          Deprecated. WebOnt have removed owl:sameIndividualAs. Use OntResource.isSameAs(com.hp.hpl.jena.rdf.model.Resource) instead.
 ExtendedIterator listSameIndividualAs()
          Deprecated. WebOnt have removed owl:sameIndividualAs. Use OntResource.listSameAs() instead.
 void removeSameIndividualAs(Resource res)
          Deprecated. WebOnt have removed owl:sameIndividualAs. Use OntResource.removeSameAs(com.hp.hpl.jena.rdf.model.Resource) instead.
 void setSameIndividualAs(Resource res)
          Deprecated. WebOnt have removed owl:sameIndividualAs. Use OntResource.setSameAs(com.hp.hpl.jena.rdf.model.Resource) instead.
 
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, getOntModel, 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, listProperties, listProperties, removeAll, removeProperties, toString
 
Methods inherited from interface com.hp.hpl.jena.rdf.model.RDFNode
as, canAs, inModel, isAnon, isLiteral, isResource, isURIResource, visitWith
 
Methods inherited from interface com.hp.hpl.jena.graph.FrontsNode
asNode
 

Method Detail

setSameIndividualAs

void setSameIndividualAs(Resource res)
Deprecated. WebOnt have removed owl:sameIndividualAs. Use OntResource.setSameAs(com.hp.hpl.jena.rdf.model.Resource) instead.

Assert equivalence between the given individual and this individual. Any existing statements for sameIndividualAs will be removed.

Note that sameAs and sameIndividualAs are aliases.

Parameters:
res - The resource that declared to be the same as this individual
Throws:
OntProfileException - If the sameIndividualAs property is not supported in the current language profile.

addSameIndividualAs

void addSameIndividualAs(Resource res)
Deprecated. WebOnt have removed owl:sameIndividualAs. Use OntResource.addSameAs(com.hp.hpl.jena.rdf.model.Resource) instead.

Add an individual that is declared to be equivalent to this individual.

Note that sameAs and sameIndividualAs are aliases.

Parameters:
res - A resource that declared to be the same as this individual
Throws:
OntProfileException - If the sameIndividualAs property is not supported in the current language profile.

getSameIndividualAs

OntResource getSameIndividualAs()
Deprecated. WebOnt have removed owl:sameIndividualAs. Use OntResource.getSameAs() instead.

Answer a resource that is declared to be the same as this individual. If there are more than one such resource, an arbitrary selection is made.

Note that sameAs and sameIndividualAs are aliases.

Returns:
res An ont resource that declared to be the same as this individual
Throws:
OntProfileException - If the sameIndividualAs property is not supported in the current language profile.

listSameIndividualAs

ExtendedIterator listSameIndividualAs()
Deprecated. WebOnt have removed owl:sameIndividualAs. Use OntResource.listSameAs() instead.

Answer an iterator over all of the resources that are declared to be equivalent to this individual. Each elemeent of the iterator will be an OntResource.

Note that sameAs and sameIndividualAs are aliases.

Returns:
An iterator over the resources equivalent to this individual.
Throws:
OntProfileException - If the sameIndividualAs property is not supported in the current language profile.

isSameIndividualAs

boolean isSameIndividualAs(Resource res)
Deprecated. WebOnt have removed owl:sameIndividualAs. Use OntResource.isSameAs(com.hp.hpl.jena.rdf.model.Resource) instead.

Answer true if this individual is the same as the given resource.

Parameters:
res - A resource to test against
Returns:
True if the resources are declared the same via a sameIndividualAs statement.

removeSameIndividualAs

void removeSameIndividualAs(Resource res)
Deprecated. WebOnt have removed owl:sameIndividualAs. Use OntResource.removeSameAs(com.hp.hpl.jena.rdf.model.Resource) instead.

Remove the statement that this individual is the same as the given individual. If this statement is not true of the current model, nothing happens.

Parameters:
res - A resource that may be declared to be the sameIndividualAs this resource


Copyright © 2000, 2001, 2002, 2003, 2004, 2005 Hewlett-Packard Development Company, LP