ro-crate
ro-crate copied to clipboard
Representation of property values that are defined terms
In Recording changes to RO-Crates, we have examples that represent the value of actionStatus like:
"actionStatus": {"@id": "http://schema.org/CompletedActionStatus"}
However, there are some TRE-FX profile examples that use:
"actionStatus": "http://schema.org/CompletedActionStatus"
Are they both correct? And since CompletedActionStatus is defined in the RO-Crate context, isn't the following also correct?
"actionStatus": "CompletedActionStatus"
The first one will be correct, but the second entry is wrong as it will be understood with the full URI as a plain string (this must be my fault!).
Our JSON-LD context do not have the detailed @type: @id mapping, and neither do schema.org, so the third one would kind of also work, but would set the status to the literal string. This is also how schema.org examples would typically be done, however I don't see any examples of actionStatus