- From: Erich Bremer <erich@ebremer.com>
- Date: Thu, 28 Oct 2021 09:33:11 -0400
- To: Gregg Kellogg <gregg@greggkellogg.net>
- Cc: public-csvw@w3.org
- Message-ID: <CAFt6ea2jYrMP7ddnQr7gOkh0CdEOr3mkz45E-tu5=68HGZcSYw@mail.gmail.com>
Does CSVW have any language to indicate file byte order endianness? - E On Wed, Oct 27, 2021 at 7:31 PM Gregg Kellogg <gregg@greggkellogg.net> wrote: > In principle, CSVW is rather format agnostic, so given an appropriate > description of the file format, and a means of reading rows, columns and > headers, it should work for binary formats. > > Gregg Kellogg > > Sent from my iPad > > On Oct 27, 2021, at 12:34 PM, Erich Bremer <erich@ebremer.com> wrote: > > > Can https://www.w3.org/TR/csv2rdf/ be used to describe a binary file? > For example, take a binary file with one column as long and the second > column as an int and with multiple records of (long+int) that would be 64 > bits + 32 bits = 96 bits wide for each row. I started to create a > vocabulary to do this but CSVW seemed to be similar enough that it would > work but perhaps a bit of a bending of the original intent of csvw. I > would think it would look something like this with CSVW/schema.org: > > { > "@id" : "example.bin/", > "@type" : "https://schema.org/MediaObject", > "contentSize" : "34806000", > "description" : "a simple two-column binary file long/int", > "encodingFormat" : "application/octet-stream", > "tableSchema" : "_:b137" > }, > { > "@id" : "_:b137", > "column" : { > "@list" : [ "example.bin/#col=0", "example.bin/#col=1" ] > }, > "https://www.w3.org/ns/csvw/header" : false > }, > { > "@id" : "example.bin/#col=0", > "@type" : "https://www.w3.org/ns/csvw/Column", > "datatype" : "xsd:unsignedLong" > }, { > "@id" : "example.bin/#col=1", > "@type" : "https://www.w3.org/ns/csvw/Column", > "datatype" : "xsd:unsignedInt" > } > > I think it would be useful to describe a binary file in RDF. - Erich > >
Received on Thursday, 28 October 2021 13:33:36 UTC