teamdigitale / dati-semantic-backend

Backend for the NDC semantic repository
GNU Affero General Public License v3.0
4 stars 4 forks source link

[BE] Support CSV metadata #59

Open ioggstream opened 1 year ago

ioggstream commented 1 year ago

I expect

Instead

Notes

ControlledVocabularyPathProcessor uses CsvParser. A more structured library such as frictionless data could support metadata via datapackages

ioggstream commented 4 months ago

When I load a CSV, I cannot attach metadata to it (e.g., the publishing API does not specify the x-jsonld-context and x-jsonld-type).

In order for an API, (e.g., https://schema.gov.it/api-docs?vocabIri=https%3A%2F%2Fw3id.org%2Fitalia%2Fcontrolled-vocabulary%2Fclassifications-for-people%2Feducation-level ) to be annotated with x-jsonld-context and x-jsonld-type the CSV should map field data to classes.

Annotating a CSV with metadata allows to provide the semantic information in the REST API.

This issue is part of a broader architectural analysis aimed at serving data and OpenAPI schemas in a secure ad efficient way, without impacting on the harvesting infrastructure.