Main FAQ for the Protégé Script plugin    (3VK)

Main FAQ summary    (3VL)

-- OlivierDameron    (3W5)

Back to the Protégé Script plugin main page.    (3W6)


Main FAQ Answers    (3W7)

Updating scripting languages    (3W8)

The code for the Protégé script plugin is completely independent from the various supported scripting languages. The distribution of the Protégé script plugin tries to include the latest vesions of these scripting languages, but we do not create a new version of the plugin everytime a new version of a scripting language is released.    (3W9)

It is very simple to update a scripting language, though: just replace the old jar file(s) by the new one(s) in the ${PROTEGE_HOME}/plugins/edu.stanford.smi.protege.script directory. You can also send me an email so that I don't forget to include the new version in the next release of the Protege script plugin.    (3WA)

Modifying the default script language    (3WB)

Edit the Protege.lax file in the main installation directory of Protégé and add the following line at the end:    (3WC)

 # DEFAULT SCRIPT LANGUAGE 
 # -----------------------
 edu.stanford.smi.protege.script.defaultScriptLanguage=jython    (3WD)

Replace "jython" by any of "jython", "perl", "beanshell", "groovy", "jruby".    (3WE)

Defining the path of a script to be executed at each startup of the script plugin    (3WF)

Edit the Protege.lax file in the main installation directory of Protégé and add the following line at the end:    (3WG)

 #   PATH TO THE DEFAULT SCRIPT FILE
 #   -------------------------------
 edu.stanford.smi.protege.script.defaultScriptPath=/home/olivier/misc/python/protegeAutomaticScript.py    (3WH)

Notes:    (3WI)

Available variables for interacting with Protégé    (3WL)

Importing a remote script    (3WP)

It is definitely possible to import or execute remote script from the Protégé Script Tab. For further details, checkout the FAQ specific to your script language: python, perl ....    (3WQ)

Creating or invoking user interface stuff    (3WR)

You can either use the Java Swing API or some script language specific libraries.    (3WS)