|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Method Summary | |
void |
addSameIndividualAs(Resource res)
Add an individual that is declared to be equivalent to this individual. |
OntResource |
getSameIndividualAs()
Answer a resource that is declared to be the same as this individual. |
boolean |
isSameIndividualAs(Resource res)
Answer true if this individual is the same as the given resource. |
ExtendedIterator |
listSameIndividualAs()
Answer an iterator over all of the resources that are declared to be equivalent to this individual. |
void |
removeSameIndividualAs(Resource res)
Remove the statement that this individual is the same as the given individual. |
void |
setSameIndividualAs(Resource res)
Assert equivalence between the given individual and this individual. |
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, getURI, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, isAnon, listProperties, listProperties, removeAll, removeProperties, toString |
Methods inherited from interface com.hp.hpl.jena.rdf.model.RDFNode |
as, asNode, canAs, inModel, visitWith |
Method Detail |
public void setSameIndividualAs(Resource res)
Assert equivalence between the given individual and this individual. Any existing
statements for sameIndividualAs
will be removed.
Note that sameAs
and sameIndividualAs
are aliases.
res
- The resource that declared to be the same as this individual
OntProfileException
- If the sameIndividualAs property is not supported in the current language profile.public void addSameIndividualAs(Resource res)
Add an individual that is declared to be equivalent to this individual.
Note that sameAs
and sameIndividualAs
are aliases.
res
- A resource that declared to be the same as this individual
OntProfileException
- If the sameIndividualAs property is not supported in the current language profile.public OntResource getSameIndividualAs()
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.
OntProfileException
- If the sameIndividualAs property is not supported in the current language profile.public ExtendedIterator listSameIndividualAs()
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.
OntProfileException
- If the sameIndividualAs property is not supported in the current language profile.public boolean isSameIndividualAs(Resource res)
Answer true if this individual is the same as the given resource.
res
- A resource to test against
sameIndividualAs
statement.public void removeSameIndividualAs(Resource res)
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.
res
- A resource that may be declared to be the sameIndividualAs this resource
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |