We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
parse . serialize == id
Discussion moved from #67 (comment) .
serialize . parse == id
Something like this would be a good property check for all three Ntriples, Turtle and RDF/XML formats.
Ideally we'd have:
Since we use the generator instances we already have for RDF graphs in rdf4h. i.e.
Use the Arbitrary instances in testsuite/tests/Data/RDF/PropertyTests.hs to generate RDF graphs.
Arbitrary
testsuite/tests/Data/RDF/PropertyTests.hs
Serialise the graph to NTriples, Turle and RDF/XML formats.
Parse that data back into RDF graphs in Haskell.
Check the graphs are equivalent.
As you say @wismill , it comes down the how equivalence check is performed. We do have isIsomorphic and isGraphIsomorphic in https://github.com/robstewart57/rdf4h/blob/master/src/Data/RDF/Query.hs .
isIsomorphic
isGraphIsomorphic
The problem we have with property based testing of serialize . parse == id, is that we'd need predefined NTriples, Turtle and RDF/XML inputs to parse.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Discussion moved from #67 (comment) .
Something like this would be a good property check for all three Ntriples, Turtle and RDF/XML formats.
Ideally we'd have:
Since we use the generator instances we already have for RDF graphs in rdf4h. i.e.
Use the
Arbitrary
instances intestsuite/tests/Data/RDF/PropertyTests.hs
to generate RDF graphs.Serialise the graph to NTriples, Turle and RDF/XML formats.
Parse that data back into RDF graphs in Haskell.
Check the graphs are equivalent.
As you say @wismill , it comes down the how equivalence check is performed. We do have
isIsomorphic
andisGraphIsomorphic
in https://github.com/robstewart57/rdf4h/blob/master/src/Data/RDF/Query.hs .The problem we have with property based testing of
serialize . parse == id
, is that we'd need predefined NTriples, Turtle and RDF/XML inputs to parse.The text was updated successfully, but these errors were encountered: