org.mindswap.owl
Interface OWLIndividual

All Superinterfaces:
OWLEntity, OWLObject, OWLValue
All Known Subinterfaces:
Actor, AnyOrder, Atom, AtomicGrounding, AtomicProcess, AtomList, Binding, BuiltinAtom, Choice, ClassAtom, CompositeProcess, Condition, Conditional, ControlConstruct, ControlConstructBag, ControlConstructList, DataPropertyAtom, DifferentIndividualsAtom, Expression, ForEach, Grounding, IfThenElse, IndividualPropertyAtom, Input, InputBinding, Iterate, JavaAtomicGrounding, Local, LogicLanguage, MessageMap, MultiConditional, Output, OutputBinding, OWLSIndividual, OWLSObjList, Parameter, Perform, Process, Produce, Profile, RDFList, RepeatUntil, RepeatWhile, Result, ResultVar, SameIndividualAtom, Sequence, Service, ServiceCategory, ServiceParameter, SimpleProcess, Split, SplitJoin, SWRLDataVariable, SWRLIndividual, SWRLIndividualObject, SWRLIndividualVariable, UPnPAtomicGrounding, ValueOf, Variable, WSDLAtomicGrounding, WSDLOperationRef
All Known Implementing Classes:
OWLSExtensions.ExtendedProfile, OWLSExtensions.OwnerEntity, impl.owls.profile.ProfileImpl, impl.owl.WrappedIndividual

public interface OWLIndividual
extends OWLEntity, OWLValue

The interface for OWL individuals.

Author:
Evren Sirin

Method Summary
 void addProperty(OWLDataProperty prop, java.lang.Object value)
           
 void addProperty(OWLDataProperty prop, OWLDataValue value)
           
 void addProperty(OWLDataProperty prop, java.lang.String value)
           
 void addProperty(OWLObjectProperty prop, OWLIndividual value)
           
 void addType(OWLClass c)
           
 OWLIndividualList getDifferentIndividuals()
          Get all the individuals that are different from this individual.
 OWLIndividualList getIncomingProperties()
           
 OWLIndividualList getIncomingProperties(OWLObjectProperty prop)
           
 OWLIndividual getIncomingProperty(OWLObjectProperty prop)
           
 OWLSOntology getOWLSOntology()
          Deprecated. Use getOntology() instead
 java.util.Map getProperties()
          Get all the properties asserted about this individual.
 OWLDataValueList getProperties(OWLDataProperty prop)
          Get all the values for the given datatype property.
 OWLIndividualList getProperties(OWLObjectProperty prop)
          Get all the values for the given object property.
 OWLDataValue getProperty(OWLDataProperty prop)
          Get the value for the given datatype property.
 OWLDataValue getProperty(OWLDataProperty prop, java.lang.String lang)
          Get the value for the given property URI with the specified language identifier.
 OWLIndividual getProperty(OWLObjectProperty prop)
          Get the value for the given object property.
 OWLIndividualList getSameIndividuals()
          Return all then individuals that are same as this individual.
 OWLOntology getSourceOntology()
          Return the original OWL ontology this individual comes from.
 OWLClass getType()
           
 java.util.Set getTypes()
           
 boolean hasProperty(OWLProperty prop)
          Return true if a value for the given property exists.
 boolean hasProperty(OWLProperty prop, OWLValue value)
          Return true if the given value for the property exists.
 boolean isDifferentFrom(OWLIndividual other)
          Return true if given this individual is different from the given individual (according to the semantics of owl:differentFrom).
 boolean isSameAs(OWLIndividual other)
          Return true if this individuals is same as the given individual (according to the semantics of owl:differentFrom).
 boolean isType(OWLClass c)
           
 void removeProperties(OWLProperty prop)
           
 void removeProperty(OWLProperty theProp, OWLValue theValue)
           
 void removeTypes()
           
 void setProperty(OWLDataProperty prop, java.lang.Object value)
          Set the value for the given data property to the given literal by determining the RDF datatype from Java class.
 void setProperty(OWLDataProperty prop, OWLDataValue value)
          Set the value for the given data property.
 void setProperty(OWLDataProperty prop, java.lang.String value)
          Set the value for the given data property to the given plain literal value (no language identifier).
 void setProperty(OWLObjectProperty prop, OWLIndividual value)
           
 java.lang.String toRDF()
          Return the RDF/XML representation of this individual.
 java.lang.String toRDF(boolean withRDFTag)
          Return the RDF/XML representation of this individual.
 
Methods inherited from interface org.mindswap.owl.OWLEntity
addAnnotation, addAnnotation, addAnnotation, getAnnotation, getAnnotation, getAnnotations, getAnonID, getKB, getLabel, getLabel, getLabels, getLocalName, getOntology, getQName, getURI, isAnon, removeAnnotations, setAnnotation, setAnnotation, setAnnotation, setLabel, setLabel
 
Methods inherited from interface org.mindswap.owl.OWLObject
canCastTo, castTo, debugString, getImplementation, getNextView, setNextView
 
Methods inherited from interface org.mindswap.owl.OWLValue
isDataValue, isIndividual
 
Methods inherited from interface org.mindswap.owl.OWLObject
canCastTo, castTo, debugString, getImplementation, getNextView, setNextView
 

Method Detail

hasProperty

boolean hasProperty(OWLProperty prop)
Return true if a value for the given property exists.

Parameters:
propURI -
Returns:

hasProperty

boolean hasProperty(OWLProperty prop,
                    OWLValue value)
Return true if the given value for the property exists.

Parameters:
propURI -
Returns:

getProperty

OWLIndividual getProperty(OWLObjectProperty prop)
Get the value for the given object property. If the resource has more than one value for this property a random one will be returned

Parameters:
propURI -
Returns:

getProperties

OWLIndividualList getProperties(OWLObjectProperty prop)
Get all the values for the given object property.

Parameters:
propURI -
Returns:

getProperty

OWLDataValue getProperty(OWLDataProperty prop)
Get the value for the given datatype property. If the resource has more than one value for this property with different language identifiers than the returned value will be determined according to the settings defined in OWLConfig

Parameters:
propURI -
Returns:

getProperty

OWLDataValue getProperty(OWLDataProperty prop,
                         java.lang.String lang)
Get the value for the given property URI with the specified language identifier. If the value for the given language does not exist return null even if a value is found for another language. Use getProperty(URI) to be more flexible.

Parameters:
propURI -
lang -
Returns:

getProperties

OWLDataValueList getProperties(OWLDataProperty prop)
Get all the values for the given datatype property.

Parameters:
propURI -
Returns:

getProperties

java.util.Map getProperties()
Get all the properties asserted about this individual.


getIncomingProperty

OWLIndividual getIncomingProperty(OWLObjectProperty prop)

getIncomingProperties

OWLIndividualList getIncomingProperties(OWLObjectProperty prop)

getIncomingProperties

OWLIndividualList getIncomingProperties()

setProperty

void setProperty(OWLDataProperty prop,
                 java.lang.String value)
Set the value for the given data property to the given plain literal value (no language identifier). All the existing data values (that has no language identifier) will be removed.

Parameters:
propURI -
value -

setProperty

void setProperty(OWLDataProperty prop,
                 java.lang.Object value)
Set the value for the given data property to the given literal by determining the RDF datatype from Java class. This function is equivalent to setProperty(prop, OWLFactory.createDataValue(value)).

Parameters:
prop -
value -

setProperty

void setProperty(OWLDataProperty prop,
                 OWLDataValue value)
Set the value for the given data property. All the existing data values (that has the same language identifier with the given value) will be removed.

Parameters:
propURI -
value -

addProperty

void addProperty(OWLDataProperty prop,
                 OWLDataValue value)

addProperty

void addProperty(OWLDataProperty prop,
                 java.lang.String value)

addProperty

void addProperty(OWLDataProperty prop,
                 java.lang.Object value)

removeProperties

void removeProperties(OWLProperty prop)

removeProperty

void removeProperty(OWLProperty theProp,
                    OWLValue theValue)

addProperty

void addProperty(OWLObjectProperty prop,
                 OWLIndividual value)

setProperty

void setProperty(OWLObjectProperty prop,
                 OWLIndividual value)

addType

void addType(OWLClass c)

removeTypes

void removeTypes()

getType

OWLClass getType()

getTypes

java.util.Set getTypes()

isType

boolean isType(OWLClass c)

toRDF

java.lang.String toRDF()
Return the RDF/XML representation of this individual. The returned RDF/XML is supposed to be a nested RDF statement which is the b-node closure of the individual.


toRDF

java.lang.String toRDF(boolean withRDFTag)
Return the RDF/XML representation of this individual. The returned RDF/XML is supposed to be a nested RDF statement which is the b-node closure of the individual.

Parameters:
withRDFTag - If false the enclosing tag will be omitted
Returns:

getSourceOntology

OWLOntology getSourceOntology()
Return the original OWL ontology this individual comes from. If the OWL-S ontology this individual comes from is the latest version then this function will return the same value as getOntology(). If the original ontology was from an older version of OWL-S and translated to the latest version then this function will return a reference to the original ontology. This way the information that might have been lost during translation, e.g. non-OWL-S descriptions in the original file, can still be accessed.

Returns:

getOWLSOntology

OWLSOntology getOWLSOntology()
Deprecated. Use getOntology() instead


isSameAs

boolean isSameAs(OWLIndividual other)
Return true if this individuals is same as the given individual (according to the semantics of owl:differentFrom).

Parameters:
other -
Returns:

getSameIndividuals

OWLIndividualList getSameIndividuals()
Return all then individuals that are same as this individual.

Returns:

isDifferentFrom

boolean isDifferentFrom(OWLIndividual other)
Return true if given this individual is different from the given individual (according to the semantics of owl:differentFrom).

Parameters:
ind1 -
ind2 -
Returns:

getDifferentIndividuals

OWLIndividualList getDifferentIndividuals()
Get all the individuals that are different from this individual.

Returns:


Copyright © 2004 Evren Sirin. All Rights Reserved.