Skip to content

fix: link generation at hierarchy level 1 fix#450

Merged
recalcitrantsupplant merged 2 commits into
mainfrom
david/link-generation-l1-fix
Dec 29, 2025
Merged

fix: link generation at hierarchy level 1 fix#450
recalcitrantsupplant merged 2 commits into
mainfrom
david/link-generation-l1-fix

Conversation

@recalcitrantsupplant
Copy link
Copy Markdown
Collaborator

this PR removes special logic to not query for link components for hierarchy level one nodeshapes. It was originally thought because there are no nodes other than the focus node we need to retrieve IRIs/curies for at hierarchy level 1, that we do not need to run a query for to get these nodes. In fact, we should be checking for the child node existence, even if they are not part of the link, such that we do not generate unintended links. This change ensures the property paths are checked at all hierarchy levels (not just the current >1) by removing a conditional check, simplifying the code.

PR #448 should be merged first

…aths.py).

Fix shacl.py to build path elements for SequencePath instead of raising an error.
…was originally thought because there are no nodes other than the focus node we need to retrieve IRIs/curies for at hierarchy level 1, that we do not need to run a query for to get these nodes. In fact, we should be checking for the child node existence, even if they are not part of the link. This change ensures the property paths are checked at all hierarchy levels by removing a conditional check, simplifying the code
@recalcitrantsupplant recalcitrantsupplant changed the title fix: ink generation at hierarchy level 1 fix fix: link generation at hierarchy level 1 fix Dec 17, 2025
Copy link
Copy Markdown
Collaborator

@lalewis1 lalewis1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@recalcitrantsupplant recalcitrantsupplant merged commit ed79ec9 into main Dec 29, 2025
8 checks passed
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 4.23.5 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants