Skip to content
  • Categories
  • Recent
  • Popular
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 (No Skin)
  • No Skin
Collapse

NodeBB-ActivityPub Bridge Test Instance

  1. Home
  2. Categories
  3. Uncategorized
  4. Just randomly wondered where `contentMap` was defined in the Activity* suite of specs and learned it is here:

Just randomly wondered where `contentMap` was defined in the Activity* suite of specs and learned it is here:

Scheduled Pinned Locked Moved Uncategorized
6 Posts 2 Posters 31 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.
  • darius@friend.campD This user is from outside of this forum
    darius@friend.campD This user is from outside of this forum
    darius@friend.camp
    wrote last edited by
    #1

    Just randomly wondered where `contentMap` was defined in the Activity* suite of specs and learned it is here:

    Link Preview Image
    Activity Streams 2.0

    favicon

    (www.w3.org)

    I did not realize there is also a `nameMap` and a `summaryMap`, since all three properties are defined as natural language properties (formally, that they are tagged in the Activity Vocabulary document with "rdf:langString")

    trwnh@mastodon.socialT 1 Reply Last reply
    0
    • darius@friend.campD darius@friend.camp

      Just randomly wondered where `contentMap` was defined in the Activity* suite of specs and learned it is here:

      Link Preview Image
      Activity Streams 2.0

      favicon

      (www.w3.org)

      I did not realize there is also a `nameMap` and a `summaryMap`, since all three properties are defined as natural language properties (formally, that they are tagged in the Activity Vocabulary document with "rdf:langString")

      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
      #2

      @darius the xMap properties are a json-ld feature to avoid everyone having to do this instead

      content: {@\value: "hello world", @\language: "en"}

      so you do instead

      contentMap: {en: "hello world"}

      and it expands into the prior

      darius@friend.campD 1 Reply Last reply
      0
      • trwnh@mastodon.socialT trwnh@mastodon.social

        @darius the xMap properties are a json-ld feature to avoid everyone having to do this instead

        content: {@\value: "hello world", @\language: "en"}

        so you do instead

        contentMap: {en: "hello world"}

        and it expands into the prior

        darius@friend.campD This user is from outside of this forum
        darius@friend.campD This user is from outside of this forum
        darius@friend.camp
        wrote last edited by
        #3

        @trwnh I continue to not understand the utility of most things json-ld, but there are a lot of things it took me years to understand the utility of so my position is: huh, ok

        trwnh@mastodon.socialT 1 Reply Last reply
        0
        • darius@friend.campD darius@friend.camp

          @trwnh I continue to not understand the utility of most things json-ld, but there are a lot of things it took me years to understand the utility of so my position is: huh, ok

          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
          #4

          @darius jsonld is basically a way to transform any arbitrary json into an entity-attribute-value graph model

          in this case i think the more natural way would have been to just use the @ value and @ language form, but i guess @ signs are scary? idk

          darius@friend.campD 1 Reply Last reply
          0
          • trwnh@mastodon.socialT trwnh@mastodon.social

            @darius jsonld is basically a way to transform any arbitrary json into an entity-attribute-value graph model

            in this case i think the more natural way would have been to just use the @ value and @ language form, but i guess @ signs are scary? idk

            darius@friend.campD This user is from outside of this forum
            darius@friend.campD This user is from outside of this forum
            darius@friend.camp
            wrote last edited by
            #5

            @trwnh some people have very strong preferences about how they want to parse data structures. It is probably less about @ and more about aesthetically not needing to filter an array of objects by their "language" value in order to pluck out the content of a given language from the resultant object. (To me it's all bad and I don't have a particular preference)

            trwnh@mastodon.socialT 1 Reply Last reply
            0
            • darius@friend.campD darius@friend.camp

              @trwnh some people have very strong preferences about how they want to parse data structures. It is probably less about @ and more about aesthetically not needing to filter an array of objects by their "language" value in order to pluck out the content of a given language from the resultant object. (To me it's all bad and I don't have a particular preference)

              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
              #6

              @darius i suppose that's fair. in jsonld you can index on more than just language btw

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


              • Login

              • Login or register to search.
              Powered by NodeBB Contributors
              • First post
                Last post
              0
              • Categories
              • Recent
              • Popular