|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Concept
This interface represents a WSMO concept.
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(IRI id)
Create an Attribute for a Concept |
Attribute |
findAttribute(Identifier id)
Searches for an attribute with the specified ID |
java.util.Set |
listAttributes()
Returns a list of this concept's attributes. |
java.util.Set |
listInstances()
Returns a list of this concept's instances |
java.util.Set |
listSubConcepts()
Lists the sub-concepts of this concept |
java.util.Set |
listSuperConcepts()
Lists the super-concepts of this concept |
void |
removeAttribute(Attribute attr)
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 |
---|
void addSuperConcept(Concept superConcept) throws SynchronisationException, InvalidModelException
superConcept
- The new super-concept to be added.
SynchronisationException
InvalidModelException
removeSuperConcept(Concept superConcept)
void removeSuperConcept(Concept superConcept) throws SynchronisationException, InvalidModelException
superConcept
- The super-concept to be removed
SynchronisationException
InvalidModelException
java.util.Set listSuperConcepts() throws SynchronisationException
SynchronisationException
void addSubConcept(Concept subConcept) throws SynchronisationException, InvalidModelException
subConcept
- The new sub-concept to be added.
SynchronisationException
InvalidModelException
removeSubConcept(Concept subConcept)
void removeSubConcept(Concept subConcept) throws SynchronisationException, InvalidModelException
subConcept
- The sub-concept to be removed
SynchronisationException
InvalidModelException
java.util.Set listSubConcepts() throws SynchronisationException
SynchronisationException
Attribute createAttribute(IRI id)
id
- The ID of the new Attribute
void removeAttribute(Attribute attr) throws SynchronisationException, InvalidModelException
attr
- The attribute to be removed from this concept's list of attributes.
SynchronisationException
InvalidModelException
java.util.Set listAttributes() throws SynchronisationException
SynchronisationException
Attribute
Attribute findAttribute(Identifier id)
id
- identifier of the attribute
SynchronisationException
void addInstance(Instance inst) throws SynchronisationException, InvalidModelException
inst
- The new instance to be added.
SynchronisationException
InvalidModelException
removeInstance(Instance inst)
,
Instance.addConcept(Concept memberOf)
void removeInstance(Instance inst) throws SynchronisationException, InvalidModelException
inst
- The instance to be removed
SynchronisationException
InvalidModelException
java.util.Set listInstances() throws SynchronisationException
SynchronisationException
Instance
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |