-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add section on cross-syntax language and base direction expression. #35
base: gh-pages
Are you sure you want to change the base?
Conversation
Example 2 sets the language and direction of title and other properties, which would be odd in a normal context; this is where you would more likely use either a top-level For example: {
"@context": ["https://example.com/myapp/v1",
{
"title": {"@container": "@language"},
"authors": {"@container": "@language"},
"publisher": {"@container": "@language"}
}
],
"identifier": "978-111887164-5",
"title": {
"ar-x-d-rtl": "HTML و CSS: تصميم و إنشاء مواقع الويب"
},
"authors": {
"en-x-dir-ltr": "Jon Duckett"
},
"pubDate": "2008-01-01",
"publisher": {
"ar-x-dir-rtl": "مكتبة"
},
"coverImage": "https://example.com/images/html_and_css_cover.jpg",
// etc.
} But, without going there, using a separate |
I think that, before accepting this PR, there should be a discussion with the JSON-LD WG. The text is anticipating decisions that are currently not (yet?) taken... |
Readable version of Manu's proposal: https://raw.githack.com/msporny/string-meta/rdf-dir/index.html |
Much as I like JSON-LD :-), I have reservations the way 2.4 is formulated (but whose trace are also there in the original document at the end of 2.2 recommending JSON-LD). My reading of the section is that the advise is to use JSON-LD 1.x (ie, a version that also has a direction keyword) to express what we need. While it is fine to express the string values using the { "value": "...", "lang": "..", "dir": "..."} idiom but, I believe, requiring the users to include a full-blown I believe the right approach is to define a formalism that is JSON-LD compatible but without any reference to a context file at first. We can then make it clear that those specifications that do want to use JSON-LD can easily do so by either providing a context in the JSON text (and we can go into what that context should look like) or provide the JSON-LD via HTTP. Motto is to 'hide' the -LD part unless people really do want to use linked data. |
B.t.w., if all this gets accepted, providing a short |
That's fine, we can do some sort of "progressive enhancement" approach. So, the progressive enhancement steps are:
I can make those changes when I get a chance to do another edit cycle. |
I agree with @iherman that there’s still so much happening with this elsewhere that I think it’s premature to settle on any one of them in this document. |
This PR adds a section on cross-syntax language and base direction expression to the string-meta specification. The purpose of this section is to advise specification designers on the proper way to express language and base direction in a way that is useful to developers using one or more syntaxes like JSON-LD, JSON, and CBOR.