I know that (in contrast to IPFS) the SWHID is only an identifier without an retrieval protocol, however, technically it should not be too hard to implement an retrieval protocol that fetches from a SWH mirror.I discussed shortly with Maxence about this, but he is also not aware of any progress towards implementing this idea, so maybe someone here has already thought about this?
> When I made my SWHID implementation, I implemented support for
> "--write-objects" similar to `git hash-object`
> Right now it only does blobs and trees, but it should not be hard to add
> also the "git" subcommand objects...
>
> Your question is more about the opposite direction, how to translate from
> SWH and to Git objects?
> But so far, I created a .swh/objects directory (with zlib) and was able to
> use that as a $GIT_DIR.
Will probably complete the implementation anyway, but there is another "official" Go library...From a different thread I also added the version/hash/encoding flags, and collision detection.
Hi Moritz, all
For the next revision, I would like to better explain how the swhid can be practically used to reproduce results.
This information would be of significant interest to the Open Energy Modelling Initiative community. Particularly now that open source models are being used to support sector planning (Ten Year Network Development Plans) and public policy (decarbonization pathways). I would appreciate any updates.
best, Robbie
-- Robbie Morrison Address: Schillerstrasse 85, 10627 Berlin, Germany Phone: +49.30.612-87617
Now the implementation of directory and database is complete, and in "doc":
https://github.com/afbjorklund/go-swhid/blob/main/doc/storage.md