diff options
| author | Federico Igne <federico.igne@cs.ox.ac.uk> | 2022-05-19 17:31:59 +0100 |
|---|---|---|
| committer | Federico Igne <federico.igne@cs.ox.ac.uk> | 2022-05-19 17:31:59 +0100 |
| commit | eca3499882f892444eba215759c0347218deb6cb (patch) | |
| tree | b4ebe680b6434fc61e40d2a0809199b211e216a6 /README.md | |
| parent | 05205b0954b4b7ee3667f7c17bbb7d37b4040404 (diff) | |
| download | ACQuA-eca3499882f892444eba215759c0347218deb6cb.tar.gz ACQuA-eca3499882f892444eba215759c0347218deb6cb.zip | |
docs: update README.md
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 71 |
1 files changed, 52 insertions, 19 deletions
| @@ -13,13 +13,13 @@ A hybrid architecture for conjunctive query answering overover OWL 2 DL. | |||
| 13 | <a href="https://github.com/KRR-Oxford/ACQuA/issues">Report bug</a> | 13 | <a href="https://github.com/KRR-Oxford/ACQuA/issues">Report bug</a> |
| 14 | <br/><br/> | 14 | <br/><br/> |
| 15 | <a href="https://github.com/KRR-Oxford/ACQuA/releases/latest"> | 15 | <a href="https://github.com/KRR-Oxford/ACQuA/releases/latest"> |
| 16 | <img src="https://img.shields.io/github/release/KRR-Oxford/RSAComb.svg?style=for-the-badge" alt="Release badge"> | 16 | <img src="https://img.shields.io/github/release/KRR-Oxford/ACQuA.svg?style=for-the-badge" alt="Release badge"> |
| 17 | </a> | 17 | </a> |
| 18 | <a href="https://github.com/KRR-Oxford/ACQuA/issues"> | 18 | <a href="https://github.com/KRR-Oxford/ACQuA/issues"> |
| 19 | <img src="https://img.shields.io/github/issues/KRR-Oxford/RSAComb.svg?style=for-the-badge" alt="Issues badge"> | 19 | <img src="https://img.shields.io/github/issues/KRR-Oxford/ACQuA.svg?style=for-the-badge" alt="Issues badge"> |
| 20 | </a> | 20 | </a> |
| 21 | <!-- <a href="https://github.com/KRR-Oxford/ACQuA/actions"> --> | 21 | <!-- <a href="https://github.com/KRR-Oxford/ACQuA/actions"> --> |
| 22 | <!-- <img src="https://img.shields.io/github/workflow/status/KRR-Oxford/RSAComb/Scala%20CI/develop?label=TESTS&style=for-the-badge" alt="GitHub Actions badge"> --> | 22 | <!-- <img src="https://img.shields.io/github/workflow/status/KRR-Oxford/ACQuA/Scala%20CI/develop?label=TESTS&style=for-the-badge" alt="GitHub Actions badge"> --> |
| 23 | <!-- </a> --> | 23 | <!-- </a> --> |
| 24 | <a href="LICENSE"> | 24 | <a href="LICENSE"> |
| 25 | <img src="https://img.shields.io/github/license/KRR-Oxford/ACQuA.svg?style=for-the-badge" alt="License badge"> | 25 | <img src="https://img.shields.io/github/license/KRR-Oxford/ACQuA.svg?style=for-the-badge" alt="License badge"> |
| @@ -41,15 +41,21 @@ If the bounds don’t coincide, then the “gap” answers are checked using the | |||
| 41 | 41 | ||
| 42 | This reference implementation combines [RSAComb], [PAGOdA], and [HermiT], but these tools can be potentially subtituted or augmented with more capable ones to improve the overall performance of the system. | 42 | This reference implementation combines [RSAComb], [PAGOdA], and [HermiT], but these tools can be potentially subtituted or augmented with more capable ones to improve the overall performance of the system. |
| 43 | 43 | ||
| 44 | > ACQuA is still in its preliminary stage of development and might contain bugs. | 44 | > *Disclaimer:* ACQuA is still in its preliminary stage of development and might contain bugs. |
| 45 | 45 | ||
| 46 | ## Preliminaries | 46 | ## Preliminaries |
| 47 | 47 | ||
| 48 | RSAComb uses a recent version of [RDFox] under the hood to offload part of the computation. | 48 | RSAComb uses a recent version of [RDFox] under the hood to offload part of the computation. |
| 49 | 49 | ||
| 50 | In order to run ACQuA you need to have [RDFox](https://www.oxfordsemantic.tech/product) available in your system, along with *a valid license*. | 50 | In order to run ACQuA you need to have RDFox available in your system, along with *a valid license*. |
| 51 | RDFox is proprietary software and as such we are not able to distribute it along with our code. | 51 | RDFox is proprietary software and as such we are not able to distribute it along with our code. |
| 52 | This software has been developed and tested with RDFox v5.5 | 52 | This software has been developed and tested with **RDFox v5.5**. |
| 53 | |||
| 54 | ### Requirements | ||
| 55 | |||
| 56 | - Maven | ||
| 57 | - [RSAComb] v1.1.0 | ||
| 58 | - RDFox v5.5 | ||
| 53 | 59 | ||
| 54 | ### Installing RDFox | 60 | ### Installing RDFox |
| 55 | 61 | ||
| @@ -57,13 +63,13 @@ We refer to the [official documentation](https://docs.oxfordsemantic.tech/gettin | |||
| 57 | In particular, you will need to know the path to the RDFox Java API (usually called `JRDFox.jar`) that comes with the distribution. | 63 | In particular, you will need to know the path to the RDFox Java API (usually called `JRDFox.jar`) that comes with the distribution. |
| 58 | 64 | ||
| 59 | Alternatively, run the following commands (on a Linux x86 machine) from the root of the project to install RDFox locally. | 65 | Alternatively, run the following commands (on a Linux x86 machine) from the root of the project to install RDFox locally. |
| 60 | Download links for other versions, operating systems, and architectures can be found [here](https://www.oxfordsemantic.tech/downloads). | 66 | Download links for other versions, operating systems, and architectures can be found [here][RDFox]. |
| 61 | 67 | ||
| 62 | ```{.bash} | 68 | ```{.bash} |
| 63 | mkdir -p lib && pushd lib | 69 | mkdir -p lib && pushd lib |
| 64 | wget https://rdfox-distribution.s3.eu-west-2.amazonaws.com/release/v5.5/RDFox-linux-x86_64-5.5.zip | 70 | wget https://rdfox-distribution.s3.eu-west-2.amazonaws.com/release/v5.5/RDFox-linux-x86_64-5.5.zip |
| 65 | unzip RDFox-linux-x86_64-5.2.1.zip | 71 | unzip RDFox-linux-x86_64-5.5.zip |
| 66 | ln -s RDFox-linux-x86_64-5.2.1.zip/lib/JRDFox.jar | 72 | ln -s RDFox-linux-x86_64-5.5/lib/JRDFox.jar |
| 67 | popd | 73 | popd |
| 68 | ``` | 74 | ``` |
| 69 | 75 | ||
| @@ -76,16 +82,40 @@ One easy way is to put your license key in a file `RDFox.lic` in `$HOME/.RDFox/` | |||
| 76 | 82 | ||
| 77 | ## Using the software | 83 | ## Using the software |
| 78 | 84 | ||
| 79 | `TODO` | 85 | The project is managed using Maven. |
| 86 | You can compile the code using the following command | ||
| 80 | 87 | ||
| 81 | ### Running tests | 88 | ```{#acqua-compile .sh} |
| 89 | mvn compile | ||
| 90 | ``` | ||
| 82 | 91 | ||
| 83 | `TODO` | 92 | To build a JAR file, package the project as follows |
| 84 | 93 | ||
| 85 | ``` | 94 | ```{#acqua-package .sh} |
| 86 | mvn compile | ||
| 87 | mvn package | 95 | mvn package |
| 88 | java -cp ... uk.ac.ox.cs.acqua.Acqua [OPTIONs] | 96 | ``` |
| 97 | |||
| 98 | To run ACQuA from the command line you can use the following command | ||
| 99 | |||
| 100 | ```{#acqua-run .sh} | ||
| 101 | java -cp target/acqua-0.2.0-jar-with-dependencies.jar:<path/to/JRDFox.jar>:<path/to/RSAComb.jar> uk.ac.ox.cs.acqua.Acqua [OPTION ...] | ||
| 102 | ``` | ||
| 103 | |||
| 104 | where `path/to/RSAComb.jar` and `path/to/JRDFox.jar` are the paths in your system for `RSAComb.jar` and `JRDFox.jar`, respectively. | ||
| 105 | For example to get a help message from the CLI use | ||
| 106 | |||
| 107 | ```{#acqua-help .sh} | ||
| 108 | java -cp target/acqua-0.2.0-jar-with-dependencies.jar:<path/to/JRDFox.jar>:<path/to/RSAComb.jar> uk.ac.ox.cs.acqua.Acqua --help | ||
| 109 | ``` | ||
| 110 | |||
| 111 | To run an example shipping with the distribution you can try | ||
| 112 | |||
| 113 | ```{#acqua-test .sh} | ||
| 114 | java -cp target/acqua-0.2.0-jar-with-dependencies.jar:<path/to/JRDFox.jar>:<path/to/RSAComb.jar> \ | ||
| 115 | uk.ac.ox.cs.acqua.Acqua \ | ||
| 116 | -o tests/lubm/univ-bench.owl \ | ||
| 117 | -d tests/lubm/data/lubm1.ttl \ | ||
| 118 | -q tests/lubm/queries.sparql | ||
| 89 | ``` | 119 | ``` |
| 90 | 120 | ||
| 91 | ## References | 121 | ## References |
| @@ -97,8 +127,8 @@ java -cp ... uk.ac.ox.cs.acqua.Acqua [OPTIONs] | |||
| 97 | ## Acknowledgements | 127 | ## Acknowledgements |
| 98 | 128 | ||
| 99 | - OWLAPI [[2]](#references) | 129 | - OWLAPI [[2]](#references) |
| 100 | - [RDFox](https://www.oxfordsemantic.tech/product) | 130 | - [RDFox] |
| 101 | - [PAGOdA]() | 131 | - [PAGOdA] |
| 102 | 132 | ||
| 103 | ## Credits | 133 | ## Credits |
| 104 | 134 | ||
| @@ -112,6 +142,9 @@ From the [Knowledge Representation and Reasoning research group](https://www.cs. | |||
| 112 | 142 | ||
| 113 | This project is licensed under the [Apache License 2.0](LICENSE). | 143 | This project is licensed under the [Apache License 2.0](LICENSE). |
| 114 | 144 | ||
| 115 | ## TODOs | 145 | <!-- References --> |
| 116 | 146 | ||
| 117 | - [ ] Better integration between ACQuA, RDFox and PAGOdA configuration parameters. | 147 | [RSAComb]: https://github.com/KRR-Oxford/RSAComb |
| 148 | [RDFox]: https://www.oxfordsemantic.tech/product | ||
| 149 | [PAGOdA]: http://www.cs.ox.ac.uk/isg/tools/PAGOdA | ||
| 150 | [HermiT]: http://www.hermit-reasoner.com/ | ||
