Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

Latest commit

 

History

History
43 lines (34 loc) · 3.03 KB

README.md

File metadata and controls

43 lines (34 loc) · 3.03 KB

dh_testing

Sandbox for testing the content of various LinkML schema features against DataHarmonizer

Motivated by

Looking good:

MAM: get a better understanding of how DH interfaces are built and deployed to the NMDC submission portal now. May not involve GitHub pages anymore (so checking and sharing dev builds can probably be done with GH pages, instead of Netlify). This repo uses gen-linkml --format json to generate the JSON for the DH interface, not script/linkml.py. Then the DH web content can be served locally or packaged up with yarn dev and webpack. I believe the dependence on using DH as a git submodule will be removed eventually. The consequences of that need to be documented, too.

Therefore, most of these are at least mostly irrelevant now:

Note that there are differences between DH's XXX and LinkML's sheets2linkml. Might be an opportunity for improving sheets2linkml.

Google Sheets Observations

  • All non-string cells in a Google Sheet intended for schemasheets must be protected as string with an initial '. For example, integers, floats, booleans, dates
  • Make sure sheets don't have any merged cells
  • linkml minimum_value and maximum_value must be integers, not floats
    • what can't a *_value be a float? LinkML issue?

TODOs

  • probably skip generating docs with gen-project, unless it's using gen-docs under the hood (ie don't bother with gen-markdown)
  • ValueError: File "", line 254, col 15 Unrecognized ifabsent action for slot 'test_ifabsent': 'replacement string'
    • slot_uri works. learn how to use a string
  • subsets not getting directly generated from dh_testing sheets? See examples examples
  • define test_any_of_enums in sheets?
  • define test_any_of_enums in sheets?
  • define test_structured_pattern in sheets
  • structured pattern doesn't seem to be working