-
Notifications
You must be signed in to change notification settings - Fork 117
[owl]: erroneous ':' in generated URIs if no default_prefix
#2578
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
Comments
default_prefix
@dalito since you appear to know the code probably involved in this issue, could you please have a look at this issue? Thanks! I'm not blaming you! Your changes are posterior to the version of linkml-runtime (v1.8.3) integrated into the version of linkml (v1.8.7) that is showing this issue. |
@Silvanoc - With which linkml-runtime version did you see this? Did you try the dev version of linkml-runtime? |
I have seen on linkml v1.8.7, which integrates linkml-runtime v1.8.3. I do not know what you mean with "dev version", is it the HEAD of main? |
Yes, with "dev" I meant the current "main" branch. If I remember correctly, there were some changes made after v1.8.3 of linkml-runtime in code that could affect this. I don't have time right now but can have a look later. |
Yes, there were some changes in dev... done by you 😄 That's why I pulled you in. Because it does not look as if you were fixing the issue in your changes, but you appear to know that code. |
@Silvanoc - I made a PR with a fix and marked you as reviewer. This bug has been present since the creation of schemaview.py. |
Add regression test for issue #2578 [^1]. Issue was that SchemaView method `get_uri` was adding an errorneous ':' when no `default_prefix` was being declared in the schema. [^1]: linkml/linkml#2578 Signed-off-by: Silvano Cirujano Cuesta <[email protected]>
Describe the bug
Element URIs contained in generated OWL contain erroneous
:
. For example:https://example.org/my-schema/:MySubclass
for the below provided schema. The issue appears only if nodefault_prefix
is explicitly declared.Version of LinkML you are using
v1.8.7
Please provide a schema (and if applicable, a data file) that replicates the issue
The text was updated successfully, but these errors were encountered: