Class HDTParser

java.lang.Object
org.eclipse.rdf4j.rio.helpers.AbstractRDFParser
org.eclipse.rdf4j.rio.hdt.HDTParser
All Implemented Interfaces:
RDFParser

public class HDTParser extends AbstractRDFParser
RDF parser for HDT v1.0 files. This parser is not thread-safe, therefore its public methods are synchronized.

Unfortunately the draft specification is not entirely clear and probably slightly out of date, since the open source reference implementation HDT-It seems to implement a slightly different version. This parser tries to be compatible with HDT-It 1.0.

The most important parts are the Dictionaries containing the actual values (S, P, O part of a triple), and the Triples containing the numeric references to construct the triples.

Since objects in one triple are often subjects in another triple, these "shared" parts are stored in a shared Dictionary, which may significantly reduce the file size.

File structure:

 +---------------------+
 | Global              |
 | Header              |
 | Dictionary (Shared) |
 | Dictionary (S)      |
 | Dictionary (P)      |
 | Dictionary (O)      |
 | Triples             |
 +---------------------+
 
Author:
Bart Hanssens
See Also: