cf-xarray icon indicating copy to clipboard operation
cf-xarray copied to clipboard

Prototype for provenance tracking mechanism

Open huard opened this issue 2 years ago • 0 comments

This builds on @dcherian work to track history and cell_method and adds basic provenance tracking. https://github.com/xarray-contrib/cf-xarray/issues/228#issuecomment-909787315

It's inspired by what metaclipR is doing.

Things to do:

  • [ ] xarray: grab more context information for function calls (dimension, arguments)
  • [ ] Add nodes for call arguments ds:Argument
  • [ ] Inference mechanism to detect relevant terms in an ontology. For instance, CMIP5 is defined, so when we find a project or project_id called CMIP5, we should try to refer to it instead of creating a new ds:Project entry as is done here.
  • [ ] Make sure the logic works when multiple functions are chained.
  • [ ] API to save (serialize) the graph in an external file when dataset is written to disk.

I'm hoping someone can take over for a while because I won't be able to invest a lot of time on this in the near future.

huard avatar Sep 03 '21 19:09 huard