Did you know ... Search Documentation:
Packs (add-ons) for SWI-Prolog

Package "hdt"

Title:Access RDF HDT files
Rating:Not rated. Create the first rating!
Latest version:0.5.3
SHA1 sum:056c1214412047c105cb0b060f21821bad9f3bfb
Author:Jan Wielemaker <J.Wielemaker@vu.nl>
Maintainer:Jan Wielemaker <J.Wielemaker@vu.nl>
Packager:Jan Wielemaker <J.Wielemaker@vu.nl>
Home page:https://github.com/JanWielemaker/hdt
Download URL:https://github.com/JanWielemaker/hdt/archive/V*.zip

Reviews

No reviews. Create the first review!.

Details by download location

VersionSHA1#DownloadsURL
0.1fabaf449337b875be05ccbf82cb84bdd0b25be6d1https://github.com/JanWielemaker/hdt.git
0.52e8c53ea2ae4961eeb33135d1d770d88064e77871https://github.com/JanWielemaker/hdt.git
3c8100b020fa505825f96cd27f6456a873aa6d642https://github.com/JanWielemaker/hdt.git
4d3be6578ad7fa088577143027bc60cca1a545eb1https://github.com/JanWielemaker/hdt.git
69d13bfd2247aba9765b36b82de1731bf932451337https://github.com/JanWielemaker/hdt.git
9f0dfceb1cdc4e4c44345574447cb87f37855af42https://github.com/JanWielemaker/hdt.git
e0a0eff87fc3318434cb493690c570e1255ed30e25https://github.com/JanWielemaker/hdt.git
0.5.154aa746b75d04640758c7e62472e6b335a4a89261https://github.com/JanWielemaker/hdt.git
0.5.3056c1214412047c105cb0b060f21821bad9f3bfb3https://github.com/JanWielemaker/hdt.git

Header Dictionary Triples (HDT) for SWI-Prolog

This repository is work in progress to provide access to HDT files from SWI-Prolog based on the C++ library for these files.

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. Installation and usage is tested on Ubuntu and Fedora. This should work on most Unix-like machines. Installation on Windows requires more creativity though.

Installation

  1. Install a recent version of Serd. One way of doing this on Ubuntu is: `sudo apt install libserd-0-0 serdi`

    The currently installed version can be found by the command serdi -v. The minimum version of Serd is 0.28.0 (see hdt-cpp/README.md or the before_install rule in `hdt-cpp/.travis.yml`).

    If that isn't available, it can be installed and built by:

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

    You may wish to specify `--prefix=/usr/local or --prefix=$HOME/.local to waf configure`.

    You can uninstall by `python2 ./waf uninstall`

  2. Install Raptor2. On Fedora: `sudo dnf install raptor2-devel`

    On Ubuntu: `sudo apt-get install libraptor2-dev`

  3. After the prerequisites are installed, the HDT library can be installed from within Prolog using the following command:
    ?- pack_install(hdt).

Usage

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

?- [library(hdt)].

Status

Usable, but still experimental.

Contents of pack "hdt"

Pack contains 14 files holding a total of 39.1K bytes.