Building Protege Lisp Plugin
============================

Instructions for OSX

Alan Ruttenberg, Mark Evenson


1. Check out the sources from SVN

    svn co http://smi-protege.stanford.edu/repos/protege/protege4/protege-base/trunk protege-base

    svn co http://smi-protege.stanford.edu/repos/protege/protege4/plugins/org.protege.common/trunk org.protege.common 

    svn co http://smi-protege.stanford.edu/repos/protege/protege4/plugins/org.protege.editor.core.application/trunk org.protege.editor.core.application

    svn co http://smi-protege.stanford.edu/repos/protege/protege4/plugins/org.semanticweb.owl.owlapi/trunk org.semanticweb.owl.owlapi

    svn co http://smi-protege.stanford.edu/repos/protege/protege4/plugins/org.protege.editor.owl/trunk org.protege.editor.owl

    svn co http://svn.neurocommons.org/svn/trunk/protege/org.sciencecommons.protege.lisp 

    svn co http://smi-protege.stanford.edu/repos/protege/protege4/plugins/binary

    mkdir Protege41.app

2. Use the following build script

-------8<----------------------------------------------

#!/bin/tcsh

setenv JAVA_HOME /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/
setenv PROTEGE_HOME `pwd`/Protege41.app

echo building protege-base
(cd protege-base; ant osx)

set dirs = ( \
    org.protege.common org.protege.editor.core.application \
    org.semanticweb.owl.owlapi \
    org.protege.editor.owl \
    org.sciencecommons.protege.lisp \
  )

foreach dir ($dirs)
        echo building $dir
        (cd $dir; ant install)
end

cp binary/org.semanticweb.HermiT.jar Protege41.app/Contents/Resources/Java/plugins/


-------8<----------------------------------------------

To start it up,

1) Start Protege41.app
2) From startup window create new ontology (accept defaults)
3) Select menu Tabs>Create a new tab (call it e.g. "Lisp")
4) Select menu Views>Misc views>Lisp shell
5) Click somewhere in window
(should get prompt in window + new j window)

To save the tab/view setup for next time choose menu Tabs>Store current layout

-Alan
