sys-bio / libOmexMeta

libOmexMeta is a library aimed at providing developer-level support for reading, writing, editing and managing semantic annotations for biosimulation models.
https://sys-bio.github.io/libOmexMeta/
Apache License 2.0
8 stars 6 forks source link

Align XML version between `RDF.to_file` and `RDF.from_file` #135

Open jonrkarr opened 3 years ago

jonrkarr commented 3 years ago

to_file produces XML 1.1, but from_file expects XML 1.0.

jonrkarr commented 3 years ago

As a more concrete suggestion, RDF.to_file could have an option to export with XML version 1.0, which from_file can then read.

jonrkarr commented 3 years ago

I noticed this because our tests utilize round tripping RDF. The previous version (1.2.10) didn't have this issue. to_file produced version 1.0. I worked around this for our tests.