- From: Erich Bremer <erich@ebremer.com>
- Date: Wed, 27 Oct 2021 15:34:22 -0400
- To: public-csvw@w3.org
- Message-ID: <CAFt6ea1J0SAt8tG3=S-GPp9HT8pPz0xOaeGOD0iZi64JoPw6xw@mail.gmail.com>
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 19:34:45 UTC