aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorRncLsn <rnc.lsn@gmail.com>2015-10-12 11:10:01 +0100
committerRncLsn <rnc.lsn@gmail.com>2015-10-12 11:10:01 +0100
commit8651164cd632a5db310b457ce32d4fbc97bdc41c (patch)
treef898102e0090a664d850b45eee994c57447bd4b9 /README.md
parent45616f650111c1d0236d22fcb5f3b4e5e8b68550 (diff)
downloadACQuA-8651164cd632a5db310b457ce32d4fbc97bdc41c.tar.gz
ACQuA-8651164cd632a5db310b457ce32d4fbc97bdc41c.zip
RDFox dependency from project repo; improved the readme.
Diffstat (limited to 'README.md')
-rw-r--r--README.md48
1 files changed, 30 insertions, 18 deletions
diff --git a/README.md b/README.md
index 5e908fb..663b6cb 100644
--- a/README.md
+++ b/README.md
@@ -1,35 +1,47 @@
1PAGOdA 1PAGOdA
2===== 2======
3 3
4PAGOdA 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/. 4PAGOdA is a conjunctive query answering engine for OWL 2 ontologies.
5 5
6 6
7Project dependencies/requirements 7Project 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
14How to compile the project from source in Eclipse? 15Building 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. 18This 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`;
21you 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
22How to compile RDFox? 25Configuring the engine
23=== 26======================
24 27
25- Download https://github.com/yujiaoz/PAGOdA/blob/master/lib/RDFox/RDFox.zip. 28The engine provides a standard configuration, but it is most likely that is not suitable for your purposes.
26- Extract all files in the zip. 29You should provide your own configuration in a file called `pagoda.properties` including it in the classpath.
27- Go to the directory RDFox/RDFox. 30Such 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
32How to run the project? 33Executing
33=== 34=========
34 35
35To 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 36Once you have the runnable jar, you can make the system answer queries through the command line interface.
37
38Run `java -jar pagoda-x.y.z-jar-with-dependencies.jar` for getting a list of the mandatory arguments and optional parameters.
39
40Run `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
42Using it as a library
43=====================
44
45The API is offered by the class `QueryReasoner`, however we provide a more handy wrapper, that is the class `Pagoda`.
46Thanks to such a wrapper, you can build an instance of `Pagoda` by specifying different parameters and after that you will get
47a runnable `Pagoda` object.