Description    (8DO)

The Protege Script Console is a tab plug-in for Protege that provides a scripting environment for manipulating an ontology. It is compatible with Protege-Frames and Protege-OWL. The Script Console can be used to:    (8DP)

Download    (8DT)

The Protege Script Console is bundled with the "full" installation of Protege.    (83W)

The source code for the Script Console is available from the Protege Subversion repository:    (8DU)

http://smi-protege.stanford.edu/repos/protege/protege-script-console/trunk/    (8DV)

There is an Ant build file in the trunk directory and all third-party libraries required to compile the source code are located in trunk/lib. The Javadoc for the latest version is available from this Wiki site:    (8DY)

http://protege.cim3.net/file/work/files/ProtegeScriptConsole/javadoc-0.26/    (8DZ)

Installation    (8DW)

To enable the Script Console from within Protege, open a project (or create a new one) and click on Project -> Configure... to bring up the Configure dialog. On the Tab Widgets panel, check the box next to ProtegeScriptTab:    (8DX)

http://protege.cim3.net/file/work/images/ProtegeScriptConsole/script01configurationMenu.png    (8E0)

Screenshot    (83X)

To follow is a screenshot of the Protege Script Console from within Protege:    (8FJ)

http://protege.cim3.net/file/pub/images/ProtegeScriptConsole/script06exampleRuby.png    (3VI)

Documentation    (8FK)

The basic principle behind the Protege Script Console is that your scripting language gives you access to the Java objects of your ontology from within Protege. Therefore, you only need a basic level of expertise with your scripting language (but probably a higher level of expertise in Java). For interacting with the various objects in your ontology, a useful resource will be the Javadoc for the Protege API. If you are interacting with an OWL ontology, you will also want to reference the Javadoc for the Protege-OWL API and the Protege-OWL API Programmer's Guide.    (8FL)

Supported Languages    (8FM)

The Script Console relies on Apache's Bean Scripting Framework (BSF) and as such, any BSF-compliant scripting language can easily be integrated. So far, the supported languages are Jython (a Java implementation of Python), Perl, Beanshell, Groovy (partially), and JRuby (an experimental Java implementation of Ruby).    (8FN)

Frequently Asked Questions    (3V9)

The following separate FAQ pages for the Protege Script Console are available from this Wiki site:    (8FO)

Tutorials    (3VB)

A tutorial will soon be made available. Until then, please look at the JOT Tutorial, as the content will be fairly similar.    (8FS)

Script Repository    (3VD)

A script repository is available for providing examples and sharing useful information. Submission of example scripts are most welcome!    (3VE)

Author    (8FH)

Olivier Dameron    (8FI)

Olivier's "to do" and "wish list" page.    (8FT)

License    (8E2)

The Protege Script Console is available under the Mozilla Public License and is provided "as is". Your are free to use it, distribute it, and modify it.    (8E3)

Credits    (8E4)

The Protege Script Console relies on third-party software components:    (8E5)

Release Notes    (8EC)

Version 0.26    (8ED)

Version 0.25    (8F7)

Version 0.24    (8F8)

Version 0.19    (8F9)

Version 0.18    (8FA)

Version 0.16    (8FB)

Version 0.15    (8FC)

Version 0.14    (8FD)

Version 0.13    (8FE)

Version 0.12    (8FF)

Version 0.11    (8FG)