Asset Module
- starfish.asset.create_asset()
Create a new asset class based on the metadata. Once created assign the metadata to the asset and also the optional did
- starfish.asset.create_asset_provenance_invoke(asset: starfish.asset.asset_base.AssetBase, agent_did: str, job_id: str, asset_list: Any, inputs_text: str)
Add a invoke provenance data to the asset metadata. Calling this method will make the asset ‘new’. So the asset_id will change, and the asset.did will be set to None.
- Parameters
agent_did (str) – DID of the agent that this asset will be registered with
- starfish.asset.create_asset_provenance_publish(asset: starfish.asset.asset_base.AssetBase, agent_did: Optional[str] = None)
Add a published provenance data to the asset metadata. Calling this method will make the asset ‘new’. So the asset_id will change, and the asset.did will be set to None.
- Parameters
agent_did (str) – DID of the agent that this asset will be registered with
- starfish.asset.is_asset_hash_valid(asset_id, hash_hex)