Skip to content

numTriples missing in Triples ControlInformation? #289

@KonradHoeffner

Description

@KonradHoeffner

According to https://www.rdfhdt.org/hdt-binary-format/:

A triples section stores the RDF graph structure using IDs. It contains a ControlInformation with the following required fields:

Type: Set to Triples.
Format. The URI of the triple’s specific type
Properties:
    order: An unsigned 32bit value denoting the order of the triples: Unknown, SPO, SOP, PSO, POS, OSP, OPS (as [0-6]).
    numTriples: An unsigned 32bit value counting the number of total triples.

However when I use the latest rdfhdt/hdt-cpp docker image and convert a Turtle file to HDT, the control information only seems to have the "order" property, not "numTriples". "hexedit" view of the tail of an example file convert from "manifest.ttl" from the w3c tests:

00000C60   77 67 2F 00  9A 74 65 73  74 73 2F 00  A0 72 64 66  2F 72 64 66  31 32 2F 72  64 66 2D 74  75 72 74 6C  65 2F 00 89  77 77 2E 77  33 2E 6F 72  wg/..tests/..rdf/rdf12/rdf-turtle/..ww.w3.or
00000C8C   67 2F 43 6F  6E 73 6F 72  74 69 75 6D  2F 4C 65 67  61 6C 2F 32  30 30 38 2F  30 33 2D 62  73 64 2D 6C  69 63 65 6E  73 65 00 80  73 79 6E 74  g/Consortium/Legal/2008/03-bsd-license..synt
00000CB8   61 78 2F 6D  61 6E 69 66  65 73 74 2E  74 74 6C 00  4B E1 51 D8  24 48 44 54  04 3C 68 74  74 70 3A 2F  2F 70 75 72  6C 2E 6F 72  67 2F 48 44  ax/manifest.ttl.K.Q.$HDT.<http://purl.org/HD
00000CE4   54 2F 68 64  74 23 74 72  69 70 6C 65  73 42 69 74  6D 61 70 3E  00 6F 72 64  65 72 3D 31  3B 00 59 E9  01 93 E5 AA  00 04 FA D4  A3 BA 01 94  T/hdt#triplesBitmap>.order=1;.Y.............
00000D10   F0 FF FF 0B  6A 07 0B CB  01 04 93 CF  FE 65 65 65  21 43 87 A9  CB 5D 46 3C  5D CF 01 05  94 CF 4F B1  31 C9 6A C1  48 E3 4A 82  51 1C 04 09  ....j........eee!C...]F<].....O.1.j.H.J.Q...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions