Skip to content
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

Cut errant rdf:List artifact #456

Merged
merged 1 commit into from
Aug 18, 2022
Merged

Cut errant rdf:List artifact #456

merged 1 commit into from
Aug 18, 2022

Conversation

ajnelson-nist
Copy link
Contributor

@ajnelson-nist ajnelson-nist commented Aug 18, 2022

This Pull Request is a cleanup to side effects from what is currently suspected to have come from either Issue #406 , from an unrealized effect in the release of rdflib 6.2.0, or both. The submitter believes risk from adoption, to UCO and downstream ontologies, is zero.

Somewhere in the chain between core rdflib, pyshacl, and rdf-toolkit.jar, the normalized Turtle content sometimes picks up redundant rdf:List artifacts that vary between runs. The anonymous list cut in this patch has been seen to waver in how much of it is left as a detached blank node, here and in other CASE examples.

The first patch in this PR removes the orphaned list. Guidance needs to be provided that, as long as this bug in the tool stack persists, the Make-managed generated output should not have it Git-tracked.

Review steps taken:

  • Tracking in Jira ticket OC-266
  • Pull request is against correct branch
  • CI passes in (CASE/UCO) feature branch
  • CI passes in (CASE/UCO) current unstable branch (a5691aa)
  • Impact on SHACL validation reviewed for CASE-Examples
  • Impact on SHACL validation remediated for CASE-Examples
  • Impact on SHACL validation reviewed for casework.github.io
  • Impact on SHACL validation remediated for casework.github.io (N/A)

Somewhere in the chain between core rdflib, pyshacl, and
rdf-toolkit.jar, the normalized Turtle content sometimes picks up
redundant list artifacts that vary between runs.  The anonymous list cut
in this patch has been seen to waver in how much of it is left as a
detached blank node.

This patch removes the orphaned list.  Guidance needs to be provided
that, as long as this bug in the tool stack persists, the Make-managed
generated output should not have it Git-tracked.

References:
* #406

Signed-off-by: Alex Nelson <[email protected]>
@ajnelson-nist ajnelson-nist added this to the UCO 1.0.0 milestone Aug 18, 2022
@ajnelson-nist ajnelson-nist changed the title Cut errant rdf:list artifact Cut errant rdf:List artifact Aug 18, 2022
ajnelson-nist added a commit to casework/casework.github.io that referenced this pull request Aug 18, 2022
No effects were observed on Make-managed files.

References:
* ucoProject/UCO#424
* ucoProject/UCO#456

Signed-off-by: Alex Nelson <[email protected]>
ajnelson-nist added a commit to casework/CASE-Examples that referenced this pull request Aug 18, 2022
This is the result of running `make`, seeing errant changes as reported
in UCO PR 456, and going through and removing all generated `rdf:List`
occurrences found with this command:

    grep -R 'rdf:first' *

References:
ucoProject/UCO#456
Signed-off-by: Alex Nelson <[email protected]>
ajnelson-nist added a commit to casework/CASE-Examples that referenced this pull request Aug 18, 2022
This is the result of running `make`, seeing errant changes as reported
in UCO PR 456, and going through and removing all generated `rdf:List`
occurrences found with this command:

    grep -R 'rdf:first' *

References:
* ucoProject/UCO#456

Signed-off-by: Alex Nelson <[email protected]>
@ajnelson-nist
Copy link
Contributor Author

I am aware this can potentially cause some merge conflicts for incoming proposals to UCO's develop branch. However, those conflicts will be on whether these errant, orphan rdf:List entries should exist, and to what degree, which I hope we agree justifies keeping them out of the generated results.

@b0bkaT b0bkaT merged commit 0b74ae5 into develop Aug 18, 2022
@ajnelson-nist ajnelson-nist deleted the Feature-Issue-406-cleanup branch August 22, 2022 15:54
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