kaos.tools.ontologyManagement
Class OntologyManagementTool

java.lang.Object
  extended by kaos.tools.ontologyManagement.OntologyManagementTool

public class OntologyManagementTool
extends java.lang.Object

The Ontology Management Tool allows users to build their own ontologies proxy, save snapshots and edit ontologies. To run the tool type "ant ontology-proxy" in the source directory. To compile it, type "ant build-tools".


Nested Class Summary
 class OntologyManagementTool.AuthImpl
          This class allows to authenticate an user if a 401 error is gotten.
 
Field Summary
protected  javax.swing.JButton _clearButton
           
protected static java.lang.String _configPath
           
protected  javax.swing.DefaultComboBoxModel _createComboModel
           
protected  javax.swing.JPanel _createPanel
           
protected  javax.swing.JTextArea _createStatusArea
           
protected  java.util.Hashtable _defaultOntHashtable
           
protected  java.lang.String _defOntName
           
protected  javax.swing.JTextField _fileTextField
           
protected  javax.swing.JButton _loadButton
           
protected  OntologyRepository _myOntologyRepository
           
protected  kaos.tools.ontologyManagement.OntologyManagementTool.OntologyDialog _ontDialog
           
protected static java.util.Hashtable _ontologyFilesHashtable
           
protected  javax.swing.JList _ontProvList
           
protected  javax.swing.DefaultListModel _ontProvListModel
           
protected  javax.swing.JPanel _ontProvPanel
           
protected  javax.swing.JTextField _portTextField
           
protected  javax.swing.JButton _saveOntologySnapshotButton
           
protected  java.net.ServerSocket _servSock
           
protected  java.util.Vector _shortNameVector
           
protected  javax.swing.JButton _startButton
           
protected  java.lang.StringBuffer _statusCreateStr
           
protected  java.lang.StringBuffer _statusProvStr
           
protected  javax.swing.JButton _stopButton
           
protected  javax.swing.JTabbedPane _tabPane
           
protected  boolean _tabProviderActive
           
protected  SwingWorker _worker
           
 
Constructor Summary
OntologyManagementTool()
           
OntologyManagementTool(java.lang.String[] args)
           
 
Method Summary
static void autoStartProxy(int port)
          Start the proxy opening a socket server and wait for incomming requests
protected  void gatherOntologies(java.lang.String urlString)
          Load the ontologies
protected  void getDefaultNamespaces()
          Get the default namespaces from the DefaultOntologies class.
protected  void init()
          Start the dialog.
protected  void init(java.lang.String[] args)
          Start the dialog.
protected  void loadOntologySnapshotFromFile()
          Load the files that have a "ont" extension
protected  void loadOntologySnapshotFromFile(java.lang.String filename)
           
static void main(java.lang.String[] args)
           
protected  java.lang.String parseURL(java.lang.String str)
          Parse the url and get a short string.
protected  void saveOntologySnapshot()
          Save the hashtable to a file
protected  void setCursorToWait(boolean wait)
          Either set the cursor to the "wait for it" cursor, or set it back to the normal cursor.
 void setLocation(javax.swing.JFrame f)
           
 void startProxy(int port)
          Start the proxy opening a socket server and wait for incomming requests
 void updateOntologyHashtable(java.lang.String key, java.lang.StringBuffer buffer)
          Return the file ontology hashtable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_ontologyFilesHashtable

protected static java.util.Hashtable _ontologyFilesHashtable

_defaultOntHashtable

protected java.util.Hashtable _defaultOntHashtable

_servSock

protected java.net.ServerSocket _servSock

_worker

protected SwingWorker _worker

_shortNameVector

protected java.util.Vector _shortNameVector

_myOntologyRepository

protected OntologyRepository _myOntologyRepository

_configPath

protected static java.lang.String _configPath

_tabProviderActive

protected boolean _tabProviderActive

_createComboModel

protected javax.swing.DefaultComboBoxModel _createComboModel

_ontProvListModel

protected javax.swing.DefaultListModel _ontProvListModel

_clearButton

protected javax.swing.JButton _clearButton

_loadButton

protected javax.swing.JButton _loadButton

_saveOntologySnapshotButton

protected javax.swing.JButton _saveOntologySnapshotButton

_startButton

protected javax.swing.JButton _startButton

_stopButton

protected javax.swing.JButton _stopButton

_ontProvList

protected javax.swing.JList _ontProvList

_createPanel

protected javax.swing.JPanel _createPanel

_ontProvPanel

protected javax.swing.JPanel _ontProvPanel

_tabPane

protected javax.swing.JTabbedPane _tabPane

_ontDialog

protected kaos.tools.ontologyManagement.OntologyManagementTool.OntologyDialog _ontDialog

_defOntName

protected java.lang.String _defOntName

_statusCreateStr

protected java.lang.StringBuffer _statusCreateStr

_statusProvStr

protected java.lang.StringBuffer _statusProvStr

_createStatusArea

protected javax.swing.JTextArea _createStatusArea

_fileTextField

protected javax.swing.JTextField _fileTextField

_portTextField

protected javax.swing.JTextField _portTextField
Constructor Detail

OntologyManagementTool

public OntologyManagementTool()

OntologyManagementTool

public OntologyManagementTool(java.lang.String[] args)
Method Detail

main

public static void main(java.lang.String[] args)

init

protected void init()
Start the dialog.


init

protected void init(java.lang.String[] args)
Start the dialog.


getDefaultNamespaces

protected void getDefaultNamespaces()
Get the default namespaces from the DefaultOntologies class.


parseURL

protected java.lang.String parseURL(java.lang.String str)
Parse the url and get a short string.


gatherOntologies

protected void gatherOntologies(java.lang.String urlString)
Load the ontologies


saveOntologySnapshot

protected void saveOntologySnapshot()
Save the hashtable to a file


updateOntologyHashtable

public void updateOntologyHashtable(java.lang.String key,
                                    java.lang.StringBuffer buffer)
Return the file ontology hashtable


loadOntologySnapshotFromFile

protected void loadOntologySnapshotFromFile()
Load the files that have a "ont" extension


loadOntologySnapshotFromFile

protected void loadOntologySnapshotFromFile(java.lang.String filename)

setLocation

public void setLocation(javax.swing.JFrame f)

startProxy

public void startProxy(int port)
Start the proxy opening a socket server and wait for incomming requests


autoStartProxy

public static void autoStartProxy(int port)
Start the proxy opening a socket server and wait for incomming requests


setCursorToWait

protected void setCursorToWait(boolean wait)
Either set the cursor to the "wait for it" cursor, or set it back to the normal cursor.