{"action":"created","issue":{"url":"https://api.github.com/repos/rdfhdt/hdt-cpp/issues/137","repository_url":"https://api.github.com/repos/rdfhdt/hdt-cpp","labels_url":"https://api.github.com/repos/rdfhdt/hdt-cpp/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/rdfhdt/hdt-cpp/issues/137/comments","events_url":"https://api.github.com/repos/rdfhdt/hdt-cpp/issues/137/events","html_url":"https://github.com/rdfhdt/hdt-cpp/issues/137","id":275999260,"number":137,"title":"HDT format, simple diagram or cheatseet","user":{"login":"v4ss4llo","id":33894161,"avatar_url":"https://avatars1.githubusercontent.com/u/33894161?v=4","gravatar_id":"","url":"https://api.github.com/users/v4ss4llo","html_url":"https://github.com/v4ss4llo","followers_url":"https://api.github.com/users/v4ss4llo/followers","following_url":"https://api.github.com/users/v4ss4llo/following{/other_user}","gists_url":"https://api.github.com/users/v4ss4llo/gists{/gist_id}","starred_url":"https://api.github.com/users/v4ss4llo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/v4ss4llo/subscriptions","organizations_url":"https://api.github.com/users/v4ss4llo/orgs","repos_url":"https://api.github.com/users/v4ss4llo/repos","events_url":"https://api.github.com/users/v4ss4llo/events{/privacy}","received_events_url":"https://api.github.com/users/v4ss4llo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-11-22T09:34:05Z","updated_at":"2017-12-06T07:50:57Z","closed_at":null,"author_association":"NONE","body":"Hello, is there any (or would it please be possible to make one) cheatsheet, graph/diagram, or tutorial explaining the HDT binary format? I mean the one used in .hdt files. Also I'm not talking about the HDT papers, I'm simply talking about \"a set of instructions\" that explains how a HDT file is structured. For example:\r\n\r\n- the first n bits are used for ...\r\n- the next n bits represent ...\r\n- ...\r\n\r\nWhat I have in mind is give-or-take something [like this](https://web.archive.org/web/20171122093251if_/http://www.disktuna.com/wp-content/uploads/2016/11/jpeg.jpg).\r\n\r\nIt would be useful to people adding more HDT implementations (read/write of HDT files) without having to go through the lengthy details of the papers that explains the ins and outs of the whole HDT system.\r\n\r\nThank you."},"comment":{"url":"https://api.github.com/repos/rdfhdt/hdt-cpp/issues/comments/349561874","html_url":"https://github.com/rdfhdt/hdt-cpp/issues/137#issuecomment-349561874","issue_url":"https://api.github.com/repos/rdfhdt/hdt-cpp/issues/137","id":349561874,"user":{"login":"v4ss4llo","id":33894161,"avatar_url":"https://avatars1.githubusercontent.com/u/33894161?v=4","gravatar_id":"","url":"https://api.github.com/users/v4ss4llo","html_url":"https://github.com/v4ss4llo","followers_url":"https://api.github.com/users/v4ss4llo/followers","following_url":"https://api.github.com/users/v4ss4llo/following{/other_user}","gists_url":"https://api.github.com/users/v4ss4llo/gists{/gist_id}","starred_url":"https://api.github.com/users/v4ss4llo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/v4ss4llo/subscriptions","organizations_url":"https://api.github.com/users/v4ss4llo/orgs","repos_url":"https://api.github.com/users/v4ss4llo/repos","events_url":"https://api.github.com/users/v4ss4llo/events{/privacy}","received_events_url":"https://api.github.com/users/v4ss4llo/received_events","type":"User","site_admin":false},"created_at":"2017-12-06T07:50:57Z","updated_at":"2017-12-06T07:50:57Z","author_association":"NONE","body":"For testing purposes I've created another file with 2 triples instead,\r\n\r\n```\r\n<http://example.org/A> <http://schema.org/name> \"Alice\" .\r\n<http://example.org/B> <http://schema.org/surname> \"Bob\" .\r\n```\r\n\r\nAnd the bitmaps/arrays are as follow\r\n\r\n```\r\n00000780                                    (01 82 92 03 a5     |           .....|\r\n00000790  a0 2d 41) (01 82 92 03 a5  a0 2d 41) (01 02 82 c6 09  |.-A......-A.....|\r\n000007a0  9d 88 cf 2a) (01 02 82 c6  09 9d 88 cf 2a)            |...*........*|\r\n```\r\n\r\nIt looks like it's writing the VByte twice, one time with the leading bit set to zero, and then again with the leading bit set to one. `01 81` in the first example (with one triple) and `02 82` in the second example (with two triples)."}}
{"actor":{"display_login":"v4ss4llo"}}