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
SHA1 sum:e0a0eff87fc3318434cb493690c570e1255ed30e
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


No reviews. Create the first review!.

Details by download location


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.


  1. Install a recent version of Serd:
    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;
  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).


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

?- [library(hdt)].


Usable, but still experimental.

Contents of pack "hdt"

Pack contains 8 files holding a total of 33.5K bytes.