-
Notifications
You must be signed in to change notification settings - Fork 99
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
Issue 2037: extend shaclgen.py to add the suffix "Shape" to the generated SHACL shape #2038
Issue 2037: extend shaclgen.py to add the suffix "Shape" to the generated SHACL shape #2038
Conversation
…ated SHACL shape. Signed-off-by: schuberr <robert.schubert@msg.group>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2038 +/- ##
==========================================
+ Coverage 80.67% 80.68% +0.01%
==========================================
Files 107 107
Lines 11921 11949 +28
Branches 3409 3417 +8
==========================================
+ Hits 9617 9641 +24
- Misses 1741 1743 +2
- Partials 563 565 +2 ☔ View full report in Codecov by Sentry. |
…erage. Signed-off-by: schuberr <robert.schubert@msg.group>
Can you make it such that appending |
I will try to find the mechanism to pass CLI parameters to the generator. |
…test coverage." This reverts commit 76157f5.
…rameter. Defaut: no suffix, Signed-off-by: schuberr <robert.schubert@msg.group>
Hi @cmungall But I am struggling with the checks:
|
Signed-off-by: schuberr <robert.schubert@msg.group>
super weird. checking on this because i was the one who proposed making so the cached environment for 3.9 is from here: https://github.com/linkml/linkml/actions/runs/8445452327/job/23132690282 pyshacl is installed: https://github.com/linkml/linkml/actions/runs/8445452327/job/23132690282#step:6:169 it does not seem to be removed in the subsequent call to install pydantic. these runs restore the same cache key: https://github.com/linkml/linkml/actions/runs/8473903961/job/23219220620?pr=2038#step:5:17 but it seems to say "the venv is broken" - https://github.com/linkml/linkml/actions/runs/8473903961/job/23219220620?pr=2038#step:7:9 no idea what that means. pretty sure the fix is to do |
invalidated the caches and it looks like tests are passing now. ya we probs want to change that pydantic install command (or move ahead with deprecating pydantic 1!!!) |
Signed-off-by: schuberr <robert.schubert@msg.group>
Signed-off-by: schuberr <robert.schubert@msg.group>
@sneakers-the-rat: Thanks for making the failing checks running! :) |
The sphinx error messages are a bit opaque but I think what is happening is
that terminusdb was recently moved from a dev requirement to an extra, it
needs to be added to the list of extras to install for doc building.
Sorry you were caught in all this Robert, your PR has nothing to do with it!
Will try and get to this later today
…On Fri, Mar 29, 2024 at 3:21 AM robertschubert ***@***.***> wrote:
@sneakers-the-rat <https://github.com/sneakers-the-rat>: Thanks for
making the failing checks running! :)
—
Reply to this email directly, view it on GitHub
<#2038 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAMMOPYIDJQXXE3RKKDUNTY2UXBHAVCNFSM6AAAAABFMOGYMSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRXGAZTCNRXGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Thanks @cmungall and @sneakers-the-rat |
I'm in easter holiday now for a week but I will of course have a look at the progress here. Could be that I am not able to respond early ;) have a good time! |
figured it out - it was from having the empty string as the default and having "show default" set to can be resolved by removing imo optional params should default to @click.option(
"-s",
"--suffix",
help="Use --suffix to append given string to SHACL class name (e. g. --suffix Shape: Person becomes PersonShape).",
) and then if self.suffix is not None:
class_url += suffix but that's just a style thing i don't use shaclgen so up to you!!!! |
Signed-off-by: schuberr <robert.schubert@msg.group>
Signed-off-by: schuberr <robert.schubert@msg.group>
Signed-off-by: schuberr <robert.schubert@msg.group>
@sneakers-the-rat Thanks for the hint. Changed it and that step is fine now :) |
ready for final review |
Thank you for adding this! |
This PR implements the feature requested in #2037.
Fixes #2037