Closed robertvi closed 4 months ago
to do:
In the future: fix_sedml functionality to pynml. This is the current implementation of the "get model files" to which the fix_sedml and create_omex could be eventually added.
libraries and tools working with SED-ML can be found here
Can the currently set namespaces be fetched from a SED-ML file?
The BioSimulators utils library for reading, writing, validating and executing SED-ML documents could be helpful. A tutorial for the command-line interface is available here.
Relevant libSEDML issues:
Check functions getElementNamespaces
getNamespaces
and setNamespaces
mentioned in libSEDML issue #158
sedml_file.getElementNamespaces()
<libcombine.XMLNamespaces; proxy of <Swig Object of type 'XMLNamespaces *' at 0x000001F438A8E370> >
sedml_file.getNamespaces()
<libcombine.XMLNamespaces; proxy of <Swig Object of type 'XMLNamespaces *' at 0x000001F438A8EC40> >
sedml_file.setNamespaces()
TypeError: SedBase.setNamespaces() missing 1 required positional argument: 'xmlns'
To do
xmlns:sbml
attribute added), and are deleted after they have been used to create an OMEX file which has been tested
The namespace related errors in this issue are likely due to a missing namespace attribute near the top of the sedml file https://github.com/robertvi/SBMLShowcase/issues/5
We manually fixed this error in a single sedml file by adding the following missing attribute:
xmlns:sbml="http://www.sbml.org/sbml/level2/version2"
see here.It would probably make sense to be able to programmatically add the missing attribute using libsedml if there is a suitable library function available