Skip to content

Allow @value, @language and @type simultaneously #13

@gkellogg

Description

@gkellogg

It is currently not possible to have all three of @value, @language and @type. Meaning that for text with embedded mark up, it is impossible to have both language and format (the datatype given in @type) ... neither of which can be reliably introspected from the value.

Any time there is markdown, html, xml, json, yaml, latex, or any other formatting instructions beyond simply print the string to the user, this becomes extremely valuable. Given the usage of those formats on the web, it would enable appropriate management of internationalized texts.

Example:

{
  "description": {
    "@value":"<p>Some <b>description</b></p>",
    "@type": "rdf:XMLLiteral",
    "@language" : "en-latn"
  }
}

Reference: https://lists.w3.org/Archives/Public/public-linked-json/2014Aug/0031.html
Door-Opened-By: json-ld/json-ld.org#583

Original issue: Allow @value, @language and @type simultaneously #585

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions