deltaDAO / nautilus

The Data Economy TypeScript Toolkit
https://nautilus.delta-dao.com
Apache License 2.0
4 stars 2 forks source link

[Enhancement] add missing DDO attributes #31

Closed Abrom8 closed 1 year ago

Abrom8 commented 1 year ago

Motivation / Problem

tags and copyrightHolder are missing in the assetBuilder

TODO: check for other missing attributes TODO2: implement functions for all missing attributes

rogargon commented 1 year ago

Yes, we will need to set the tags. It would be helpful to do so through the AssetBuilder

rogargon commented 1 year ago

Others that seem missing are "license" and "links"

rogargon commented 1 year ago

For the moment got it working by doing:

const asset = assetBuilder.build();
asset.metadata.tags = ['tag1', 'tag2'];
asset.metadata.links = ['https://samples.org/file.csv'];
const result = await nautilus.publish(asset);