- From: Gregg Kellogg <gregg@greggkellogg.net>
- Date: Wed, 27 Oct 2021 16:31:18 -0700
- To: Erich Bremer <erich@ebremer.com>
- Cc: public-csvw@w3.org
- Message-Id: <6CB68134-7C9F-4EF8-8284-8FD13A26507E@greggkellogg.net>
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 Wednesday, 27 October 2021 23:32:34 UTC