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.
https://sbml.org/software/libsbml
Other
38 stars 28 forks source link

Adding and removing modified times leaves detritus #354

Open luciansmith opened 8 months ago

luciansmith commented 8 months ago

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.