Open carlosvega opened 3 years ago
libsbml, implements support for the subset of RDF as outlined in section 6 of the SBML specification. It was meant to provide a subset, for which applications not supporting the full RDF set.
I've transferred the issue here, as this issue is independent of the python version.
Although rdf:li
is supported in RDF/XML,rdf:li
is not part of the RDF schema and list elements are written as rdf:_1
and rdf:_2
, I think it would make sense to support XML annotations written as rdf:_1
at least internally for the function appendAnnotation
, so that is then converted to rdf:li
. appendAnnotation
makes a lot of silent decisions without warning the user, for example removing nodes that it doesn't support as seen above.
The following annotation is valid XML but it cannot be added as an annotation. The function removes the
rdf:_1
elements. However, if these are replaced withrdf:li
the annotation works.This is how the annotation looks after being added. You can see that the
Bag
undercreator
is empty:Useful reference regarding RDF/XML. https://www.w3.org/TR/rdf-syntax-grammar/#section-Syntax-list-elements