sbmlteam / libsbml

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.

Home Page:https://sbml.org/software/libsbml

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adding and removing modified times leaves detritus

luciansmith opened this issue · comments

Because of Reasons, I'm adding modified dates to a model, then replacing it with a new modified date. So inbetween, I call 'unsetModifiedDates'. This mostly works, but I end up with a bunch of empty RDF 'Description' objects:

        <rdf:Description rdf:about="#foo">
          <dcterms:modified rdf:parseType="Resource">
            <dcterms:W3CDTF>2019-07-29T10:53:09Z</dcterms:W3CDTF>
          </dcterms:modified>
        </rdf:Description>
        <rdf:Description rdf:about="#foo"/>
        <rdf:Description rdf:about="#foo"/>
        <rdf:Description rdf:about="#foo"/>
        <rdf:Description rdf:about="#foo"/>
        <rdf:Description rdf:about="#foo"/>

Can those be removed as well? I couldn't figure out where they came from.