Protégé Script Console
A script console for editing macros for Protégé
The script console is a tab for the Protégé ontology development platform. It provides a scripting environment for manipulating an ontology. It is compatible with both the traditionnal Protégé environment and with the OWL Plugin. It can be used to
- reuse some existing functions from other scripts or java classes;
- write your own scripts for designing an intermediate representation of an ontology;
- define your own functions for performing tasks such as reasoning or consistency checking.
Supported languages
The script console relies on Apache's Bean Scripting Framework (BSF). Therefore, any BSF-compliant script language can easily be integrated. So far, the following languages are supported:
Resources
- Download the stuff;
- Save it in the plugins subdirectory of your Protégé installation;
- Unzip it. It will create a edu.stanford.smi.protege.script with everything you need in it;
- Open a project;
- In the "Project" menu and choose "Configure...";
- In the menu, select "ProtegeScriptTab".
The Protégé Script Console plugin is released under the Mozilla Public License. It is provided as is. Your are free to use it, to distribute it and to modify it. Feedback is welcome.
The Protégé Script Console plugin relies on third-party software components.
- Bean Scripting Framework (BSF) provides scripting language support within Java applications, and access to Java objects and methods;
- Jython is a Java implementation of Python;
- BSFPerl is a BSF-compliant Java implementation of Perl;
- Beanshell is a BSF-compliant Java implementation of a Java-like scripting language;
- Groovy;
- JRuby is a BSF-compliant Java implementation of Ruby.
Known bugs and missing features
- For some reason, printing from the script does not work anymore after closing a project and either creating a new one or opening an existing one (including opening the same). It seems that the other functionalities are still operational: you can create new classes or individuals, modify them, etc. even writing into a file, but messages to be printed in the console simply do not show up anymore.
- Code autocompletion
Changelogs
Version 0.32 (2008-08-01)
- Modified the build script so that the text file indicating the supported versions of the various scripting languages
Version 0.31 (2008-07-31)
- Minor bugfix
- Documentation update
Version 0.30 (2008-07-30)
- Updated the scripting languages to the latest available versions.
- Groovy 1.5.6
- Jython 2.2.1
- JRuby 1.1.3
Version 0.29
- Moved to Rennes1 university website.
- Updated the scripting languages to the latest available versions.
- Groovy 1.0
- Jython 2.2
- Beanshell 2.0b4 (beta but considered stable by the website)
Version 0.28
- Updated the scripting languages to the latest available versions.
- Fixed a bug in the manifest file.
Version 0.27
- Updated the scripting languages to the latest available versions.
Version 0.26
- Modified ant build file so that nothing is done if the JVM is not 1.4
Version 0.25
- Recompiled with Java 1.4 :-)
Version 0.24
- Fixed the ant build file so that icons are included in the jar file.
Version 0.19
- Updated BSFPerl from 0.1 to 0.2
- Updated JRuby from 0.8.0 to 0.8.1
Version 0.18
- Fixed the groovy-dependent jar files for groovy-1.0beta10.
Version 0.16
- Fixed missing ant build file.
- Updated Groovy to version 1.0-beta10
Version 0.15
Version 0.14
- Fixed the backspace that was always erasing the last character in the command, not the character before the caret.
Version 0.13
- Fixed a minor bug that made the left arrow to behave as backspace.
Version 0.12
- If the system property edu.stanford.smi.protege.script.defaultScriptLanguage is set, then it is used to determine the default scripting language. Possible values are: "jython", "perl", "beanshell", "groovy", "jruby". The default value is "jython"
- If the system property edu.stanford.smi.protege.script.defaultScriptPath is set to a value that actually points to a file, then this file is executed on startup
- Hitting backspace key deletes one character or one indentation level
- Hitting enter on a line only composed of spaces brings the cursor at the beginning of the new line (no more indentation)
Version 0.11
- Tentative fix of the stdout capture and redirection to the console
- Updated groovy to 1.0-beta9
- Updated jruby to 0.8.0 (Full support for Ruby 1.8.x grammar)
- Improved doap file (default namespace + download URL + minor cleaning)
Olivier Dameron
Last modified: Fri Aug 01 13:42:10 GMT+01:00 2008
The RDF DOAP description of this project is doap.rdf