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 two xfails related to Example 2 from RDF 1.1 TriG specification #1801

Merged
merged 1 commit into from Apr 13, 2022

Conversation

aucampia
Copy link
Member

@aucampia aucampia commented Apr 10, 2022

Summary of changes

The first xfail occurs during round tripping, TriG seems to be making
some mistake when encoding blank nodes, as it is encoding that "Bob"
knows someone who does not exist. This was reported by @gjhiggins in
#1796 (comment)

The second xfail seems to be related to hextuple parsing, when comparing
the hextuple parsed result of Example 2 with the TriG parsed
graph of Example 2 the graphs are not isomorphic more than 70% of the time, but
sometimes they are isomorphic. Inoticed this while adding the xfail for
the issue @gjhiggins noticed.

Other changes:

  • Added simple_quad to variants tests with HexTuple and TriG format.
  • Added an additional exact_match assert for variants which can be used
    to sidestep some of the known issues with isomorphic graph detection.
    This is useful for graphs with no BNodes.
  • Also added round-tripping for variants/simple_quad.trig.
  • Various changes to ensure determensitic ordering so that it is easier
    to compare things visually and so that tests always do the exact same
    thing in the exact same order.

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.

@aucampia aucampia force-pushed the iwana-20220410T1604-more_variants branch 2 times, most recently from f984004 to e411135 Compare April 11, 2022 16:45
The first xfail occurs during round tripping, TriG seems to be making
some mistake when encoding blank nodes, as it is encoding that "Bob"
knows someone who does not exist. This was reported by @gjhiggins in
RDFLib#1796 (comment)

The second xfail seems to be related to hextuple parsing, when comparing
the hextuple parsed result of Example 2 with the TriG parsed
graph of Example 2 the graphs are not isomorphic more than 70% of the time, but
sometimes they are isomorphic. Inoticed this while adding the xfail for
the issue @gjhiggins noticed.

Other changes:
- Added `simple_quad` to variants tests with HexTuple and TriG format.
- Added an additional exact_match assert for variants which can be used
  to sidestep some of the known issues with isomorphic graph detection.
  This is useful for graphs with no BNodes.
- Also added round-tripping for `variants/simple_quad.trig`.
- Various changes to ensure determensitic ordering so that it is easier
  to compare things visually and so that tests always do the exact same
  thing in the exact same order.
@aucampia aucampia force-pushed the iwana-20220410T1604-more_variants branch from e411135 to e8c3a0e Compare April 11, 2022 16:50
@aucampia aucampia marked this pull request as ready for review April 11, 2022 16:52
@aucampia aucampia merged commit cdaee27 into RDFLib:master Apr 13, 2022
@aucampia aucampia deleted the iwana-20220410T1604-more_variants branch April 14, 2022 09:29
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

1 participant