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

Add more tests for graph_diff #1983

Merged
merged 1 commit into from Jun 5, 2022

Conversation

aucampia
Copy link
Member

@aucampia aucampia commented Jun 4, 2022

Summary of changes

This is to confirm that graph_diff does not work with quads.

Other changes:

  • Added support to GraphHelper for collapsing BNodes to a specifc IRI
    when coverting to triple sets, this is in addition to the current
    functionality for ignoring bnodes. This makes it possible to more
    accurately compare Graphs that contain blank nodes.
  • Added assert_cgraph_isomorphic to GraphHelper.
    This method adds some rudementary support for checking if conjunctive
    graphs are isomorphic, it will ignore named graphs that have blank
    nodes as name.

Checklist

  • Checked that there aren't other open pull requests for
    the same change.
  • Checked that all tests and type checking passes.
  • Considered granting push permissions to the PR branch,
    so maintainers can fix minor issues and keep your PR up to date.

@coveralls
Copy link

coveralls commented Jun 4, 2022

Coverage Status

Coverage increased (+0.01%) to 88.525% when pulling a51580f on aucampia:iwana-20220604T2208-quad_diff into e677274 on RDFLib:master.

@aucampia aucampia force-pushed the iwana-20220604T2208-quad_diff branch 2 times, most recently from 9d26fa2 to 1394f60 Compare June 5, 2022 11:34
This is to confirm that `graph_diff` does not work with quads.

Other changes:
- Added support to GraphHelper for collapsing BNodes to a specifc IRI
  when coverting to triple sets, this is in addition to the current
  functionality for ignoring bnodes. This makes it possible to more
  accurately compare Graphs that contain blank nodes.
- Added `assert_cgraph_isomorphic` to GraphHelper.
  This method adds some rudementary support for checking if conjunctive
  graphs are isomorphic, it will ignore name graphs that have blank
  nodes as name.
@aucampia aucampia force-pushed the iwana-20220604T2208-quad_diff branch from 1394f60 to a51580f Compare June 5, 2022 11:38
@aucampia aucampia marked this pull request as ready for review June 5, 2022 11:50
@aucampia aucampia requested a review from a team June 5, 2022 11:50
@aucampia aucampia added the review wanted This indicates that the PR is ready for review label Jun 5, 2022
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

very necessary

@aucampia aucampia merged commit 7d8cab6 into RDFLib:master Jun 5, 2022
@ghost ghost removed the review wanted This indicates that the PR is ready for review label Jun 8, 2022
@aucampia aucampia deleted the iwana-20220604T2208-quad_diff branch June 23, 2022 19:42
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.

None yet

2 participants