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
- Host: GitHub
- URL: https://github.com/kasei/swift-hdt
- Owner: kasei
- License: mit
- Created: 2018-11-06T21:58:13.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-02T19:47:00.000Z (over 6 years ago)
- Last Synced: 2025-03-13T23:03:24.496Z (9 months ago)
- Language: Swift
- Size: 121 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-semantic-web - swift-hdt - An [HDT](http://www.rdfhdt.org/) RDF Parser. (Programming / Swift)
- awesome-semantic-web - swift-hdt - An [HDT](http://www.rdfhdt.org/) RDF Parser. (Programming / Swift)
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/)