Skip to content

Exemple 4 is incompatible with JSON-LD language maps #13

@HadrienGardeur

Description

@HadrienGardeur

The current example 4 is not valid JSON-LD if the title is defined in the context as a language map:

"title": {
  "@id": "http://schema.org/name",
  "@container": "@language"
}

This returns the following error in the JSON-LD Playground:

jsonld.SyntaxError: Invalid JSON-LD syntax; language map values must be strings.

Duplicating the language (map + language) also feels less than ideal in these examples.

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