GSS-Cogs / dd-cms

A data-driven content management system prototype, based on Plone/Volto and data blocks
2 stars 0 forks source link

Dataset metadata #298

Open ajtucker opened 2 years ago

ajtucker commented 2 years ago

For charts and any content that is data driven, we need a way to fetch dataset metadata, e.g. creator/publisher, title, creation date, modified date, etc.

These dataset metadata are available alongside the observational data and DSDs in PMD for each dataset.

For CCv1 we used a route, /dataset/[id].json to drive a SPARQL query for a given dataset (from its URI) and return a JSON object, e.g. https://climate-change.data.gov.uk/dataset/beis-gas-emissions.

ajtucker commented 2 years ago

Next version of eea.dataconnector has a key for metadata, so we need to check it out.

nosnickid commented 2 years ago

The changes in #316 upgrade the eea.api.dataconnector package which has the metadata key.

I've left it blank for now; I think a simple first thing would be to reuse the metadata from the sparql query, once #316 is merged.