An open API service indexing awesome lists of open source software.

https://github.com/kasei/swift-hdt

An HDT RDF Parser
https://github.com/kasei/swift-hdt

Last synced: about 1 month ago
JSON representation

An HDT RDF Parser

Awesome Lists containing this project

README

          

# swift-hdt

## An HDT RDF Parser

### Build

On MacOS 10.14:

```
% swift build -Xswiftc "-target" -Xswiftc "x86_64-apple-macosx10.14"
```

On Linux:

```
% swift build
```

### Parse an HDT file

```
% ./.build/release/hdt-parse swdf-2012-11-28.hdt
_:b1 .
_:b1 .
_:b1 .
_:b10 .
_:b10 .
_:b10 .
_:b10 .
...
```

### Limitations

This project is early in development, and has many limitations:

* Only serializing the entire HDT file is possible (triple pattern matching is planned for the future)
* Only "Four Part" dictionary encoding is currently supported
* Only "Log64" encoding of bitmap triples values is currently supported

### References

* [HDT](http://www.rdfhdt.org)
* [HDT Binary Format](http://www.rdfhdt.org/hdt-binary-format/)