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

Adds missing handling of DataUnionOf in RDF and OWX readers. #70

Merged

Conversation

filippodebortoli
Copy link
Collaborator

Addresses #69.

The related tests in io::owx::reader could be improved, the reason the mishandling could not be detected is that the test io::owx::reader::test::datatype_union() only checks that one type definition appears in the ontology, no matter what its kind is. The test io::rdf::reader::test::datatype_union() seems also not to be informative, as it would in this case just compare the two faulty files.

The writers seemed to already handle this construct properly.

@filippodebortoli filippodebortoli added the bug Something isn't working label Mar 8, 2024
@filippodebortoli filippodebortoli changed the title (fix) adds missing handling of DataUnionOf in RDF and OWX readers. Adds missing handling of DataUnionOf in RDF and OWX readers. Mar 8, 2024
@phillord
Copy link
Owner

phillord commented Mar 8, 2024

Oh, I wasn't expecting you to fix that! I've done (the same) fix on another branch, but it was just to remind me.

Happy for your to merge this. I agree about the tests; they are not comprehensively in testing the right thing. I think we could do with a few more files like family to test a bit more comprehensively.

@filippodebortoli filippodebortoli merged commit 6222654 into phillord:devel Mar 8, 2024
1 check passed
@filippodebortoli filippodebortoli deleted the fixes/data-union-of branch March 8, 2024 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants