JSBML is a community-driven project to create a free, open-source, pure Java™ library for reading, writing, and manipulating SBML files (the Systems Biology Markup Language) and data streams. It is an alternative to the mixed Java/native code-based interface provided in libSBML.
But to get the UnknownPackageAttributeValidationFunction working for spatial, it had to be added explicitly in SpatialParser. This should not have been required.
Handling of unknown attributes is already done in
SBMLReader
https://github.com/sbmlteam/jsbml/blob/8ea32d6aef94624f0b9110e8a41a58303b2a8c99/core/src/org/sbml/jsbml/xml/stax/SBMLReader.java#L1196But to get the
UnknownPackageAttributeValidationFunction
working forspatial
, it had to be added explicitly inSpatialParser
. This should not have been required.https://github.com/sbmlteam/jsbml/blob/500be9dac9020b93a3848e67464bf06ada2bfbed/extensions/spatial/src/org/sbml/jsbml/xml/parsers/SpatialParser.java#L252-L254
The problem can be tested by running tests for the rule
spatial-20401
fromSpatialSpeciesPluginConstraints
.