Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
gkellogg opened this issue Jun 30, 2018 · 3 comments
Closed

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

gkellogg opened this issue Jun 30, 2018 · 3 comments

Comments

@gkellogg
Copy link
Member

gkellogg commented Jun 30, 2018

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

@azaroth42
Copy link
Contributor

This is now Door-Opened-By #11, and they should be discussed together, after the general principle of whether RDF is the data model or not.

@azaroth42
Copy link
Contributor

Propose closing, following proposal to close #11 and WG design considerations discussion.

@azaroth42
Copy link
Contributor

Closing, wontfix, as new features should be compatible with the RDF data model.
WG Resolution: https://www.w3.org/2018/json-ld-wg/Meetings/Minutes/2018/2018-08-03-json-ld#section2-3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants