ro-crate icon indicating copy to clipboard operation
ro-crate copied to clipboard

Are Value Objects Allowed?

Open multimeric opened this issue 4 months ago • 10 comments
trafficstars

Value Objects are used in JSON-LD when you want to add some extra detail to a literal such as a type or a language, e.g.

{
  "@id": "./",
  "@type": "Dataset",
  "datePublished": {
    "@type": "http://www.w3.org/2001/XMLSchema#date",
    "@value": "2025-01-01"
  },
  "name": {
      "@value": "My Crate",
      "@language": "en"
    }
}

I can't find mention of this in the spec, but currently crs4/rocrate-validator seems confused by them. You could argue that they should be excluded for simplicity, but removing them also removes a lot of expressiveness.

multimeric avatar Jul 02 '25 05:07 multimeric