Re: Generating CSV from JSON-LD: w3c tabular data vs frictionless

> On Jul 7, 2022, at 7:26 AM, Roberto Polli <robipolli@gmail.com> wrote:
> 
> Dear all,
> 
> I wanted to identify a standard way of generating a CSV from a JSON-LD
> and still being able
> to generate back the original LD.
> 
> My first attempt was:
> 
> JSON-LD -- framing --> Flat JSON --> CSV
> 
> This CSV can be mapped back to JSON-LD using the @context provided in framing.
> Clearly this does not provide a JSON Schema for data, but it can
> be integrated with
> https://ioggstream.github.io/draft-polli-restapi-ld-keywords/draft-polli-restapi-ld-keywords.html
> to provide all the required information e.g. for auto-generating a
> REST API via frictionless
> 
> I am now reading https://www.w3.org/TR/tabular-data-primer/
> is that used? Does it work?
> 
> Have a nice day,
> R.
> 

Yes, CSVW (tabular-data-mode, tabular-metadata, etc.) is used, although probably not quite widely enough. The group did not describe a method for serializing arbitrary RDF to CSV with corresponding metadata. Something akin to JSON-LD Framing might be useful in doing this, but it is a hard problem.

Gregg

Received on Thursday, 7 July 2022 20:24:22 UTC