Getting Source Code - nononing2014/repoProtege GitHub Wiki
Before we start our development process we should get all necessary source code at one place create a new folder somewhere in your computer to contain all required source code. You can choose any location and name for this folder. For now let's assume that it is "source_container" located at desktop. ALL these repositories are necessary for working with Protege development environment go through them one by one to get all source code.
OWLAPI
Currently Protege use two versions of OWLAPI: 3.5.0 and 3.5.1. Follow these instructions to get both copies of owlapi:
- run
git clone https://github.com/owlcs/owlapi
in git command line. You should get owlapi folder in your working directory. - Go to OWLAPI directory using
cd owlapi
command. - All our source code lies in branch "version3" of owlapi. To use version3 of owlapi run
git checkout version3
in git command line. - To get version 3.5.0 in your current working directory run
git checkout 7c36925
. Copy this folder to your "source_container" folder and rename it to owlapi0. You should delete.git
(maybe hidden) folder of owlapi0 inside "source_container". - To get version 3.5.1 in your current working directory run
git checkout 9c36641
. Copy this folder to your "source_container" folder and rename it to owlapi1. You should delete.git
(maybe hidden) folder of owlapi1 inside "source_container".
If you are planning to develop some other version of Protege find out on which version of owlapi your Protege depends. You can get required owlapi version by finding out its commit number from here.
Protege OWLAPI
Protege-OWLAPI introduces some extension to OWLAPI. It is only used by Protege. Current Protege use 3.2.6 version of Protege-OWLAPI. You can get necessary source code by following these instructions:
- You can clone protege-owlapi from its github page by using
git clone https://github.com/protegeproject/protege-owlapi
in git command line. You should getprotege-owlapi
folder in your working directory. - Go to protege-owlapi directory using
cd protege-owlapi
command. - To get version 3.2.6 in your current working directory run
git checkout 5675ee7
. Copy this folder to your "source_container" folder. You should delete.git
(maybe hidden) folder of protege-owlapi inside "source_container".
OWLViz
Any version of OWLViz is fine by Protege. So lets get latest version of OWLViz. You can clone latest version of OWLViz by using git clone https://github.com/protegeproject/owlviz
in git command line. After this you should copy owlviz folder from working directory to "source_container". You should also delete .git
folder from owlviz folder in "source_container".
Protege
Lets get latest version of Protege. You can clone latest version of Protege by using git clone https://github.com/protegeproject/protege
in git command line. After this you should copy protege folder from working directory to "source_container". You should also delete .git
folder from protege folder in "source_container".
After this step you have all the necessary codes.