LOD-GEOSS / databus-snippets

3 stars 1 forks source link

Fix script oep_databus_registration #22 #25

Closed chrwm closed 1 year ago

chrwm commented 1 year ago

Closes #22

Fixes the databus_identifier for registration on moss.

yum-yab commented 1 year ago

Quick exaplaination @chrwm :

The MOSS takes any kind of databus identifier and you can decide based on what should be returned in the search, so possible options would be something like:

# Group 
databus_identifier =  f"{DATABUS_URI_BASE}/{ACCOUNT_NAME}/{GROUP}"
# Artifact
databus_identifier =  f"{DATABUS_URI_BASE}/{ACCOUNT_NAME}/{GROUP}/{table_name}"
# Version
databus_identifier =  f"{DATABUS_URI_BASE}/{ACCOUNT_NAME}/{GROUP}/{table_name}/{dt.date.today().isoformat()}"
# Specific file
databus_identifier =  f"{DATABUS_URI_BASE}/{ACCOUNT_NAME}/{GROUP}/{table_name}/{dt.date.today().isoformat()}/{table_name}_variant=data.csv"

Currently it returns the artifact, so the overview over the different versions, which is quite nice, but downloading the file directly would take a few extra clicks.

chrwm commented 1 year ago

Thanks for the clarification and nice overview. It'll help future users! Could be worth adding to the readme under a section ##Moss.