WebODE Ontology Management API Methods

Back to the WebODE Performance Benchmark Suite

Method Description
void createOntology (OntologyDescriptor od)
Inserts an ontology
void addReference (String name, ReferenceDescriptor rd) Inserts a term reference into an ontology
void addReferenceToOntology (String name, ReferenceDescriptor rd) Inserts an ontology reference into an ontology
void relateReferenceToTerm (String ontology, String term, String reference) Relates a reference with a term
void insertTerm (String ontology, String term, String desc, int type) Inserts a term into an ontology
void insertTermRelation (TermRelation tr)
Inserts a term relation into an ontology
void insertClassAttribute (String ontology, ClassAttributeDescriptor attribute) Inserts a class attribute into a term
void addValueToClassAttribute (String ontology, String attribute, String parent, String value) Inserts a value into a class attribute
void insertInstanceAttribute (String ontology, InstanceAttributeDescriptor attribute)
Inserts an instance attribute into a term
void addValueToInstanceAttribute (String ontology, String attribute, String parent, String value) Inserts a value into an instance attribute
void addSynonymToTerm (String ontology, SynonymAbbreviation sa)
Inserts a synonym of a term
void importTerm (String ontology, String namespace, String namespace_identifier, String name, String URI) Inports a term into an ontology
void insertConstant (String ontology, ConstantDescriptor cd)
Inserts a constant into an ontology
void insertReasoningElement (FormulaDescriptor fd)
Inserts a formula into an ontology
void relateFormulaToTerm (String ontology, String term, String formula) Relates a formula to a term
void insertInstance (String ontology, Instance instance)
Inserts a instance into an ontology
void insertRelationInstance (String ontology, TermRelationInstance instance)
Inserts a relation instance into an ontology
void addValueToInstance (String ontology, String instanceSet, String instance, String term, String attribute, String value) Inserts a value into an instance
void addGroup (String ontology, Group group)
Inserts a group into an ontology
void updateOntology (String name, OntologyDescriptor od)
Updates an ontology
void updateReference (String name, ReferenceDescriptor rd) Updates a term reference
void updateTerm (String originalName, Term td)
Updates a term
void updateClassAttribute (String ontology, String attribute, String parent, ClassAttributeDescriptor cad) Updates a class attribute
void updateInstanceAttribute (String ontology, String attribute, String parent, InstanceAttributeDescriptor iad) Updates an instance attribute
void updateSynonym (String ontology, String originalName, SynonymAbbreviation sa) Updates a synonym
void updateConstant (String ontology, String originalName, ConstantDescriptor cd) Updates a constant
void updateReasoningElement (String originalName, FormulaDescriptor fd) Updates a reasoning element
void updateGroup (String ontology, String name, Group group) Updates a group
void removeOntology (String name) Removes an ontology
void unrelateReferenceToTerm (String ontology, String term, String reference) Unrelates a reference from a term
void removeReference (String ontology, String term) Removes a term reference
void removeOntologyReference (String ontologyName, String refName) Removes an ontology reference
void removeTermRelation (TermRelation tr) Removes a term relation
void removeValueFromClassAttribute (String ontology, String attribute, String parent, String value) Removes a value from a class attribute
void removeValueFromInstanceAttribute (String ontology, String attribute, String parent, String value)
Removes a value from an instance attribute
void deleteSynonym (String ontology, String name, String relatedTerm, String container)
Removes a synonym
void unrelateFormulaFromTerm (String ontology, String term, String formula)
Unrelates a formula from a term
void removeValueFromInstance (String ontology, String instanceSet, String instance, String term, String attribute, String value) Removes a value from an instance
void removeTerm (String ontology, String term) Removes a term
OntologyDescriptor[] getAvailableOntologies () Returns available ontologies
ReferenceDescriptor[] getOntologyReferences (String name) Returns ontology references of an ontology
ReferenceDescriptor getReference (String name, String ontologyName) Returns a reference
ReferenceDescriptor[] getReferences (String name) Returns term references of an ontology
ReferenceDescriptor[] getTermReferences (String ontology, String term) Returns term references of a concept
Term getTerm (String ontology, String name) Returns a term
Term[] getTerms (String ontology, int[] types) Returns terms of an ontology
TermRelation[] getTermRelations (String ontology, boolean subclass) Returns term relations of an ontology
ClassAttributeDescriptor getClassAttribute (String ontology, String name, String attribute) Returns a class attribute
ClassAttributeDescriptor[] getClassAttributes (String ontology, String name) Returns class attributes of a term
InstanceAttributeDescriptor getInstanceAttribute (String ontology, String name, String attribute) Returns an instance attribute
InstanceAttributeDescriptor[] getInstanceAttributes (String ontology, String name)

Returns instance attributes of a term

SynonymAbbreviation getSynonym (String ontology, String term, String parentTerm, String synonym) Returns a synonym
SynonymAbbreviation[] getSynonyms (String ontology, String term, String parentTerm) Returns synonyms of a term
ImportedTerm[] getImportedTerms (String ontology) Returns imported terms of an ontology
ConstantDescriptor getConstant (String ontology, String constant) Returns a constant
FormulaDescriptor getReasoningElement (String ontology, String name) Returns a formula
FormulaDescriptor[] getReasoningElements (String ontology) Returns formulas of an ontology
Instance[] getInstances (String ontology, String instanceSet, String name) Returns instances of a concept
Instance[] getInstInstances (String ontology, String instanceSet) Returns instances of an instance set
TermRelationInstance[] getRelationInstances (String ontology, String instanceSet) Returns relation instances of an instance set
HashMap getInstanceValues (String ontology, String instanceSet, String instance) Returns values of an instance
HashMap getLogicalInstanceValues (String ontology, String instanceSet, String instance) Returns logical values of an instance
Group getGroup (String ontology, String name) Returns a group
Group[] getGroups (String ontology) Returns groups of an ontology
String[] getConceptsInWhichAttributeIsDefined (String ontology, String attr) Returns the concepts in which an attribute is defined
Term[] getRootConcepts (String ontology) Returns the root concepts of an ontology
Term[] getParentConcepts(String ontology, String concept) Returns the parent concepts of an ontology
Term[] getChildConcepts (String ontology, String concept) Returns tha child concepts of an ontology
TermRelation[] getAdHocTermRelationsAttachedToConcept(String ontology, String concept) Returns the ad-hoc term relations of a concept
void openOntology (String ontology) Opens an ontology
boolean isSubclassOf (String ontology, Term concept1, Term concept2) Returns if a concept is subclass of other concept
TermRelation[] getInheritedTermRelations (String ontology, String concept) Returns the inherited term relations of a concept

Back to the WebODE Performance Benchmark Suite