Skip to content

Backport annotations cause gotcha when diffing round-tripped files #357

@bbartley

Description

@bbartley

Our current mechanism for converter tests involves testing the original file with the round-tripped file for an exact match of triples. This creates a complication, since round-tripping adds backport annotations– thus, the original file and its round-trip never exactly match. To get around this, we have to artificially add backport annotations to the original file to ensure it matches the round-tripped file. This is a subtle and annoying gotcha when trying to generate test files for new converter tests.

At the moment, I'm uncertain what is the best solution, but likely it involves some special manipulation of backport annotations by the handle_3to2_conversion and handle_2to3_conversion methods. And the solution in each of these methods will need to be slightly different, since round-tripping starting from SBOL2 may end up with something different than round-tripping starting from SBOL3.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions