What do you think about JSON-LD language maps for "preferredUsername"?
-
What do you think about JSON-LD language maps for "preferredUsername"?
I.e., preferredUsernameMap.
"preferredUsernameMap": {
"en": "hello",
"fa": "درود",
"ko": "안녕하세요"
} -
What do you think about JSON-LD language maps for "preferredUsername"?
I.e., preferredUsernameMap.
"preferredUsernameMap": {
"en": "hello",
"fa": "درود",
"ko": "안녕하세요"
}@reiver I pretty much like it. -
What do you think about JSON-LD language maps for "preferredUsername"?
I.e., preferredUsernameMap.
"preferredUsernameMap": {
"en": "hello",
"fa": "درود",
"ko": "안녕하세요"
}@reiver@mastodon.social considering that it's a new property as opposed to shoving different types (in this case, an object instead of a string) into an existing property, go nuts.
I don't have any support for language maps at the moment though <img class="not-responsive emoji" src="https://activitypub.space/assets/plugins/nodebb-plugin-emoji/emoji/android/1f613.png?v=4b02b730ff8" title="
" /> -
R relay@relay.mycrowd.ca shared this topic
-
I am asking the question because —
My understanding of JSON-LD (which could be mistaken) is that —
Because "preferredUsername" is (assumingly) a xsd:string, then "preferredUsernameMap" is automatically also valid.
(I.e., the *Map construct is a JSON-LD thing.)
.
-
I am asking the question because —
My understanding of JSON-LD (which could be mistaken) is that —
Because "preferredUsername" is (assumingly) a xsd:string, then "preferredUsernameMap" is automatically also valid.
(I.e., the *Map construct is a JSON-LD thing.)
.
@reiver@mastodon.social yes that makes sense.
But as someone whose software does not consume JSON-LD it is functionally meaningless to me currently

-
Yeah, I did the same, too, initially.
Just treat is as JSON. -
I am asking the question because —
My understanding of JSON-LD (which could be mistaken) is that —
Because "preferredUsername" is (assumingly) a xsd:string, then "preferredUsernameMap" is automatically also valid.
(I.e., the *Map construct is a JSON-LD thing.)
.
@reiver @julian the xMap properties are terms defined as "@/container": "@/language” terms inside the @/context document: https://www.w3.org/ns/activitystreams.jsonld
xsd: has nothing to do with it. "preferredUsernameMap" is not automatically valid; it needs to be defined.
-
What do you think about JSON-LD language maps for "preferredUsername"?
I.e., preferredUsernameMap.
"preferredUsernameMap": {
"en": "hello",
"fa": "درود",
"ko": "안녕하세요"
}@reiver can you post this on https://github.com/w3c/activitypub/issues ?
-
@reiver can you post this on https://github.com/w3c/activitypub/issues ?
Done:
https://github.com/w3c/activitypub/issues/577(Let me know if you need more information added to it.)
-
Done:
https://github.com/w3c/activitypub/issues/577(Let me know if you need more information added to it.)
@reiver perfect tysm