Declaration of word

June 23, 2023 ยท View on GitHub

Declaration

New word types are declared as outlined in DIP-102.

{
  "wordData": {
    "slug": "word",
    "wordTypes": ["wordType"],
    "metaData": {
      "nostr": {
        "stewardPubkey": "c51a542e4f93afe6f45e5bef002f7a0efcc0a47460a736654c0bee5402c482fa",
        "uniqueIDs": {
          "slug": "word"
        }
      }
    }
  },
  "wordTypeData": {
    "oSlug": {
      "singular": "word",
      "plural": "words"
    },
    "oName": {
      "singular": "word",
      "plural": "words"
    },
    "oTitle": {
      "singular": "Word",
      "plural": "Words"
    },
    "propertyPath": "wordData",
    "description": "A node in a graph, formatted in json, with additional requirements and conventions specified according to the DCoSL protocol."
  }
}

NOTE: the above word type (above) may not match the published version (below) due to editing subsequent to publishing.

Publication to nostr

as per DIP-1101

{
    "id": "4a5517d25ebae34b9794f1b8d4dba0681f7ff7297bacbc29de2c915695c53bfe",
    "pubkey": "c51a542e4f93afe6f45e5bef002f7a0efcc0a47460a736654c0bee5402c482fa",
    "created_at": 1686887272,
    "kind": 9902,
    "tags": [
        [
            "c",
            "concept-graph-testnet-2"
        ],
        [
            "t",
            "createWord"
        ],
        [
            "s",
            "word"
        ],
        [
            "w",
            "word"
        ]
    ],
    "content": "{\"wordData\":{\"slug\":\"word\",\"name\":\"word\",\"title\":\"Word\",\"wordTypes\":[\"wordType\"],\"metaData\":{\"nostr\":{\"stewardPubkey\":\"c51a542e4f93afe6f45e5bef002f7a0efcc0a47460a736654c0bee5402c482fa\",\"uniqueIDs\":{\"slug\":\"word\"}}}},\"wordTypeData\":{\"slug\":\"word\",\"name\":\"word\",\"title\":\"word\",\"description\":\"A node in a graph, formatted in json, with additional requirements and conventions specified according to the DCoSL protocol.\"}}",
    "sig": "f3925f65a397f5a9d221f7305ca9e67eb491fc0ceeacef8d8cbb3758b5f06bdd382aea606b4526986c2666c4d3d7f9d0518c696d8d85dc25a107846d2801eabf"
}

Retrieval from nostr

As per DIP 101 (updated for testnet-2), all versions of the above word can be found in nostr (testnet-2) using the following filter:

{
  "since": 0,
  "kinds": [9902],
  "authors": ["c51a542e4f93afe6f45e5bef002f7a0efcc0a47460a736654c0bee5402c482fa"],
  "#c": ["concept-graph-testnet-2"],
  "#w": ["word"],
}

or

{
  "ids": ["4a5517d25ebae34b9794f1b8d4dba0681f7ff7297bacbc29de2c915695c53bfe"],
}

References