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

Test for IRIs that share UUIDs #294

Merged
merged 30 commits into from
May 31, 2024
Merged

Conversation

ajnelson-nist
Copy link
Member

This is part of implementing CASE-Examples-QC PR 54.

This PR is built on top of PR 293.

This addresses Issue 264.

This was among shared UUID usages found while reviewing CASE-Examples-QC
PR 54.

A follow-on patch will regenerate Make-managed files.

References:
* ajnelson-nist/CASE-Examples-QC#54
* #264

Signed-off-by: Alex Nelson <[email protected]>
This was among shared UUID usages found while reviewing CASE-Examples-QC
PR 54.

A follow-on patch will regenerate Make-managed files.

References:
* ajnelson-nist/CASE-Examples-QC#54

Signed-off-by: Alex Nelson <[email protected]>
This was among shared UUID usages found while reviewing CASE-Examples-QC
PR 54.

This patch purposefully aligns the two IRIs in case there was a
data-design reason the node appeared in both examples.

A follow-on patch will regenerate Make-managed files.

References:
* ajnelson-nist/CASE-Examples-QC#54

Signed-off-by: Alex Nelson <[email protected]>
This was among shared UUID usages found while reviewing CASE-Examples-QC
PR 54.

A follow-on patch will regenerate Make-managed files.

References:
* ajnelson-nist/CASE-Examples-QC#54

Signed-off-by: Alex Nelson <[email protected]>
This was among shared UUID usages found while reviewing CASE-Examples-QC
PR 54.

A follow-on patch will regenerate Make-managed files.

References:
* ajnelson-nist/CASE-Examples-QC#54

Signed-off-by: Alex Nelson <[email protected]>
This was among shared UUID usages found while reviewing CASE-Examples-QC
PR 54.

A follow-on patch will regenerate Make-managed files.

References:
* ajnelson-nist/CASE-Examples-QC#54

Signed-off-by: Alex Nelson <[email protected]>
This was among shared UUID usages found while reviewing CASE-Examples-QC
PR 54.

A follow-on patch will regenerate Make-managed files.

References:
* ajnelson-nist/CASE-Examples-QC#54

Signed-off-by: Alex Nelson <[email protected]>
The UUID `99d72bac-8c21-11e9-8902-0c4de9c21b53` was copied between two
snippet files.  In `crossover_wmd-users_and_accounts.json`, an email
account IRI and email address IRI shared the UUID, both seeming to be
intended to be for the "Ares Lupin" identity.

In `crossover_wmd-email.json`, the email account IRI from
`crossover_wmd-users_and_accounts.json` was duplicated and used for the
"Harley Quinn" identity, with different attached Facets.

This patch separates the email account nodes for Ares and Harley, on
belief that they are data crafting errors.

This was among shared UUID usages found while reviewing CASE-Examples-QC
PR 54.

A follow-on patch will regenerate Make-managed files.

References:
* ajnelson-nist/CASE-Examples-QC#54

Signed-off-by: Alex Nelson <[email protected]>
The UUID `90652808-7341-40d3-9285-774d865ad3f9` was copied between two
examples.  From review of the Crossover WMD case, it seems a redundant
characterization of the Ares Lupin WhatsApp account was added with a
modified prefix.  The WhatsApp application seemed to have a similar
redundant characterization.  The JSON nodes in the smaller snippet files
were favored.

`90652808-7341-40d3-9285-774d865ad3f9` was also used to identify a
`DigitalAccount` in the Owl Trafficking example pertaining to a
different scenario persona.  The UUID there was replaced.

This was among shared UUID usages found while reviewing CASE-Examples-QC
PR 54.

A follow-on patch will regenerate Make-managed files.

References:
* ajnelson-nist/CASE-Examples-QC#54

Signed-off-by: Alex Nelson <[email protected]>
This was among shared UUID usages found while reviewing CASE-Examples-QC
PR 54.

A follow-on patch will regenerate Make-managed files.

References:
* ajnelson-nist/CASE-Examples-QC#54

Signed-off-by: Alex Nelson <[email protected]>
The UUID `39ff4987-8ae5-47e3-8369-dbd0d5f79398` appeared in the mapped
tool data.  The CASE graph forwarded it to a URL node, and then it
appears there were subsequent copies of the UUID as other example data
was drafted.

This patch removes all occurrences of the UUID from the CASE graph(s),
because it is not clear (to me) whether the mapped object from the
tool's data model corresponds to a UCO `URL` object.  It more appears
(to me) to correspond to a `URLHistory` object.

This was among shared UUID usages found while reviewing CASE-Examples-QC
PR 54.

A follow-on patch will regenerate Make-managed files.

References:
* ajnelson-nist/CASE-Examples-QC#54

Signed-off-by: Alex Nelson <[email protected]>
This was among shared UUID usages found while reviewing CASE-Examples-QC
PR 54.

A follow-on patch will regenerate Make-managed files.

References:
* ajnelson-nist/CASE-Examples-QC#54

Signed-off-by: Alex Nelson <[email protected]>
This was among shared UUID usages found while reviewing CASE-Examples-QC
PR 54.

A follow-on patch will regenerate Make-managed files.

References:
* ajnelson-nist/CASE-Examples-QC#54

Signed-off-by: Alex Nelson <[email protected]>
This was among shared UUID usages found while reviewing CASE-Examples-QC
PR 54.

A follow-on patch will regenerate Make-managed files.

References:
* ajnelson-nist/CASE-Examples-QC#54

Signed-off-by: Alex Nelson <[email protected]>
This patch adds a compilation of all kb graphs as a non-persisted
artifact.  The benefit of this graph is, so far, finding duplicated-node
errors.

This patch ports the workflow update from CASE-Examples PR 132.

This patch is part of realizing CASE-Examples-QC PR 54.

No effects were observed on Make-managed files.

References:
* ajnelson-nist/CASE-Examples-QC#54
* casework/CASE-Examples#132

Signed-off-by: Alex Nelson <[email protected]>
This is part of implementing CASE-Examples-QC PR 54.

No effects were observed on Make-managed files.

References:
* ajnelson-nist/CASE-Examples-QC#54

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

Summary of changes:

  • IRIs that shared UUIDs have been re-spelled.
  • All examples are now aggregated into a file excluded from version control, /examples/kb.ttl. That graph is checked with case_validate.
  • The aggregated kb.ttl is checked for IRIs that share UUIDs, and a Python test raises an error if one is found to be shared.

This is an aggregation of testing implemented in CASE-Examples PRs 132 and 143.

@ajnelson-nist
Copy link
Member Author

This PR is ready for review and merge.

@ajnelson-nist ajnelson-nist marked this pull request as ready for review May 31, 2024 20:26
@ajnelson-nist ajnelson-nist requested a review from a team as a code owner May 31, 2024 20:26
@kchason kchason merged commit 574a8cd into master May 31, 2024
1 check passed
@kchason kchason deleted the BugFix-CASE-Examples-QC-Pull-54 branch May 31, 2024 20:46
Copy link
Contributor

@eoghanscasey eoghanscasey left a comment

Choose a reason for hiding this comment

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

Concur with corrections.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants