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

query about initial generation of online schema definition #2118

Closed
druimalban opened this issue Mar 12, 2024 · 3 comments
Closed

query about initial generation of online schema definition #2118

druimalban opened this issue Mar 12, 2024 · 3 comments

Comments

@druimalban
Copy link

druimalban commented Mar 12, 2024

I have been developing my own data model, and I'm having a bit of trouble understanding how the initial online schema is generated.

From the makefile, as far as I understand, you do this:

  1. Run linkml gen-project on the meta.yaml, which in turn depends on all of the other yaml definitions, like linkml:types, linkml:units;
  2. Run linkml gen-doc from the project directory, which generates markdown files;
  3. Call mkdocs on the generated markdown files.

However, the calls in meta.yaml are via the imports directive, which, in the default behavior (going by the gen-project help command, I can't see any other behavior), will fetch these from the URL provided.

This suggests to me that, when you were developing LinkML, you bootstrapped the schema somehow, which generated the initial online definition.

I can work around this by generating documentation for each YAML schema (either manually or in a makefile), and putting it on a local web server (some directory like localhost/schema or similar). This is OK for one schema, like your schema.org example, but it becomes increasingly difficult, even with a makefile, for 12 or more different 'child' schemata.

What is the process of generating the schema, in absence of an extant online schema? Is there a way to feed it a directory of YAML schemata which will produce something like w3id.org/linkml?

@turbomam
Copy link
Contributor

Good questions!

I'm going to move this to linkml/linkml where it will be more visible

@turbomam turbomam transferred this issue from linkml/linkml-model May 17, 2024
@turbomam
Copy link
Contributor

Or could we even close this as a duplicate of

@druimalban
Copy link
Author

Yea, I think so, I mostly left it open in case there was engagement on this one instead of that second one. Thanks.

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

3 participants