Skip to content

Clarify what JSON-LD does and doesn't do #11

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

Open
r12a opened this issue Nov 24, 2017 · 1 comment
Open

Clarify what JSON-LD does and doesn't do #11

r12a opened this issue Nov 24, 2017 · 1 comment
Assignees

Comments

@r12a
Copy link
Contributor

r12a commented Nov 24, 2017

3.1.3.2 Create a new datatype in JSON-LD
https://w3c.github.io/string-meta/#langapproach2

I think this section should start by saying that JSON-LD does something similar already, but only for language. Then show the example as JSON-LD, ie. without the dir stuff.

Then add the explanation of why this doesn't always work.

Then make the point that it doesn't support dir, which may look like <show current version of the example>.

But the focus of this section is really language, so this should really just be entre parenthèses.

@aphillips
Copy link
Contributor

Actually, JSON-LD doesn't really do what this section discusses. It provides two things: the ability to add an @language item to a given context (which would be a mechanism for setting a whole document to that language). It also provides the language map feature, which we use in the best practices for localization bits. But it doesn't provide an internationalized string type, which is what this section is talking about. In practice, JSON-LD may be the wrong thing to call out here probably. What is wanted is a low-level type in JSON itself.

@aphillips aphillips self-assigned this Nov 24, 2017
aphillips added a commit that referenced this issue Nov 24, 2017
…d text discussing string internationalization and language maps from JSON-LD 1.1, including links. Fix language tags in language map example.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants