org.omwg.ontology
Interface OntologyElement

All Superinterfaces:
Entity
All Known Subinterfaces:
Axiom, Concept, Instance, Relation, RelationInstance

public interface OntologyElement
extends Entity

this is a helper super-interface for ontology elements: - axioms - concepts - instances - relations - relation instances

Version:
$Revision: 1482 $ $Date: 2006-01-16 15:37:08 +0200 (Mon, 16 Jan 2006) $
Author:
not attributable
See Also:
Ontology

Method Summary
 Ontology getOntology()
          Retrieve the ontology containing this entity.
 void setOntology(Ontology ontology)
          Sets the ontology containing this entity Note that a call to setOntology() i.e.
 
Methods inherited from interface org.wsmo.common.Entity
addNFPValue, addNFPValue, getIdentifier, listNFPValues, listNFPValues, removeNFP, removeNFPValue, removeNFPValue
 

Method Detail

getOntology

Ontology getOntology()
                     throws SynchronisationException
Retrieve the ontology containing this entity.

Throws:
SynchronisationException

setOntology

void setOntology(Ontology ontology)
                 throws SynchronisationException,
                        InvalidModelException
Sets the ontology containing this entity Note that a call to setOntology() i.e. adding an element to an ontology, should also invoke the respective Ontology::addXXX() method and Ontology::removeXXX() method (of the old ontology if existing).

Parameters:
ontology - the ontology
Throws:
SynchronisationException
InvalidModelException
See Also:
getOntology(), Ontology.addAxiom(Axiom axiom), Ontology.addConcept(Concept concept), Ontology.addInstance(Instance instance), Ontology.addRelation(Relation relation), Ontology.addRelationInstance(RelationInstance instance)


Copyright © 2004-2008 Ontotext Lab.. All Rights Reserved.