Build From Scratch - nononing2014/repoProtege GitHub Wiki

In this section we will show you how to setup your development environment. We will also take you step by step through our modification with explanation of source code along the way.

First thing first set up all the necessary tools needed for working with source code of different repositories. All instructions on how to install necessary tools are here.

After that to get all relevant source code follow instructions given [here] (https://github.com/khageshpatel/repoProtege/wiki/Getting-Source-Code "Getting Source Code").

Building all source code

To simply build a project go to root folder of that project for example owlapi1 and run following command

mvn -DskipTests clean install -Dmaven.javadoc.skip=true

Different tags has different meaning:

  • clean

    To clean project repository.

  • install

    To create all binaries and jar files.

  • -DskipTests

    To skip running test files. Including this option reduces build time.

  • -Dmaven.javadoc.skip=true

    Skip building javadoc documentation. Also improves build time.

If you change any project make sure you compile that project as well as all dependents of that project. So if you modify owlapi1 recompile in this order owlapi1 -> protege-master -> owlviz.

Dependency Graph

Another thing to note here is if you want protege to use updates owlviz plugin you should replace owlviz jar from protege\protege-distribution\target\protege-5.0.0-beta-18-SNAPSHOT-platform-independent\Protege-5.0.0-beta-18-SNAPSHOT\plugins with owlviz jar of owlviz\target. In owlviz\target there will be two jar files use one with no sources in its name. An example batch file for compiling all projects can be found [here] (https://github.com/khageshpatel/repoProtege/blob/master/compile.bat "Batch file").

Our first step is modifying OWLAPI. Instruction for modifying OWLAPI are here. Go through it once.

This document will not be helpful if I include all the lines that I edited. That's why I discuss only important portion of my modification. Left out lines are generally not important but I you want to know exactly what I did in a file go to that file and click on history. There it will show all commits that modified that file. Leave out initial commit as that commit is when I downloaded that file. You can go through other commits to see exactly what have been done.

Please follow instruction given here to understand modifications to protege-owlapi.

Please follow instruction given here to understand modifications to OWLViz.

Modifications in Protege can be understood by following this link.