Adding structure to the SC Dirgha Agama

Today I was looking at SC-Data and figuring out the things that would need to change in order to add the actual division structure to the Dirgha Agama on SuttaCentral. It has four divisions, which were named straightforwardly as “first,” “second,” “third,” and “fourth.” Each one contains a set of sutras, as we find in DN. All is well until we get to the last one, which is a single sutra with twelve chapters. So, the structure ends up nested like this:

 {
  "da-div1": [
    "da1",
    "da2",
    "da3",
    "da4"
  ],
  "da-div2": [
    "da5",
    "da6",
    "da7",
    "da8",
    "da9",
    "da10",
    "da11",
    "da12",
    "da13",
    "da14",
    "da15",
    "da16",
    "da17",
    "da18",
    "da19"
  ],
  "da-div3": [
    "da20",
    "da21",
    "da22",
    "da23",
    "da24",
    "da25",
    "da26",
    "da27",
    "da28",
    "da29"
  ],
  "da-div4": [
    {
      "da30": [
        "da30-1",
        "da30-2",
        "da30-3",
        "da30-4",
        "da30-5",
        "da30-6",
        "da30-7",
        "da30-8",
        "da30-9",
        "da30-10",
        "da30-11",
        "da30-12"
      ]
    }
  ]
}

Does that look okay?

I can see that I will need to add entries to the name file for DA to account for the new entities (divisions and chapters). Is there anything else that would need to be added to make this work on the website?

@HongDa

6 Likes

cc Bhante @sujato who may have some thoughts :blush:

1 Like

Hi @cdpatton Looks like it meets the data structure requirements.

2 Likes