Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New function: validate metadate_file #105

Merged
merged 9 commits into from
Sep 19, 2023

Conversation

LinkunGao
Copy link
Collaborator

@LinkunGao LinkunGao commented Sep 15, 2023

Description:

  • validate metadata_file and field_name: ignore their case, space and underscores
    • useage:
          dataset.list_elements(metadata_file="dataset_description", version="2.0.0")
          dataset.list_elements(metadata_file="datasetdescription", version="2.0.0")
          dataset.list_elements(metadata_file="dataset description", version="2.0.0")
          dataset.get_metadata(metadata_file="dAtasetDescription")
          des_schema = schema.get_schema("dataset Description")
          des_schema.get('subtitle')
          des_schema.get('sub title')
          des_schema.get('Subtitle ')
      

Related issue(s):

#106

Test Environment:

Specify the testing enviroment. e.g. OS, Python version

Copy link
Collaborator

@JialiXu12 JialiXu12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect!

@JialiXu12 JialiXu12 merged commit 4f6f175 into SPARC-FAIR-Codeathon:main Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants