Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rdf2hdt problem reading from /dev/stdin? #141

Closed
v4ss4llo opened this issue Dec 13, 2017 · 2 comments
Closed

rdf2hdt problem reading from /dev/stdin? #141

v4ss4llo opened this issue Dec 13, 2017 · 2 comments

Comments

@v4ss4llo
Copy link

I've run a quick test on a 1.2MB .nt file.

rdf2hdt data.nt data.hdt generates a HDT of size 160K

cat data.nt | rdf2hdt /dev/stdin data.hdt generates a HDT of size 142K

rdf2hdt /dev/stdin data.hdt < data.nt generates a HDT of size 160K but it's not the same file as in the first example, they have different hashes

Can somebody explain what's going on?

@LaurensRietveld
Copy link
Member

The hash is different as the header is different (the header contains a timestamp). Had this problem before as well. Would be nice to either have the timestamp removed, or to add a content hash to the header as well.

W.r.t. piping data to an HDT: see #47 . Atm it does not work, as afaik rdf2hdt needs two passes over a file to create an HDT

@v4ss4llo
Copy link
Author

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants