sys-bio / libOmexMeta

libOmexMeta is a library aimed at providing developer-level support for reading, writing, editing and managing semantic annotations for biosimulation models.
https://sys-bio.github.io/libOmexMeta/
Apache License 2.0
8 stars 6 forks source link

Changes in spec: 4 of four #112

Closed jhgennari closed 3 years ago

jhgennari commented 3 years ago

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 .

CiaranWelsh commented 3 years ago

So is dc the same as dcterms?

CiaranWelsh commented 3 years ago

implemented in e49199700f8bf5c9dd0de15797a3e6336a92fb74 under the assumption that dc is the same as dcterms, please reopen if I am wrong.