-
Notifications
You must be signed in to change notification settings - Fork 11
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
Fix internal links in generated documentation generated with ontodoc #548
Conversation
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## master #548 +/- ##
==========================================
- Coverage 65.85% 65.82% -0.04%
==========================================
Files 16 16
Lines 3099 3105 +6
==========================================
+ Hits 2041 2044 +3
- Misses 1058 1061 +3
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This new version does not write out the iris correctly:
As you see, it give IRI: Entropy. The link is the IRI but written as prefLabel. This seems wrong to me. Also, didn't it used to be that one can click from one concept in the document to another? Now all clicking leads to the same https://raw.githubusercontent.com/emmo-repo/EMMO/master/emmo.ttl#IRI ( IRI being anythin as it is not in that file).
asstring() now treats string arguments as strings. If possible, it tries to derive IRI from the string argument. Links now uses relative references by default. This makes links independent of redirections and is much faster. But is it really what we want?
Very well seen! Thanks. That the IRIs ended up being shown with their prefLabel was a logical error, which is solved now. The other issue with the links was actually by design (as requested by BIG-MAP). However, the old behaviour with relative links make much more sense, especially before the redirections works properly. Hence, we are now generating relative links by default. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Description:
PR #543 changed the id of documented concepts from preflabel to the name-part of the IRI. This PR updates internal links accordingly such that they works again.
The implementation became little more involved, because
utils.asstring()
now needs access to the ontology.Type of change:
Checklist:
This checklist can be used as a help for the reviewer.
Comments: