We need an access point to see the collected raw extrinsic metadata on origins
July 2022 ERMDS stats: P1400
Now we need to access the metadata via this endpoint:
/api/1/raw-extrinsic-metadata/swhid/
Returns raw extrinsic metadata collected on a given object.
swhid => origin
/api/1/raw-extrinsic-metadata/swhid/authorities/
Returns a list of metadata authorities that provided metadata on the given target
swhid => origin
Use Origin to ORI SWHID?
python3 -c 'from swh.model.model import Origin; print(Origin(url="https://github.com/codemeta/codemeta/").swhid())'
or this: python3 -c 'import hashlib; print("swh:1:ori:" + hashlib.sha1(b"https://github.com/codemeta/codemeta/").hexdigest())'