Updated prefix handling, more icons #7

Merged
mih merged 1 commit from prefixes into main 2026-02-04 08:40:28 +00:00
Owner

The changes below address #3 for this UI deployment. We need to document this somewhere still

Add IAO prefix to resolve it externally

The issue manifested as an 'obo'-based IRI not resolving externally even
though obo was included in id_resolves_externally. This is why:

The OWL export of the demo-research-assets schema contains the prefix:
'@prefix IAO: http://purl.obolibrary.org/obo/IAO_ .'

shacl-vue processes the OWL, so it receives this prefix. It also receives the 'obo'
prefix. shacl-vue extracts the prefix of a URI based on the longest match of known
prefix URIs, so for the cas of e.g. 'http://purl.obolibrary.org/obo/IAO_0000010',
it matches IAO and not obo. And since IAO was not included in id_resolves_externally
(even though obo was), it did not show that the id is resolvable externally.

This update just adds IAO to the list as a quick fix.

Remove now redundant prefixes from config

With 23b0dbdac7
we have introduced a way for datalad-concepts to export shacl that includes
all prefixes from the 'prefixes' section in the relevant schema. Since the
'prefixes' object in the shacl-vue config serves as a means to include any
additional prefixes not provided by the shacl (or owl), and since that object
did not already include any additional prefixes not included in the schema
prefixes section, we can empty this object. Then we can build it up minimally
with additional prefixes needed by shacl-vue as they arise.

The changes below address https://hub.datalad.org/edu/pool.v0.edu.datalad.org-ui/issues/3 for this UI deployment. We need to document this somewhere still ## Add IAO prefix to resolve it externally The issue manifested as an 'obo'-based IRI not resolving externally even though obo was included in id_resolves_externally. This is why: The OWL export of the demo-research-assets schema contains the prefix: '@prefix IAO: <http://purl.obolibrary.org/obo/IAO_> .' shacl-vue processes the OWL, so it receives this prefix. It also receives the 'obo' prefix. shacl-vue extracts the prefix of a URI based on the longest match of known prefix URIs, so for the cas of e.g. 'http://purl.obolibrary.org/obo/IAO_0000010', it matches IAO and not obo. And since IAO was not included in id_resolves_externally (even though obo was), it did not show that the id is resolvable externally. This update just adds IAO to the list as a quick fix. ## Remove now redundant prefixes from config With [23b0dbdac7](https://github.com/psychoinformatics-de/datalad-concepts/commit/23b0dbdac744c5bb8b9b9ba714a5a4020f4f20d6) we have introduced a way for datalad-concepts to export shacl that includes all prefixes from the 'prefixes' section in the relevant schema. Since the 'prefixes' object in the shacl-vue config serves as a means to include any additional prefixes not provided by the shacl (or owl), and since that object did not already include any additional prefixes not included in the schema prefixes section, we can empty this object. Then we can build it up minimally with additional prefixes needed by shacl-vue as they arise.
The issue manifested as an 'obo'-based IRI not resolving externally even
though obo was included in id_resolves_externally. This is why:

The OWL export of the demo-research-assets schema contains the prefix:
'@prefix IAO: <http://purl.obolibrary.org/obo/IAO_> .'

shacl-vue processes the OWL, so it receives this prefix. It also receives the 'obo'
prefix. shacl-vue extracts the prefix of a URI based on the longest match of known
prefix URIs, so for the cas of e.g. 'http://purl.obolibrary.org/obo/IAO_0000010',
it matches IAO and not obo. And since IAO was not included in id_resolves_externally
(even though obo was), it did not show that the id is resolvable externally.

This update just adds IAO to the list as a quick fix.
With 23b0dbdac7
we have introduced a way for datalad-concepts to export shacl that includes
all prefixes from the 'prefixes' section in the relevant schema. Since the
'prefixes' object in the shacl-vue config serves as a means to include any
additional prefixes not provided by the shacl (or owl), and since that object
did not already include any additional prefixes not included in the schema
prefixes section, we can empty this object. Then we can build it up minimally
with additional prefixes needed by shacl-vue as they arise.
mih approved these changes 2025-09-30 17:45:28 +00:00
mih left a comment

Great, thanks!

Great, thanks!
mih merged commit 96097375e7 into main 2025-09-30 17:45:40 +00:00
mih deleted branch prefixes 2025-09-30 17:45:40 +00:00
Sign in to join this conversation.
No reviewers
mih
No labels
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
edu/pool.v0.edu.datalad.org-ui!7
No description provided.