Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. What do you think about JSON-LD language maps for "preferredUsername"?

What do you think about JSON-LD language maps for "preferredUsername"?

Scheduled Pinned Locked Moved Uncategorized
fedidevjsonldactivitypubactivitystreams
10 Posts 5 Posters 42 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • reiver@mastodon.socialR This user is from outside of this forum
    reiver@mastodon.socialR This user is from outside of this forum
    reiver@mastodon.social
    wrote last edited by
    #1

    What do you think about JSON-LD language maps for "preferredUsername"?

    I.e., preferredUsernameMap.

    "preferredUsernameMap": {
    "en": "hello",
    "fa": "درود",
    "ko": "안녕하세요"
    }

    #FediDev #JSONLD #ActivityPub #ActivityStreams

    i@toot.pouyan.netI julian@activitypub.spaceJ evan@cosocial.caE 3 Replies Last reply
    0
    • reiver@mastodon.socialR reiver@mastodon.social

      What do you think about JSON-LD language maps for "preferredUsername"?

      I.e., preferredUsernameMap.

      "preferredUsernameMap": {
      "en": "hello",
      "fa": "درود",
      "ko": "안녕하세요"
      }

      #FediDev #JSONLD #ActivityPub #ActivityStreams

      i@toot.pouyan.netI This user is from outside of this forum
      i@toot.pouyan.netI This user is from outside of this forum
      i@toot.pouyan.net
      wrote last edited by
      #2
      @reiver I pretty much like it.
      1 Reply Last reply
      0
      • reiver@mastodon.socialR reiver@mastodon.social

        What do you think about JSON-LD language maps for "preferredUsername"?

        I.e., preferredUsernameMap.

        "preferredUsernameMap": {
        "en": "hello",
        "fa": "درود",
        "ko": "안녕하세요"
        }

        #FediDev #JSONLD #ActivityPub #ActivityStreams

        julian@activitypub.spaceJ This user is from outside of this forum
        julian@activitypub.spaceJ This user is from outside of this forum
        julian@activitypub.space
        wrote last edited by
        #3

        @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="😓" />

        1 Reply Last reply
        1
        0
        • R relay@relay.mycrowd.ca shared this topic
        • reiver@mastodon.socialR This user is from outside of this forum
          reiver@mastodon.socialR This user is from outside of this forum
          reiver@mastodon.social
          wrote last edited by
          #4

          @julian

          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.)

          .

          julian@activitypub.spaceJ trwnh@mastodon.socialT 2 Replies Last reply
          1
          0
          • reiver@mastodon.socialR reiver@mastodon.social

            @julian

            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.)

            .

            julian@activitypub.spaceJ This user is from outside of this forum
            julian@activitypub.spaceJ This user is from outside of this forum
            julian@activitypub.space
            wrote last edited by
            #5

            @reiver@mastodon.social yes that makes sense.

            But as someone whose software does not consume JSON-LD it is functionally meaningless to me currently 🙂

            1 Reply Last reply
            1
            0
            • reiver@mastodon.socialR This user is from outside of this forum
              reiver@mastodon.socialR This user is from outside of this forum
              reiver@mastodon.social
              wrote last edited by
              #6

              @julian

              Yeah, I did the same, too, initially.
              Just treat is as JSON.

              1 Reply Last reply
              0
              • reiver@mastodon.socialR reiver@mastodon.social

                @julian

                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.)

                .

                trwnh@mastodon.socialT This user is from outside of this forum
                trwnh@mastodon.socialT This user is from outside of this forum
                trwnh@mastodon.social
                wrote last edited by
                #7

                @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.

                1 Reply Last reply
                1
                0
                • reiver@mastodon.socialR reiver@mastodon.social

                  What do you think about JSON-LD language maps for "preferredUsername"?

                  I.e., preferredUsernameMap.

                  "preferredUsernameMap": {
                  "en": "hello",
                  "fa": "درود",
                  "ko": "안녕하세요"
                  }

                  #FediDev #JSONLD #ActivityPub #ActivityStreams

                  evan@cosocial.caE This user is from outside of this forum
                  evan@cosocial.caE This user is from outside of this forum
                  evan@cosocial.ca
                  wrote last edited by
                  #8

                  @reiver can you post this on https://github.com/w3c/activitypub/issues ?

                  reiver@mastodon.socialR 1 Reply Last reply
                  0
                  • evan@cosocial.caE evan@cosocial.ca

                    @reiver can you post this on https://github.com/w3c/activitypub/issues ?

                    reiver@mastodon.socialR This user is from outside of this forum
                    reiver@mastodon.socialR This user is from outside of this forum
                    reiver@mastodon.social
                    wrote last edited by
                    #9

                    @evan

                    Done:
                    https://github.com/w3c/activitypub/issues/577

                    (Let me know if you need more information added to it.)

                    evan@cosocial.caE 1 Reply Last reply
                    1
                    0
                    • reiver@mastodon.socialR reiver@mastodon.social

                      @evan

                      Done:
                      https://github.com/w3c/activitypub/issues/577

                      (Let me know if you need more information added to it.)

                      evan@cosocial.caE This user is from outside of this forum
                      evan@cosocial.caE This user is from outside of this forum
                      evan@cosocial.ca
                      wrote last edited by
                      #10

                      @reiver perfect tysm

                      1 Reply Last reply
                      1
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups