Swirrl / datahost-prototypes

Eclipse Public License 1.0
0 stars 0 forks source link

CSVW metadata download: Part 2 #327

Open scottlowe opened 9 months ago

scottlowe commented 9 months ago

Second part of issue https://github.com/Swirrl/datahost-prototypes/issues/184.

An HTTP GET request to:

/doc/series-187/release/release-1.csv-metadata.json

... responds with CSVW metadata.

The metadata also contains a csvw:url key which points to the associated CSV data file, e.g.:

/doc/series-187/release/release-1.csv.

The CSVW metadata route loads schema triple data, processes it using JSON-LD; converts the datahost schema into a CSVW schema and finally replaces the Datahost JSON-LD @context value with the legal CSVW @context.