-
Notifications
You must be signed in to change notification settings - Fork 98
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
API to Create an English Vocabulary File for a Model #644
Comments
Hi @dselman,
If we do
|
Close! What I was thinking was a new code generator, so we could run it using:
That saves creating a new CLI command etc. The visitor for the code generator would create a voc file for each model file in the model manager. The English Missing Term Generator will allow us to populate those Would you like to work on this one? |
Yes sure.
Just saw the method and edited the YAML file. |
Great, it's all yours! |
BTW - the English Missing Term Generator can also be applied to concept names (property name is optional). |
Don't forget to register the new code generator here: https://github.com/accordproject/concerto-codegen/blob/main/lib/codegen/codegen.js And add doc page here: https://github.com/accordproject/concerto-docs/tree/main/docs/reference/codegen |
Yes, sure will keep in mind. Thank you Dan. :) |
This may be helpful: https://concerto.accordproject.org/docs/reference/codegen/codegen-create-new |
Hi @dselman, I was testing the vocab file generated by the code generator I've written. While testing it on this repl https://replit.com/join/xeqmqanuuo-sanketshevkar
|
Another question, how should I output vocab for |
We must have broken vocabulary management when we added scalars. Do you want me to fix that? We can handle scalars in the vocabulary similar to concepts, just without properties. |
If that's how the output should be. I can try to patch it up in the same PR? |
Ok, thanks - I will leave it to you. |
Any progress on this or an ETA? I have a need for this. |
|
If you create a draft PR with what you have then I can work on it as well. |
I'm trying to raise a PR on concerto-codegen but getting an error, regarding permission
|
Strange. I see other PRs have been created: https://github.com/accordproject/concerto-codegen/branches |
Ahh 😅 |
I have completed the tests, can you review the PR? @dselman |
Documentation for vocabulary code generation |
This has been implemented. |
Feature Request 🛍️
To bootstrap the creation of a vocabulary for a model it would be useful to add an API that uses the default English missing term generator to bootstrap a vocabulary file for all concepts and properties in a model.
Use Case
Users that would like to start using a vocabulary file need an easy path to get started.
Possible Solution
Context
Detailed Description
The text was updated successfully, but these errors were encountered: