-
Notifications
You must be signed in to change notification settings - Fork 28
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
linkml.py
does not generate a schema.js
as expected but a schema.json
#400
Comments
Sorry for the somewhat outdated docs, I'll update that shortly. The DataHarmonizer build cycle has changed. Indeed when run in a /web/templates/[schema name]/ folder, linkml.py just produces a schema.json file from an existing schema.yaml file. (This pattern exists in all the template folders.) This is from a recent correspondence (we have a separate approach with a tabular_to_data.py script but since you already have schema.yaml do this route: Basic steps:
then with command prompt in that file’s template folder, run
This will generate the schema.json file, it also adds a menu item for your specification by adjusting /web/templates/menu.js. To test and run go to DH root folder and type (as documented on github main code page):
To build a stand alone set of JS files in /web/dist/
These can then be zipped or copied separately to wherever you want to make them available. Let me know if this works or if more info needs to be added to it! Then I'll revise docs. Thanks! |
Thank you @ddooley for the fast and detailed answer!
I can add them to PR and you can edit from there. |
added clarifications to new template docs (fixes #400)
added clarifications to new template docs (fixes #400)
Hello!
thank you very much for developing and maintaining this awesome project!
I am starting to work with a LinkML schema that I wanted to convert to be used with DataHarmonizer, but I'm a bit confused.
According to the wiki (https://github.com/cidgoh/DataHarmonizer/wiki/DataHarmonizer-Templates#building-schemajs), I should compile the LinkML schema with the script bundled in the repo or in the release. However, when I'm using the script on my LinkML YAML file, the only output that is produced is a JSON export of the schema (the menu.json is edited though), but no
schema.js
is produced.Indeed, when looking at the code of
linkml.py
, there is no line indicating that a JS file should be written.DataHarmonizer/script/linkml.py
Line 122 in 0e4fbef
I also looked in the Makefile to be sure I did not miss anything, but the rules use also the
linkml.py
script.Do I need to use a different script, or the fork by the NMDC (https://github.com/microbiomedata/DataHarmonizer)?
Thanks and best regards,
The text was updated successfully, but these errors were encountered: