42 Une paire propriété-valeur

https://w3id.org/class/redaktor/PropertyValue

JSON

Inbox

Definition

Mastodon supporte des champs de profil arbitraires contenant des paires nom-valeur. Ceci est mis en œuvre en utilisant la propriété attachment sur les objets actor, avec des objets dans le tableau ayant un type de PropertyValue et une propriété value, tous deux de l'espace de noms schema.org.
schema.org/PropertyValue

Example

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "PropertyValue": "schema:PropertyValue",
      "value": "schema:value"
    }
  ],
  "id": "https://mastodon.social/users/Gargron",
  "type": "Person",
  "attachment": [
    {
      "type": "PropertyValue",
      "name": "Patreon",
      "value": "<a href="https://www.patreon.com/mastodon" rel="me nofollow noopener noreferrer" target="_blank"><span class="invisible">https://www.</span><span class="">patreon.com/mastodon</span><span class="invisible"></span}"
    },
    {
      "type": "PropertyValue",
      "name": "Homepage",
      "value": "<a href="https://zeonfederated.com" rel="me nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="">zeonfederated.com</span><span class="invisible"></span}"
    }
  ]
}