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

Template creation #451

Open
mmongy opened this issue Oct 25, 2024 · 2 comments
Open

Template creation #451

mmongy opened this issue Oct 25, 2024 · 2 comments

Comments

@mmongy
Copy link

mmongy commented Oct 25, 2024

Hi everyone,

I have just a question: is there a way to easily create your own templates and load them in DataHarmonizer? Or at least some documentation to explain what is the purpose of each file in a template directory?

Thanks by advance, Marc.

Edit: My bad, the bulk of the doc is here: https://github.com/cidgoh/DataHarmonizer/wiki/DataHarmonizer-Templates

Edit 2: However, is there a way to generate easily a basic schema.json template file?

@ddooley
Copy link
Collaborator

ddooley commented Oct 26, 2024

Hi,
The web/templates/new/ is a barebones template, and if you are in that folder at the command prompt you can run:

python3 ../../../script/tabular_to_schema.py -m

and this will compile the given schema_core.yaml and schema_slots.tsv and schema_enums.tsv into schema.yaml and schema.json , the last of which DataHarmonizer actually users. The "-m" parameter then also adds the given schema to the DataHarmonizer menu system (via /web/templates/menu.js

Lastly, run yarn in root of DataHarmonizer github, and yarn dev to get local browser view, or yarn build:web to generate DH with schema/templates menu in the /web/dist/ folder.

Hope that helps!

@ddooley
Copy link
Collaborator

ddooley commented Nov 15, 2024

Any followup needed? BTW, in the spring we will be launching the ability of DataHarmonizer to edit and save its own template / schema files. This will vastly simplify this process!

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

No branches or pull requests

2 participants