org.omwg.ontology
Interface Concept

All Superinterfaces:
Entity, OntologyElement, Type

public interface Concept
extends OntologyElement, Type

This interface represents a WSMO concept.

Version:
$Revision: 1946 $ $Date: 2007-04-02 15:13:28 +0300 (Mon, 02 Apr 2007) $
Author:
not attributable
See Also:
Instance

Method Summary
 void addInstance(Instance inst)
          Adds a new instance to the set of instances of this concept The instance will also add this concept to the list of its concepts
 void addSubConcept(Concept subConcept)
          Adds a new concept to the set of sub-concepts of this concept The sub concept will also add this concept to the list of its super-concepts.
 void addSuperConcept(Concept superConcept)
          Adds a new concept to the set of super-concepts of this concept The super concept will also add this concept to the list of its sub-concepts
 Attribute createAttribute(Identifier id)
          Create an Attribute for a Concept
 Set<Attribute> findAttributes(Identifier id)
          Searches for all attributes with the specified ID.
 Set<Attribute> listAttributes()
          Returns a list of this concept's attributes.
 Set<Instance> listInstances()
          Returns a list of this concept's instances
 Set<Concept> listSubConcepts()
          Lists the sub-concepts of this concept
 Set<Concept> listSuperConcepts()
          Lists the super-concepts of this concept.
 void removeAttribute(Attribute attr)
          Removes an attribute from this concept's list of attributes.
 void removeAttribute(Identifier identifier)
          Removes an attribute from this concept's list of attributes.
 void removeInstance(Instance inst)
          Removes an instance from the set of instances of this concept The instance will also remove this concept from the list of its concepts
 void removeSubConcept(Concept subConcept)
          Removes a concept from the set of sub-concepts of this concept The sub concept will also remove this concept from the list of its super-concepts.
 void removeSuperConcept(Concept superConcept)
          Removes a concept from the set of super-concepts of this concept The super concept will also remove this concept from the list of its sub-concepts.
 
Methods inherited from interface org.omwg.ontology.OntologyElement
getOntology, setOntology
 
Methods inherited from interface org.wsmo.common.Entity
addNFPValue, addNFPValue, getIdentifier, listNFPValues, listNFPValues, removeNFP, removeNFPValue, removeNFPValue
 

Method Detail

addSuperConcept

void addSuperConcept(Concept superConcept)
                     throws SynchronisationException,
                            InvalidModelException
Adds a new concept to the set of super-concepts of this concept The super concept will also add this concept to the list of its sub-concepts

Parameters:
superConcept - The new super-concept to be added.
Throws:
SynchronisationException
InvalidModelException
See Also:
removeSuperConcept(Concept superConcept)

removeSuperConcept

void removeSuperConcept(Concept superConcept)
                        throws SynchronisationException,
                               InvalidModelException
Removes a concept from the set of super-concepts of this concept The super concept will also remove this concept from the list of its sub-concepts.

Parameters:
superConcept - The super-concept to be removed
Throws:
SynchronisationException
InvalidModelException

listSuperConcepts

Set<Concept> listSuperConcepts()
                               throws SynchronisationException
Lists the super-concepts of this concept.

Returns:
The set of super-concepts defined by this ontology.
Throws:
SynchronisationException

addSubConcept

void addSubConcept(Concept subConcept)
                   throws SynchronisationException,
                          InvalidModelException
Adds a new concept to the set of sub-concepts of this concept The sub concept will also add this concept to the list of its super-concepts.

Parameters:
subConcept - The new sub-concept to be added.
Throws:
SynchronisationException
InvalidModelException
See Also:
removeSubConcept(Concept subConcept)

removeSubConcept

void removeSubConcept(Concept subConcept)
                      throws SynchronisationException,
                             InvalidModelException
Removes a concept from the set of sub-concepts of this concept The sub concept will also remove this concept from the list of its super-concepts.

Parameters:
subConcept - The sub-concept to be removed
Throws:
SynchronisationException
InvalidModelException

listSubConcepts

Set<Concept> listSubConcepts()
                             throws SynchronisationException
Lists the sub-concepts of this concept

Returns:
The set of sub-concepts defined by this ontology.
Throws:
SynchronisationException

createAttribute

Attribute createAttribute(Identifier id)
                          throws InvalidModelException
Create an Attribute for a Concept

Parameters:
id - The ID of the new Attribute
Returns:
a new Attribute for the Concept
Throws:
InvalidModelException

removeAttribute

void removeAttribute(Identifier identifier)
Removes an attribute from this concept's list of attributes.

Parameters:
identifier - The identifier of the attribute to be removed from the concept's list of attributes.

removeAttribute

void removeAttribute(Attribute attr)
                     throws SynchronisationException,
                            InvalidModelException
Removes an attribute from this concept's list of attributes.

Parameters:
attr - The attribute to be removed from this concept's list of attributes.
Throws:
SynchronisationException
InvalidModelException

listAttributes

Set<Attribute> listAttributes()
                              throws SynchronisationException
Returns a list of this concept's attributes.

Returns:
The list of this concept's attributes.
Throws:
SynchronisationException
See Also:
Attribute

findAttributes

Set<Attribute> findAttributes(Identifier id)
Searches for all attributes with the specified ID.

Parameters:
id - identifier of the attribute
Returns:
the attribute or null if not found
Throws:
SynchronisationException

addInstance

void addInstance(Instance inst)
                 throws SynchronisationException,
                        InvalidModelException
Adds a new instance to the set of instances of this concept The instance will also add this concept to the list of its concepts

Parameters:
inst - The new instance to be added.
Throws:
SynchronisationException
InvalidModelException
See Also:
removeInstance(Instance inst), Instance.addConcept(Concept memberOf)

removeInstance

void removeInstance(Instance inst)
                    throws SynchronisationException,
                           InvalidModelException
Removes an instance from the set of instances of this concept The instance will also remove this concept from the list of its concepts

Parameters:
inst - The instance to be removed
Throws:
SynchronisationException
InvalidModelException

listInstances

Set<Instance> listInstances()
                            throws SynchronisationException
Returns a list of this concept's instances

Returns:
The list of this concept's instances
Throws:
SynchronisationException
See Also:
Instance


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