|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OWLIndividual
The interface for OWL individuals.
| 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 |
|---|
boolean hasProperty(OWLProperty prop)
propURI -
boolean hasProperty(OWLProperty prop,
OWLValue value)
propURI -
OWLIndividual getProperty(OWLObjectProperty prop)
propURI -
OWLIndividualList getProperties(OWLObjectProperty prop)
propURI -
OWLDataValue getProperty(OWLDataProperty prop)
OWLConfig
propURI -
OWLDataValue getProperty(OWLDataProperty prop,
java.lang.String lang)
getProperty(URI) to be more flexible.
propURI - lang -
OWLDataValueList getProperties(OWLDataProperty prop)
propURI -
java.util.Map getProperties()
OWLIndividual getIncomingProperty(OWLObjectProperty prop)
OWLIndividualList getIncomingProperties(OWLObjectProperty prop)
OWLIndividualList getIncomingProperties()
void setProperty(OWLDataProperty prop,
java.lang.String value)
propURI - value -
void setProperty(OWLDataProperty prop,
java.lang.Object value)
setProperty(prop, OWLFactory.createDataValue(value)).
prop - value -
void setProperty(OWLDataProperty prop,
OWLDataValue value)
propURI - value -
void addProperty(OWLDataProperty prop,
OWLDataValue value)
void addProperty(OWLDataProperty prop,
java.lang.String value)
void addProperty(OWLDataProperty prop,
java.lang.Object value)
void removeProperties(OWLProperty prop)
void removeProperty(OWLProperty theProp,
OWLValue theValue)
void addProperty(OWLObjectProperty prop,
OWLIndividual value)
void setProperty(OWLObjectProperty prop,
OWLIndividual value)
void addType(OWLClass c)
void removeTypes()
OWLClass getType()
java.util.Set getTypes()
boolean isType(OWLClass c)
java.lang.String toRDF()
java.lang.String toRDF(boolean withRDFTag)
withRDFTag - If false the enclosing OWLOntology getSourceOntology()
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.
OWLSOntology getOWLSOntology()
boolean isSameAs(OWLIndividual other)
other -
OWLIndividualList getSameIndividuals()
boolean isDifferentFrom(OWLIndividual other)
ind1 - ind2 -
OWLIndividualList getDifferentIndividuals()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||