{
  "@context": "http://www.w3.org/ns/csvw",
  "dc:title": "Поіменні результати голосування депутатів (Система електронного голосування)",
  "dc:description": "Метадані для набору даних, що складається з 5 пов'язаних ресурсів згідно з рекомендаціями Постанови КМУ №835",
  "tables": [
    {
      "url": "convocations.csv",
      "dc:title": "Дані про скликання",
      "tableSchema": {
        "columns": [
          {
            "name": "uid",
            "titles": "Унікальний ідентифікатор",
            "description": "Вказується унікальний ідентифікатор скликання",
            "datatype": "string",
            "required": true
          },
          {
            "name": "label",
            "titles": "Скликання",
            "description": "Вказується номер та назва скликання. Наприклад: 6 скликання",
            "datatype": "string",
            "required": true
          },
          {
            "name": "dateFrom",
            "titles": "Дата початку скликання",
            "description": "Дата початку скликання, у форматі ISO 8601 (рррр-мм-дд)",
            "datatype": "date",
            "required": true
          },
          {
            "name": "dateUntil",
            "titles": "Дата завершення скликання",
            "description": "Дата закінчення скликання, у форматі ISO 8601 (рррр-мм-дд)",
            "datatype": "date",
            "required": true
          },
          {
            "name": "authorityName",
            "titles": "Орган місцевого самоврядування",
            "description": "Назва органу в якому проводиться засідання",
            "datatype": "string",
            "required": true
          },
          {
            "name": "authorityId",
            "titles": "Код ЄДРПОУ",
            "description": "Код ЄДРПОУ органу",
            "datatype": "string",
            "required": true
          },
          {
            "name": "CATUTTC",
            "titles": "Код КАТОТТГ",
            "description": "Код КАТОТТГ адміністративної одиниці",
            "datatype": "string",
            "required": true
          }
        ],
        "primaryKey": "uid"
      }
    },
    {
      "url": "sessions.csv",
      "dc:title": "Дані про сесії",
      "tableSchema": {
        "columns": [
          {
            "name": "uid",
            "titles": "Унікальний ідентифікатор",
            "description": "Вказується ідентифікатор сесії",
            "datatype": "string",
            "required": true
          },
          {
            "name": "label",
            "titles": "Сесія",
            "description": "Вказується сесія (назва/номер). Наприклад: 3 сесія",
            "datatype": "string",
            "required": true
          },
          {
            "name": "convocationUid",
            "titles": "Ідентифікатор скликання",
            "description": "Ідентифікатор скликання до якого відноситься сесія",
            "datatype": "string",
            "required": true
          },
          {
            "name": "dateFrom",
            "titles": "Дата початку сесії",
            "description": "Дата початку сесії (рррр-мм-дд)",
            "datatype": "date",
            "required": true
          },
          {
            "name": "dateUntil",
            "titles": "Дата завершення сесії",
            "description": "Дата закінчення сесії (рррр-мм-дд)",
            "datatype": "date",
            "required": true
          }
        ],
        "primaryKey": "uid",
        "foreignKeys": [
          {
            "columnReference": "convocationUid",
            "reference": {
              "resource": "convocations.csv",
              "columnReference": "uid"
            }
          }
        ]
      }
    },
    {
      "url": "motions.csv",
      "dc:title": "Дані про порядки денні",
      "tableSchema": {
        "columns": [
          {
            "name": "uid",
            "titles": "Унікальний ідентифікатор",
            "description": "Ідентифікатор питання порядку денного (напр. 2024-09-04-1)",
            "datatype": "string",
            "required": true
          },
          {
            "name": "sessionUid",
            "titles": "Ідентифікатор сесії",
            "description": "Ідентифікатор сесії до якої відноситься порядок денний",
            "datatype": "string",
            "required": true
          },
          {
            "name": "votingIdentifier",
            "titles": "Ідентифікатор особи",
            "description": "Ідентифікатор депутата-ініціатора з набору даних 'Дані про депутатів'",
            "datatype": "string",
            "required": true
          },
          {
            "name": "title",
            "titles": "Питання пленарного засідання",
            "description": "Назва питання пленарного засідання",
            "datatype": "string",
            "required": true
          },
          {
            "name": "number",
            "titles": "Номер питання",
            "description": "Номер питання у порядку денному",
            "datatype": "integer",
            "required": true
          },
          {
            "name": "classification",
            "titles": "Категорія питання",
            "description": "Вказується категорія питання",
            "datatype": "string",
            "required": true
          },
          {
            "name": "date",
            "titles": "Дата пленарного засідання",
            "description": "Дата засідання (рррр-мм-дд)",
            "datatype": "date",
            "required": true
          },
          {
            "name": "sources",
            "titles": "URL-адреси",
            "description": "URL-адреси документів, з яких створено ресурс",
            "datatype": "anyURI",
            "required": false
          }
        ],
        "primaryKey": "uid",
        "foreignKeys": [
          {
            "columnReference": "sessionUid",
            "reference": {
              "resource": "sessions.csv",
              "columnReference": "uid"
            }
          }
        ]
      }
    },
    {
      "url": "voteEvents.csv",
      "dc:title": "Дані про голосування",
      "tableSchema": {
        "columns": [
          {
            "name": "uid",
            "titles": "Унікальний ідентифікатор",
            "description": "Унікальний ідентифікатор події голосування",
            "datatype": "string",
            "required": true
          },
          {
            "name": "motionUid",
            "titles": "Ідентифікатор питання порядку денного",
            "description": "Посилання на uid ресурсу motions",
            "datatype": "string",
            "required": true
          },
          {
            "name": "projectNumber",
            "titles": "Номер проєкту рішення",
            "description": "Вказується номер проєкту рішення (напр. 757/2)",
            "datatype": "string",
            "required": true
          },
          {
            "name": "projectTitle",
            "titles": "Назва проєкту рішення",
            "description": "Назва проєкту рішення",
            "datatype": "string",
            "required": true
          },
          {
            "name": "startDate",
            "titles": "Час початку голосування",
            "description": "Формат ISO 8601 (рррр-мм-ддTгг:хх:сс)",
            "datatype": "dateTime",
            "format": "yyyy-MM-ddTHH:mm:ss",
            "required": true
          },
          {
            "name": "endDate",
            "titles": "Час закінчення голосування",
            "description": "Формат ISO 8601 (рррр-мм-ддTгг:хх:сс)",
            "datatype": "dateTime",
            "format": "yyyy-MM-ddTHH:mm:ss",
            "required": true
          },
          {
            "name": "result",
            "titles": "Результати голосування",
            "description": "Прийнято / Не прийнято / Не голосували / Не розглядали",
            "datatype": "string",
            "required": true
          },
          {
            "name": "votingFor",
            "titles": "Голоси За",
            "description": "Кількість голосів ЗА",
            "datatype": "integer",
            "required": true
          },
          {
            "name": "votingAgainst",
            "titles": "Голоси Проти",
            "description": "Кількість голосів ПРОТИ",
            "datatype": "integer",
            "required": true
          },
          {
            "name": "votingAbstain",
            "titles": "Голоси Утрималися",
            "description": "Кількість голосів УТРИМАЛИСЯ",
            "datatype": "integer",
            "required": true
          },
          {
            "name": "notVoting",
            "titles": "Не голосували",
            "description": "Кількість тих, хто не голосував",
            "datatype": "integer",
            "required": true
          },
          {
            "name": "absent",
            "titles": "Відсутні",
            "description": "Кількість відсутніх",
            "datatype": "integer",
            "required": true
          },
          {
            "name": "textUrl",
            "titles": "Посилання на документ",
            "description": "URL документа (http:// або https://)",
            "datatype": "anyURI",
            "required": true
          },
          {
            "name": "text",
            "titles": "Назва файлу із прийнятим рішенням",
            "description": "Назва файлу в архіві (напр. 757-2.html)",
            "datatype": "string",
            "required": true
          }
        ],
        "primaryKey": "uid",
        "foreignKeys": [
          {
            "columnReference": "motionUid",
            "reference": {
              "resource": "motions.csv",
              "columnReference": "uid"
            }
          }
        ]
      }
    },
    {
      "url": "vote.csv",
      "dc:title": "Персональні голоси",
      "tableSchema": {
        "columns": [
          {
            "name": "uid",
            "titles": "Унікальний ідентифікатор",
            "description": "Посилання на голосування (uid з voteEvents)",
            "datatype": "string",
            "required": true
          },
          {
            "name": "voterUid",
            "titles": "Ідентифікатор учасника голосування",
            "description": "Ідентифікатор депутата з набору даних про депутатів",
            "datatype": "string",
            "required": true
          },
          {
            "name": "result",
            "titles": "Результат голосування",
            "description": "За / Проти / Утримався / Не голосував / Відсутній",
            "datatype": "string",
            "required": true
          }
        ],
        "foreignKeys": [
          {
            "columnReference": "uid",
            "reference": {
              "resource": "voteEvents.csv",
              "columnReference": "uid"
            }
          }
        ]
      }
    }
  ]
}
