|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OntologyEditor
An interface defining the methods of an Ontology Editor.
Method Summary | |
---|---|
void |
addSubClass(ClassNode root,
String className,
String classComment)
Adds Sub Class given a ClassNode and the resulting info from the Add Sub Class dialog. |
void |
addSubClass(int x,
int y)
Invokes an add sub class dialog in position x,y |
int |
AskWannaSave(Taxonomy o,
int x,
int y)
Wanna Save Dialog invocation. |
void |
closeOntologies(Vector list)
Closes list of ontologies |
void |
closeOntology(Taxonomy o,
int x,
int y)
Closes an ontology. |
void |
createOntology(String name,
String sourceURI,
String theURL,
String comment)
Creates a new ontology |
void |
deleteOntology(Taxonomy o,
int x,
int y)
Deletes an ontology. |
void |
editClassURI(TClass c,
int x,
int y)
Edit the URI of an ontology class |
void |
editURI(Taxonomy o,
int x,
int y)
Edits the URI of an ontology. |
void |
fileClose(int x,
int y,
Vector ontologies)
Invokes a mutiple selection close dialog with a list of ontologies to be closed. |
void |
fileExit()
Acts on choosing Exit from the File menu. |
void |
fileNew(int x,
int y)
Inovkes a new ontology dialog. |
void |
fileOpen(int x,
int y)
Acts on choosing Open from the File menu. |
void |
fileSave(int x,
int y,
Vector ontologies)
Invoke a mutiple selection save dialog with a list of ontologies to be saved. |
Set |
getAllURIs()
Gets all URIs that are present at the moment as ontology URIs. |
Set |
getAllURIs(Taxonomy o)
Retrieve a set of all the class URIs in an ontology |
Vector |
getModifiedOntologies()
Gets all modified ontologies. |
Taxonomy |
getOntology()
Gets the loaded ontology |
Vector |
getOntologyList()
Gets the list of ontologies currently in the editor |
void |
ontologySelected(Taxonomy o)
Selects an ontology. |
void |
removeClass(ClassNode node)
Removes the node/class |
void |
renameClass(TClass c,
ClassNode n,
int x,
int y)
Renames a class |
void |
renameOntology(Taxonomy o,
int x,
int y)
Renames an ontology |
void |
saveAsOntology(Taxonomy o,
int x,
int y)
Invokes a Save As dialog for this ontology and saves it to the specified location. |
void |
saveOntologies(Vector list)
Saves a list of ontologies. |
void |
saveOntology(Taxonomy o)
Saves this ontology |
void |
setOntology(Taxonomy o)
Sets the ontology to be loaded in the editor |
void |
setOntologyList(Vector list)
Sets the list of ontologies to be loaded in the editor |
void |
visualize()
Visualizes the editor |
Methods inherited from interface gate.VisualResource |
---|
setHandle, setTarget |
Methods inherited from interface gate.Resource |
---|
cleanup, getParameterValue, init, setParameterValue, setParameterValues |
Methods inherited from interface gate.util.FeatureBearer |
---|
getFeatures, setFeatures |
Methods inherited from interface gate.util.NameBearer |
---|
getName, setName |
Method Detail |
---|
void createOntology(String name, String sourceURI, String theURL, String comment) throws ResourceInstantiationException
name
- the name of the ontologysourceURI
- the URI of the ontologytheURL
- the URL of the ontologycomment
- ontology comment
ResourceInstantiationException
void setOntology(Taxonomy o)
o
- the ontology to be loadedTaxonomy getOntology()
void setOntologyList(Vector list)
list
- the list of ontologiesVector getOntologyList()
void visualize()
void addSubClass(int x, int y)
x
- the x coordinate of the dialogy
- the y coordinate of the dialogvoid addSubClass(ClassNode root, String className, String classComment)
root
- the node which is root to the sub class being addedclassName
- the name from the dialogclassComment
- the comment from the dialogvoid removeClass(ClassNode node)
node
- the node to be removedvoid renameClass(TClass c, ClassNode n, int x, int y)
c
- the class to be renamedn
- the class node associated with the classx
- coordsy
- coordsvoid ontologySelected(Taxonomy o)
o
- the selected ontologyvoid saveOntologies(Vector list)
list
- a list of ontologies to be savedvoid closeOntologies(Vector list) throws ResourceInstantiationException
list
- a list of ontologies to be saved
ResourceInstantiationException
Vector getModifiedOntologies()
void saveOntology(Taxonomy o) throws ResourceInstantiationException
o
- the ontology to be saved
{@link
- ResourceInstantiationException}
ResourceInstantiationException
void saveAsOntology(Taxonomy o, int x, int y) throws ResourceInstantiationException
o
- the ontology to be savedx
- the x coordinate of the save as dialogy
- the y coordinate of the save as dialog
ResourceInstantiationException
void renameOntology(Taxonomy o, int x, int y)
o
- the ontology to be renamedx
- the x coordinate of the rename dialogy
- the y coordinate of the rename dialogvoid deleteOntology(Taxonomy o, int x, int y) throws ResourceInstantiationException
o
- the ontology to be deletedx
- x coordinate of the option pane to be invokedy
- y coordinate of the option pane to be invoked
ResourceInstantiationException
void editURI(Taxonomy o, int x, int y)
o
- the ontology to be editedx
- coords of the dialogy
- coords of the dialogvoid editClassURI(TClass c, int x, int y)
c
- class to be editedx
- coords of the dialogy
- coords of the dialogSet getAllURIs()
Set getAllURIs(Taxonomy o)
o
- the ontology
void closeOntology(Taxonomy o, int x, int y) throws ResourceInstantiationException
o
- the ontology to be closedx
- x coordinate of the option pane to be invokedy
- y coordinate of the option pane to be invoked
ResourceInstantiationException
int AskWannaSave(Taxonomy o, int x, int y)
o
- the ontology to be saved or notx
- x coordinate of the option pane to be invokedy
- y coordinate of the option pane to be invoked
void fileExit()
void fileOpen(int x, int y) throws ResourceInstantiationException
x
- the x coordinate of the invocationy
- the y coordinate of the invocation
ResourceInstantiationException
- if something goes wrong with the loading.void fileSave(int x, int y, Vector ontologies)
x
- coords of the dialogy
- coords of the dialogontologies
- the list of ontologies to be optionally savedvoid fileClose(int x, int y, Vector ontologies)
x
- coords of the dialogy
- coords of the dialogontologies
- the list of ontologies to be optionally closedvoid fileNew(int x, int y)
x
- coords of the dialogy
- coords of the dialog
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |