com.ontotext.wsmo4j.ontology
Class OntologyImpl

java.lang.Object
  extended by com.ontotext.wsmo4j.common.EntityImpl
      extended by com.ontotext.wsmo4j.common.TopEntityImpl
          extended by com.ontotext.wsmo4j.ontology.OntologyImpl
All Implemented Interfaces:
org.omwg.ontology.Ontology, org.wsmo.common.Entity, org.wsmo.common.TopEntity

public class OntologyImpl
extends TopEntityImpl
implements org.omwg.ontology.Ontology


Constructor Summary
OntologyImpl(org.wsmo.common.IRI thisID)
           
 
Method Summary
 void addAxiom(org.omwg.ontology.Axiom axiom)
           
 void addConcept(org.omwg.ontology.Concept concept)
           
 void addInstance(org.omwg.ontology.Instance instance)
           
 void addRelation(org.omwg.ontology.Relation relation)
           
 void addRelationInstance(org.omwg.ontology.RelationInstance instance)
           
 boolean equals(Object object)
           
 org.omwg.ontology.Axiom findAxiom(org.wsmo.common.Identifier id)
           
 org.omwg.ontology.Concept findConcept(org.wsmo.common.Identifier id)
           
 Set<org.wsmo.common.Entity> findEntity(org.wsmo.common.Identifier id)
           
 org.omwg.ontology.Instance findInstance(org.wsmo.common.Identifier id)
           
 org.omwg.ontology.Relation findRelation(org.wsmo.common.Identifier id)
           
 org.omwg.ontology.RelationInstance findRelationInstance(org.wsmo.common.Identifier id)
           
 Set<org.omwg.ontology.Axiom> listAxioms()
           
 Set<org.omwg.ontology.Concept> listConcepts()
           
 Set<org.omwg.ontology.Instance> listInstances()
           
 Set<org.omwg.ontology.RelationInstance> listRelationInstances()
           
 Set<org.omwg.ontology.Relation> listRelations()
           
 void removeAxiom(org.omwg.ontology.Axiom axiom)
           
 void removeAxiom(org.wsmo.common.Identifier axiomID)
           
 void removeConcept(org.omwg.ontology.Concept concept)
           
 void removeConcept(org.wsmo.common.Identifier conceptID)
           
 void removeInstance(org.wsmo.common.Identifier instanceID)
           
 void removeInstance(org.omwg.ontology.Instance instance)
           
 void removeRelation(org.wsmo.common.Identifier relationID)
           
 void removeRelation(org.omwg.ontology.Relation relation)
           
 void removeRelationInstance(org.wsmo.common.Identifier instanceID)
           
 void removeRelationInstance(org.omwg.ontology.RelationInstance instance)
           
 
Methods inherited from class com.ontotext.wsmo4j.common.TopEntityImpl
addMediator, addNamespace, addOntology, findNamespace, getDefaultNamespace, getWsmlVariant, listMediators, listNamespaces, listOntologies, removeMediator, removeNamespace, removeNamespace, removeOntology, removeOntology, setDefaultNamespace, setDefaultNamespace, setWsmlVariant
 
Methods inherited from class com.ontotext.wsmo4j.common.EntityImpl
addNFPValue, addNFPValue, getIdentifier, hashCode, listNFPValues, listNFPValues, removeNFP, removeNFPValue, removeNFPValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
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
 

Constructor Detail

OntologyImpl

public OntologyImpl(org.wsmo.common.IRI thisID)
Method Detail

listConcepts

public Set<org.omwg.ontology.Concept> listConcepts()
                                            throws org.wsmo.common.exception.SynchronisationException
Specified by:
listConcepts in interface org.omwg.ontology.Ontology
Throws:
org.wsmo.common.exception.SynchronisationException

addConcept

public void addConcept(org.omwg.ontology.Concept concept)
                throws org.wsmo.common.exception.SynchronisationException,
                       org.wsmo.common.exception.InvalidModelException
Specified by:
addConcept in interface org.omwg.ontology.Ontology
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

removeConcept

public void removeConcept(org.omwg.ontology.Concept concept)
                   throws org.wsmo.common.exception.SynchronisationException,
                          org.wsmo.common.exception.InvalidModelException
Specified by:
removeConcept in interface org.omwg.ontology.Ontology
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

removeConcept

public void removeConcept(org.wsmo.common.Identifier conceptID)
                   throws org.wsmo.common.exception.SynchronisationException,
                          org.wsmo.common.exception.InvalidModelException
Specified by:
removeConcept in interface org.omwg.ontology.Ontology
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

listRelations

public Set<org.omwg.ontology.Relation> listRelations()
                                              throws org.wsmo.common.exception.SynchronisationException
Specified by:
listRelations in interface org.omwg.ontology.Ontology
Throws:
org.wsmo.common.exception.SynchronisationException

addRelation

public void addRelation(org.omwg.ontology.Relation relation)
                 throws org.wsmo.common.exception.SynchronisationException,
                        org.wsmo.common.exception.InvalidModelException
Specified by:
addRelation in interface org.omwg.ontology.Ontology
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

removeRelation

public void removeRelation(org.omwg.ontology.Relation relation)
                    throws org.wsmo.common.exception.SynchronisationException,
                           org.wsmo.common.exception.InvalidModelException
Specified by:
removeRelation in interface org.omwg.ontology.Ontology
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

removeRelation

public void removeRelation(org.wsmo.common.Identifier relationID)
                    throws org.wsmo.common.exception.SynchronisationException,
                           org.wsmo.common.exception.InvalidModelException
Specified by:
removeRelation in interface org.omwg.ontology.Ontology
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

listInstances

public Set<org.omwg.ontology.Instance> listInstances()
                                              throws org.wsmo.common.exception.SynchronisationException
Specified by:
listInstances in interface org.omwg.ontology.Ontology
Throws:
org.wsmo.common.exception.SynchronisationException

addInstance

public void addInstance(org.omwg.ontology.Instance instance)
                 throws org.wsmo.common.exception.SynchronisationException,
                        org.wsmo.common.exception.InvalidModelException
Specified by:
addInstance in interface org.omwg.ontology.Ontology
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

removeInstance

public void removeInstance(org.omwg.ontology.Instance instance)
                    throws org.wsmo.common.exception.SynchronisationException,
                           org.wsmo.common.exception.InvalidModelException
Specified by:
removeInstance in interface org.omwg.ontology.Ontology
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

removeInstance

public void removeInstance(org.wsmo.common.Identifier instanceID)
                    throws org.wsmo.common.exception.SynchronisationException,
                           org.wsmo.common.exception.InvalidModelException
Specified by:
removeInstance in interface org.omwg.ontology.Ontology
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

listAxioms

public Set<org.omwg.ontology.Axiom> listAxioms()
                                        throws org.wsmo.common.exception.SynchronisationException
Specified by:
listAxioms in interface org.omwg.ontology.Ontology
Throws:
org.wsmo.common.exception.SynchronisationException

addAxiom

public void addAxiom(org.omwg.ontology.Axiom axiom)
              throws org.wsmo.common.exception.SynchronisationException,
                     org.wsmo.common.exception.InvalidModelException
Specified by:
addAxiom in interface org.omwg.ontology.Ontology
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

removeAxiom

public void removeAxiom(org.omwg.ontology.Axiom axiom)
                 throws org.wsmo.common.exception.SynchronisationException,
                        org.wsmo.common.exception.InvalidModelException
Specified by:
removeAxiom in interface org.omwg.ontology.Ontology
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

removeAxiom

public void removeAxiom(org.wsmo.common.Identifier axiomID)
                 throws org.wsmo.common.exception.SynchronisationException,
                        org.wsmo.common.exception.InvalidModelException
Specified by:
removeAxiom in interface org.omwg.ontology.Ontology
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

listRelationInstances

public Set<org.omwg.ontology.RelationInstance> listRelationInstances()
                                                              throws org.wsmo.common.exception.SynchronisationException
Specified by:
listRelationInstances in interface org.omwg.ontology.Ontology
Throws:
org.wsmo.common.exception.SynchronisationException

addRelationInstance

public void addRelationInstance(org.omwg.ontology.RelationInstance instance)
                         throws org.wsmo.common.exception.SynchronisationException,
                                org.wsmo.common.exception.InvalidModelException
Specified by:
addRelationInstance in interface org.omwg.ontology.Ontology
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

removeRelationInstance

public void removeRelationInstance(org.omwg.ontology.RelationInstance instance)
                            throws org.wsmo.common.exception.SynchronisationException,
                                   org.wsmo.common.exception.InvalidModelException
Specified by:
removeRelationInstance in interface org.omwg.ontology.Ontology
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

removeRelationInstance

public void removeRelationInstance(org.wsmo.common.Identifier instanceID)
                            throws org.wsmo.common.exception.SynchronisationException,
                                   org.wsmo.common.exception.InvalidModelException
Specified by:
removeRelationInstance in interface org.omwg.ontology.Ontology
Throws:
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException

findConcept

public org.omwg.ontology.Concept findConcept(org.wsmo.common.Identifier id)
                                      throws org.wsmo.common.exception.SynchronisationException
Specified by:
findConcept in interface org.omwg.ontology.Ontology
Throws:
org.wsmo.common.exception.SynchronisationException

findRelation

public org.omwg.ontology.Relation findRelation(org.wsmo.common.Identifier id)
                                        throws org.wsmo.common.exception.SynchronisationException
Specified by:
findRelation in interface org.omwg.ontology.Ontology
Throws:
org.wsmo.common.exception.SynchronisationException

findInstance

public org.omwg.ontology.Instance findInstance(org.wsmo.common.Identifier id)
                                        throws org.wsmo.common.exception.SynchronisationException
Specified by:
findInstance in interface org.omwg.ontology.Ontology
Throws:
org.wsmo.common.exception.SynchronisationException

findAxiom

public org.omwg.ontology.Axiom findAxiom(org.wsmo.common.Identifier id)
                                  throws org.wsmo.common.exception.SynchronisationException
Specified by:
findAxiom in interface org.omwg.ontology.Ontology
Throws:
org.wsmo.common.exception.SynchronisationException

findRelationInstance

public org.omwg.ontology.RelationInstance findRelationInstance(org.wsmo.common.Identifier id)
                                                        throws org.wsmo.common.exception.SynchronisationException
Specified by:
findRelationInstance in interface org.omwg.ontology.Ontology
Throws:
org.wsmo.common.exception.SynchronisationException

findEntity

public Set<org.wsmo.common.Entity> findEntity(org.wsmo.common.Identifier id)
                                       throws org.wsmo.common.exception.SynchronisationException
Specified by:
findEntity in interface org.omwg.ontology.Ontology
Throws:
org.wsmo.common.exception.SynchronisationException

equals

public boolean equals(Object object)
Overrides:
equals in class TopEntityImpl


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