libOmexMeta is a library aimed at providing developer-level support for reading, writing, editing and managing semantic annotations for biosimulation models.
We realized that our use of W3CDTF was unnecessarily confusing. The correct, standard way of using this is as a type restriction on the string. This means that "add_date_created" needs to be changed. Also, it's confusing to flip the order of the date string. The W3C standard has year-month-day-hour-min-sec, whereas the example uses the (Euro) style string of "day-month-year".
We realized that our use of W3CDTF was unnecessarily confusing. The correct, standard way of using this is as a type restriction on the string. This means that "add_date_created" needs to be changed. Also, it's confusing to flip the order of the date string. The W3C standard has year-month-day-hour-min-sec, whereas the example uses the (Euro) style string of "day-month-year".
With the old spec, .add_date_created("18-09-2020") would produce RDF as follows: http://omex-library.org/MyOmexArchive.omex/MyModel.sbml dc:created [ dc:W3CDTF "18-09-2020" ] .
With the new spec, .add_date_created("2020-09-18") would produce RDF (for sept 18, 2020) http://omex-library.org/MyOmexArchive.omex/MyModel.sbml#model0034 dc:created "2020-09-18"^^dcterms:W3CDTF .