diff options
| author | RncLsn <rnc.lsn@gmail.com> | 2015-10-12 11:10:01 +0100 |
|---|---|---|
| committer | RncLsn <rnc.lsn@gmail.com> | 2015-10-12 11:10:01 +0100 |
| commit | 8651164cd632a5db310b457ce32d4fbc97bdc41c (patch) | |
| tree | f898102e0090a664d850b45eee994c57447bd4b9 /README.md | |
| parent | 45616f650111c1d0236d22fcb5f3b4e5e8b68550 (diff) | |
| download | ACQuA-8651164cd632a5db310b457ce32d4fbc97bdc41c.tar.gz ACQuA-8651164cd632a5db310b457ce32d4fbc97bdc41c.zip | |
RDFox dependency from project repo; improved the readme.
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 48 |
1 files changed, 30 insertions, 18 deletions
| @@ -1,35 +1,47 @@ | |||
| 1 | PAGOdA | 1 | PAGOdA |
| 2 | ===== | 2 | ====== |
| 3 | 3 | ||
| 4 | PAGOdA is a conjunctive query answering engine for OWL 2 ontologies. The instruction how to use it can be found on the following website: http://www.cs.ox.ac.uk/isg/tools/PAGOdA/. | 4 | PAGOdA is a conjunctive query answering engine for OWL 2 ontologies. |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | Project dependencies/requirements | 7 | Project dependencies/requirements |
| 8 | ===== | 8 | ================================= |
| 9 | 9 | ||
| 10 | - This software has been developed for Linux | ||
| 10 | - JavaSE 8 | 11 | - JavaSE 8 |
| 11 | - Maven | 12 | - Maven |
| 12 | 13 | ||
| 13 | 14 | ||
| 14 | How to compile the project from source in Eclipse? | 15 | Building and packaging |
| 15 | ===== | 16 | ====================== |
| 16 | 17 | ||
| 17 | - In order to compile the project make sure that you have JavaSE 8 and Maven installed on your computer. | 18 | This is a Maven project, hence Maven should be used for building and packaging. |
| 18 | - After cloning the repository by command git clone https://github.com/yujiaoz/PAGOdA.git, you need to install it using the command "maven install". | 19 | * Compile `mvn compile` |
| 19 | - The project depends on a library JRDFox.jar that is not in central maven repository. The library for different operating systems can be found in lib directory. You need to include the correct one for your computer and add it to the build path. Alternative, if you have maven installed on your computer, you could add it into your local maven repository, modify maven dependencies and make sure that you remove it from the build path. If the provided JRDFox.jar doesn't work, you might need to follow the instruction below to compile the project JRDFox by yourself. | 20 | * Create jars `mvn package`; |
| 21 | you will get a jar without dependencies *target/pagoda-x.y.z.jar* and a runnable jar with dependencies *target/pagoda-x.y.z-jar-with-dependencies.jar*. | ||
| 22 | * Execute tests `mvn test -DskipTests=false`; | ||
| 20 | 23 | ||
| 21 | 24 | ||
| 22 | How to compile RDFox? | 25 | Configuring the engine |
| 23 | === | 26 | ====================== |
| 24 | 27 | ||
| 25 | - Download https://github.com/yujiaoz/PAGOdA/blob/master/lib/RDFox/RDFox.zip. | 28 | The engine provides a standard configuration, but it is most likely that is not suitable for your purposes. |
| 26 | - Extract all files in the zip. | 29 | You should provide your own configuration in a file called `pagoda.properties` including it in the classpath. |
| 27 | - Go to the directory RDFox/RDFox. | 30 | Such a file should resemble the file `src/resources/_default_pagoda.properties`. |
| 28 | - Run command "ant". | ||
| 29 | - You will find JRDFox.jar in the directory build/release/lib. | ||
| 30 | 31 | ||
| 31 | 32 | ||
| 32 | How to run the project? | 33 | Executing |
| 33 | === | 34 | ========= |
| 34 | 35 | ||
| 35 | To run PAGOdA inside your java project, please check the simple example in src/example/simpleExample.jar. To run PAGOdA in command line once you have a jar package, follow the instruction on the following website https://www.cs.ox.ac.uk/isg/tools/PAGOdA/. \ No newline at end of file | 36 | Once you have the runnable jar, you can make the system answer queries through the command line interface. |
| 37 | |||
| 38 | Run `java -jar pagoda-x.y.z-jar-with-dependencies.jar` for getting a list of the mandatory arguments and optional parameters. | ||
| 39 | |||
| 40 | Run `java -cp pagoda-x.y.z-jar-with-dependencies.jar:<your_path_to_properties>/pagoda.properties arg [arg]...` for executing the engine with a custom configuration. | ||
| 41 | |||
| 42 | Using it as a library | ||
| 43 | ===================== | ||
| 44 | |||
| 45 | The API is offered by the class `QueryReasoner`, however we provide a more handy wrapper, that is the class `Pagoda`. | ||
| 46 | Thanks to such a wrapper, you can build an instance of `Pagoda` by specifying different parameters and after that you will get | ||
| 47 | a runnable `Pagoda` object. | ||
