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

Added trig unit tests to highlight some current parsing/serializing issues #431

Closed
wants to merge 1 commit into from

Conversation

davechallis
Copy link
Contributor

This adds some TriG unit tests that currently fail (but should pass when issues are resolved).

testGraphParsing currently fails due to the TriG parser treating triples in the default graph with and without enclosing braces as 2 separate contexts, whereas they should both be treated as one.

testRoundTrips tests whether repeatedly parsing/serializing the same data results in a graph containing the same items. Currently this fails due to a combination of the issue mentioned above, and due to an issue with handling QNames in the TriG serializer.

testDefaultGraphSerializesWithoutName checks that triples in the default graph are serialized correctly. Currently this fails, as the default graph is serialized as <None> { ... }.

I'm planning to look into fixes for these, but thought adding some failing unit tests first would be more useful, in case anyone else wants to look at or fix them too.

@gromgull
Copy link
Member

I've rebased this onto current master, and apart from testRoundtrip all tests now pass.

Test RoundTrip fails due to #436 - and it can't really be fixed in 4.2.2 without changing the API somewhere.

I'll push this to 5.0

@gromgull gromgull modified the milestones: rdflib 5.0.0, rdflib 4.2.2 Jan 24, 2017
@gromgull
Copy link
Member

I've added some more commits in #699

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.

2 participants