Skip to content

Are Value Objects Allowed? #464

@multimeric

Description

@multimeric

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions