|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Ontology
This interface represents a WSMO ontology.
| Method Summary | |
|---|---|
void |
addAxiom(Axiom axiom)
Adds a new axiom to the set of axioms defined by this ontology. |
void |
addConcept(Concept concept)
Adds a new concept to this ontology. |
void |
addInstance(Instance instance)
Adds a new instance to the list of instances defined by this ontology. |
void |
addRelation(Relation relation)
Adds a new relation to the list of relations defined by this ontology. |
void |
addRelationInstance(RelationInstance instance)
Adds a new relationInstance to the list of relationInstances defined by this ontology. |
Axiom |
findAxiom(Identifier id)
Finds an axiom in the set of axioms defined by this ontology (returns NULL if none found). |
Concept |
findConcept(Identifier id)
Finds a concept in the set of concepts defined by this ontology (returns null if none found). |
java.util.Set |
findEntity(Identifier id)
Finds an object (axiom, concept, function, instance, relation, etc), returns NULL if none found. |
Instance |
findInstance(Identifier id)
Finds an instance in the set of instances defined by this ontology (returns NULL if none found). |
Relation |
findRelation(Identifier id)
Finds a relation in the set of relations defined by this ontology (returns NULL if none found). |
RelationInstance |
findRelationInstance(Identifier id)
Finds a relation instance in the set of relation instances defined by this ontology (returns NULL if none found). |
java.util.Set |
listAxioms()
Lists the axioms defined by this ontology. |
java.util.Set |
listConcepts()
Lists the concepts defined by this ontology. |
java.util.Set |
listInstances()
Lists the instances defined by this ontology. |
java.util.Set |
listRelationInstances()
Lists the relationInstances defined by this ontology. |
java.util.Set |
listRelations()
Lists the relations defined by this ontology. |
void |
removeAxiom(Axiom axiom)
Removes an axiom from the set of axioms defined by this ontology. |
void |
removeAxiom(Identifier id)
Removes an axiom from the set of axioms defined by this ontology. |
void |
removeConcept(Concept concept)
Removes a particular concept from this ontology. |
void |
removeConcept(Identifier id)
Removes a particular concept from this ontology. |
void |
removeInstance(Identifier id)
Removes an instance from the list of instances defined by this ontology. |
void |
removeInstance(Instance instance)
Removes an instance from the list of instances defined by this ontology. |
void |
removeRelation(Identifier id)
Removes a relation from the list of relations defined by this ontology. |
void |
removeRelation(Relation relation)
Removes a relation from the list of relations defined by this ontology. |
void |
removeRelationInstance(Identifier id)
Removes a relationInstance from the list of relationInstances defined by this ontology. |
void |
removeRelationInstance(RelationInstance instance)
Removes a relationInstance from the list of relationInstances defined by this ontology. |
| Methods inherited from interface org.wsmo.common.TopEntity |
|---|
addMediator, addNamespace, addOntology, findNamespace, getDefaultNamespace, getWsmlVariant, listMediators, listNamespaces, listOntologies, removeMediator, removeMediator, removeNamespace, removeNamespace, removeOntology, removeOntology, setDefaultNamespace, setDefaultNamespace, setWsmlVariant |
| Methods inherited from interface org.wsmo.common.Entity |
|---|
addNFPValue, addNFPValue, getIdentifier, listNFPValues, listNFPValues, removeNFP, removeNFPValue, removeNFPValue |
| Method Detail |
|---|
void addConcept(Concept concept)
throws SynchronisationException,
InvalidModelException
concept - The new concept to be added.
SynchronisationException
InvalidModelExceptionremoveConcept(Concept concept),
removeConcept(Identifier id),
OntologyElement.setOntology(Ontology ontology)
void removeConcept(Concept concept)
throws SynchronisationException,
InvalidModelException
concept - The concept to be removed.
SynchronisationException
InvalidModelExceptionremoveConcept(Identifier id)
void removeConcept(Identifier id)
throws SynchronisationException,
InvalidModelException
concept - The concept to be removed.
SynchronisationException
InvalidModelExceptionremoveConcept(Concept)
java.util.Set listConcepts()
throws SynchronisationException
SynchronisationExceptionConcept
Concept findConcept(Identifier id)
throws SynchronisationException
id - The Identifier of the requested concept.
SynchronisationException
void addRelation(Relation relation)
throws SynchronisationException,
InvalidModelException
relation - The relatino ot be added.
SynchronisationException
InvalidModelExceptionremoveRelation(Relation relation),
removeRelation(Identifier id),
OntologyElement.setOntology(Ontology ontology)
void removeRelation(Relation relation)
throws SynchronisationException,
InvalidModelException
relation - The relation to be removed.
SynchronisationException
InvalidModelExceptionremoveRelation(Identifier id)
void removeRelation(Identifier id)
throws SynchronisationException,
InvalidModelException
relation - The relation to be removed.
SynchronisationException
InvalidModelExceptionremoveRelation(Relation)
java.util.Set listRelations()
throws SynchronisationException
SynchronisationExceptionRelation
Relation findRelation(Identifier id)
throws SynchronisationException
id - The Identifier of the requested relation.
SynchronisationException
void addInstance(Instance instance)
throws SynchronisationException,
InvalidModelException
instance - The new instance to be added.
SynchronisationException
InvalidModelExceptionremoveInstance(Instance instance),
removeInstance(Identifier id),
OntologyElement.setOntology(Ontology ontology)
void removeInstance(Instance instance)
throws SynchronisationException,
InvalidModelException
instance - The instance to be removed.
SynchronisationException
InvalidModelExceptionremoveInstance(Identifier id)
void removeInstance(Identifier id)
throws SynchronisationException,
InvalidModelException
instance - The instance to be removed.
SynchronisationException
InvalidModelExceptionremoveInstance(Instance)
java.util.Set listInstances()
throws SynchronisationException
SynchronisationExceptionInstance
Instance findInstance(Identifier id)
throws SynchronisationException
id - The Identifier of the requested instance.
SynchronisationException
void addAxiom(Axiom axiom)
throws SynchronisationException,
InvalidModelException
axiom - The new axioms to be added.
SynchronisationException
InvalidModelExceptionremoveAxiom(Axiom axiom),
removeAxiom(Identifier id),
OntologyElement.setOntology(Ontology ontology)
void removeAxiom(Axiom axiom)
throws SynchronisationException,
InvalidModelException
axiom - The axiom to be removed.
SynchronisationException
InvalidModelExceptionremoveAxiom(Identifier id)
void removeAxiom(Identifier id)
throws SynchronisationException,
InvalidModelException
id - The ID of the axiom to be removed.
SynchronisationException
InvalidModelExceptionremoveAxiom(Axiom axiom)
java.util.Set listAxioms()
throws SynchronisationException
SynchronisationExceptionAxiom
Axiom findAxiom(Identifier id)
throws SynchronisationException
id - The Identifier of the requested axiom.
SynchronisationException
java.util.Set listRelationInstances()
throws SynchronisationException
SynchronisationExceptionRelationInstance
void addRelationInstance(RelationInstance instance)
throws SynchronisationException,
InvalidModelException
instance - The new relationInstance to be added.
SynchronisationException
InvalidModelExceptionremoveRelationInstance(RelationInstance instance),
removeRelationInstance(Identifier id),
OntologyElement.setOntology(Ontology ontology)
void removeRelationInstance(RelationInstance instance)
throws SynchronisationException,
InvalidModelException
instance - The relationInstance to be removed.
SynchronisationException
InvalidModelExceptionremoveRelationInstance(Identifier id)
void removeRelationInstance(Identifier id)
throws SynchronisationException,
InvalidModelException
id - The ID of the relationInstance to be removed.
SynchronisationException
InvalidModelExceptionremoveRelationInstance(RelationInstance instance)
RelationInstance findRelationInstance(Identifier id)
throws SynchronisationException
id - The Identifier of the requested relation instance.
SynchronisationException
java.util.Set findEntity(Identifier id)
throws SynchronisationException
id - The Identifier of the requested object.
SynchronisationExceptionEntity
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||