I'm interested in linking the figures (png, svg, pdf) that I embed in my papers, talks, and webpages, to the scripts, codes and data that produce the figures in the first place. The hope is that by taking just the figure and a simple script, the entire environment that produced the results can be recreated (probably via a VM, despite their issues) and the process for replicating the results made clear (or as clear as the code and pipeline are).
To do this I need to embed metadata in the figure files. That's easy enough to do, but there's lots of standards for what metadata to include and how. The more standards compliant this metadata can be, the more likely it is to be preserved if/when the figures are processed by other tools.
What's the best standard(s) to follow when embedding provenance-related metadata in figure files?
This post has been migrated from the Open Science private beta at StackExchange (A51.SE)