LibSBML is a native library for reading, writing and manipulating files and data streams containing the Systems Biology Markup Language (SBML). It offers language bindings for C, C++, C#, Java, JavaScript, MATLAB, Perl, PHP, Python, R and Ruby.
line 8: (10214 [Error]) Outside of a <functionDefinition>, if a <ci> element is the first element within a MathML <apply>, then the <ci>'s value can only be chosen from the set of identifiers of <functionDefinition>s defined in the SBML model.
Reference: L3V2 Section 4.3.2
The formula 'undefined_function()' in the math element of the <assignmentRule> uses 'undefined_function' which is not a function definition id.
However, if a functionDefinition references an undefined function, no such error is reported. Here is an example file:
Calling
checkConsistency
on a document will report references to undefined functions, for example with the following file:Running
validateSBML
will output:However, if a
functionDefinition
references an undefined function, no such error is reported. Here is an example file:What do you think about checking function definitions as well for references to undefined functions?