w3c-ccg / traceability-vocab

A traceability vocabulary for describing relevant Verifiable Credentials and their contents.
https://w3id.org/traceability
Other
35 stars 35 forks source link

Clean up date and datetime usage #942

Closed rhofvendahl closed 3 months ago

rhofvendahl commented 3 months ago

This PR updates term IDs which refer to date/datetime/time as discussed in https://github.com/w3c-ccg/traceability-vocab/issues/593, and also adds appropriate XSD datatypes for additional clarity (as in many cases otherwise relevant term IDs aren't good indicators of the actual type expected) as suggested in https://github.com/w3c-ccg/traceability-vocab/issues/213.

NOTE: in a lot of cases I used https://schema.org/endDate as the term ID. There isn't a property https://schema.org/date, and I think it's fine to have the implication that, in any case where an activity takes some significant duration of time (like harvesting or inspection), the relevant date/datetime should be when the activity is finished. In a few cases where it's clear the property refers to a start of an activity I used https://schema.org/startDate.

Further discussion of XSD datatypes: https://github.com/schemaorg/schemaorg/issues/1781 https://github.com/schemaorg/schemaorg/issues/1748