Skip to content

Commit

Permalink
DOC: Updated installation docs to use pack_install/1 i.o. pack_rebuil…
Browse files Browse the repository at this point in the history
…d/1.
  • Loading branch information
wouterbeek committed Jun 13, 2017
1 parent 3c8100b commit 4d3be65
Showing 1 changed file with 31 additions and 33 deletions.
64 changes: 31 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,52 +8,50 @@ HDT files form a natural addition to SWI-Prolog's memory based RDF store
to access large amounts of static background knowledge without enlarging
the memory footprint.

This repository is organised as a SWI-Prolog _pack_. To install it,
perform the steps below. Tested on Ubuntu Linux. Should work on most
Unix-like machines. Installation on Windows requires more creativity.
This repository is organised as a SWI-Prolog _pack_. To install it,
perform the steps below. Installation and usage is tested on Ubuntu
and Fedora. This should work on most Unix-like machines.
Installation on Windows requires more creativity though.

1. Clone this repository in your SWI-Prolog _pack_ directory,
typically `~/lib/swipl/pack` and install it:

a. Clone this pack:

```bash
$ git clone https://github.com/JanWielemaker/hdt
```
## Installation

b. Install a recent version of Serd:
1. Install a recent version of Serd:

```bash
curl -s http://download.drobilla.net/serd-0.26.0.tar.bz2 | tar -xj && \
cd serd-0.26.0 && \
./waf configure && \
./waf && \
sudo ./waf install;
```
```bash
curl -s http://download.drobilla.net/serd-0.26.0.tar.bz2 | tar -xj && \
cd serd-0.26.0 && \
./waf configure && \
./waf && \
sudo ./waf install;
```

c. Install Raptor:
2. Install Raptor2.

* On Fedora:
On Fedora: `sudo dnf install raptor2-devel`

```bash
sudo dnf install raptor2-devel
```
On Ubuntu: `sudo apt-get install libraptor2-dev`

* On Ubuntu:
3. After the prerequisites are installed, the HDT library can be
installed from within Prolog using the following command:

```bash
sudo apt-get install libraptor-dev
```
```bash
?- pack_install(hdt).
```

d. Start SWI-Prolog and run

```prolog
?- pack_rebuild(hdt).
```

If all worked out, you can now use `?- use_module(library(hdt)).` to
load the library. Please example the comments there to understand the
interface.
## Usage

If the installation went well, you can load the HDT library with the following command:


```bash
?- [library(hdt)].
```



## Status

Expand Down

0 comments on commit 4d3be65

Please sign in to comment.