|
||||||||||
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). |
Set<Entity> |
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). |
Set<Axiom> |
listAxioms()
Lists the axioms defined by this ontology. |
Set<Concept> |
listConcepts()
Lists the concepts defined by this ontology. |
Set<Instance> |
listInstances()
Lists the instances defined by this ontology. |
Set<RelationInstance> |
listRelationInstances()
Lists the relationInstances defined by this ontology. |
Set<Relation> |
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, 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
InvalidModelException
removeConcept(Concept concept)
,
removeConcept(Identifier id)
,
OntologyElement.setOntology(Ontology ontology)
void removeConcept(Concept concept) throws SynchronisationException, InvalidModelException
concept
- The concept to be removed.
SynchronisationException
InvalidModelException
removeConcept(Identifier id)
void removeConcept(Identifier id) throws SynchronisationException, InvalidModelException
concept
- The concept to be removed.
SynchronisationException
InvalidModelException
removeConcept(Concept)
Set<Concept> listConcepts() throws SynchronisationException
SynchronisationException
Concept
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
InvalidModelException
removeRelation(Relation relation)
,
removeRelation(Identifier id)
,
OntologyElement.setOntology(Ontology ontology)
void removeRelation(Relation relation) throws SynchronisationException, InvalidModelException
relation
- The relation to be removed.
SynchronisationException
InvalidModelException
removeRelation(Identifier id)
void removeRelation(Identifier id) throws SynchronisationException, InvalidModelException
relation
- The relation to be removed.
SynchronisationException
InvalidModelException
removeRelation(Relation)
Set<Relation> listRelations() throws SynchronisationException
SynchronisationException
Relation
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
InvalidModelException
removeInstance(Instance instance)
,
removeInstance(Identifier id)
,
OntologyElement.setOntology(Ontology ontology)
void removeInstance(Instance instance) throws SynchronisationException, InvalidModelException
instance
- The instance to be removed.
SynchronisationException
InvalidModelException
removeInstance(Identifier id)
void removeInstance(Identifier id) throws SynchronisationException, InvalidModelException
instance
- The instance to be removed.
SynchronisationException
InvalidModelException
removeInstance(Instance)
Set<Instance> listInstances() throws SynchronisationException
SynchronisationException
Instance
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
InvalidModelException
removeAxiom(Axiom axiom)
,
removeAxiom(Identifier id)
,
OntologyElement.setOntology(Ontology ontology)
void removeAxiom(Axiom axiom) throws SynchronisationException, InvalidModelException
axiom
- The axiom to be removed.
SynchronisationException
InvalidModelException
removeAxiom(Identifier id)
void removeAxiom(Identifier id) throws SynchronisationException, InvalidModelException
id
- The ID of the axiom to be removed.
SynchronisationException
InvalidModelException
removeAxiom(Axiom axiom)
Set<Axiom> listAxioms() throws SynchronisationException
SynchronisationException
Axiom
Axiom findAxiom(Identifier id) throws SynchronisationException
id
- The Identifier of the requested axiom.
SynchronisationException
Set<RelationInstance> listRelationInstances() throws SynchronisationException
SynchronisationException
RelationInstance
void addRelationInstance(RelationInstance instance) throws SynchronisationException, InvalidModelException
instance
- The new relationInstance to be added.
SynchronisationException
InvalidModelException
removeRelationInstance(RelationInstance instance)
,
removeRelationInstance(Identifier id)
,
OntologyElement.setOntology(Ontology ontology)
void removeRelationInstance(RelationInstance instance) throws SynchronisationException, InvalidModelException
instance
- The relationInstance to be removed.
SynchronisationException
InvalidModelException
removeRelationInstance(Identifier id)
void removeRelationInstance(Identifier id) throws SynchronisationException, InvalidModelException
id
- The ID of the relationInstance to be removed.
SynchronisationException
InvalidModelException
removeRelationInstance(RelationInstance instance)
RelationInstance findRelationInstance(Identifier id) throws SynchronisationException
id
- The Identifier of the requested relation instance.
SynchronisationException
Set<Entity> findEntity(Identifier id) throws SynchronisationException
id
- The Identifier of the requested object.
SynchronisationException
Entity
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |