ТРЕБОВАНИЯ К ПУБЛИКАЦИИ ПАСПОРТА НАБОРА ОТКРЫТЫХ ДАННЫХ В МАШИНОЧИТАЕМОМ ФОРМАТЕ JSON

1) Требования к расположению:

a. Машиночитаемый формат паспорта открытых данных представлен отдельным файлом в формате JSON.

b. Файл имеет название "meta.json".

2) Требования к формату:

a. Соответствие файла стандарту JSON - (http://json.org/json-ru.html).

b. Кодировка файла - "UTF-8".

3) Требование к структуре данных:

a. Соответствие файлу структуры реестра наборов открытых данных - "meta-schema.json" (Содержимое файла "meta-schema.json" приложено ниже).

meta.json (пример)

{

"standardversion": "http://opendata.gosmonitor.ru/standard/3.0",

"identifier": "7712345678-showrooms",

"title": "Список выставочных залов",

"description": "Список выставочных залов с указанием контактных данных

по округам и районам.",

"creator": "Министерство культуры",

"created": "20130401",

"modified": "20130601",

"subject": "Выставка,зал,выставочный зал,культура",

"format": "xml",

"data": [

{

"source": "http://example.com/opendata/7712345678-showrooms/data-

20130601T0000-structure-20130401T0000.xml",

"created": "20130601T0000",

"provenance": "Исправлены незначительные ошибки, добавлены новые

выставочные залы.",

"valid": "201307010",

"structure": "20130401T0000"

},

{

"source": "http://example.com/opendata/7712345678-showrooms/data-

20130601T0000-structure-20130401T0000.xml",

"created": "20130501T0000",

"provenance": "Добавлены новые выставочные залы.",

"valid": "20130601",

"structure": "20130401T0000"

},

{

"source": "http://example.com/opendata/7712345678-showrooms/data-

20130406T0000-structure-20130401T0000.xml",

"created": "20130406T0000",

"provenance": "Исправление критической ошибки.",

"valid": "20130501",

"structure": "20130401T0000"

},

{

"source": "http://example.com/opendata/7712345678-showrooms/data-

20130401T0000-structure-20130401T0000.xml",

"created": "20130401T0000",

"provenance": "Первичная публикация.",

"valid": "20130501",

"structure": "20130401T0000"

}

],

"structure": [

{

"source": "http://example.com/opendata/7712345678-

showrooms/structure-20130401T0000.xsd",

"created": "20130401T0000"

}

],

"publisher": {

"name": "Иванов Иван Иванович",

"phone": "+74951234567",

"mbox": "ivanov@example.com"

}

}

meta-schema.json

{

"$schema": "http://json-schema.org/draft-04/schema#",

"title": "Opendata metadata",

"description": "Opendata metadata.",

"type": "object",

"properties": {

"standardversion": {

"description": "Link to opendata standard version, which corresponds

to current opendata meta.",

"type":"string"

},

"identifier": {

"description": "Opendata identification number.",

"type":"string"

},

"title": {

"description": "Opendata title.",

"type": "string"

},

"description": {

"description": "Opendata description.",

"type": "string"

},

"creator": {

"description": "Opendata owner.",

"type": "string"

},

"created": {

"description": "Date of first opendata publication in ISO 8601

format.",

"type": "string"

},

"modified": {

"description": "Date of last opendata changing in ISO 8601 format.",

"type": "string"

},

"subject": {

"description": "Keywords of the opendata content.",

"type": "string"

},

"format": {

"description": "Opendata format.",

"type": "string"

},

"data": {

"description": "Opendata versions.",

"type": "array",

"minItems": 1,

"items": {

"description": "Opendata.",

"type": "object",

"properties": {

"source": {

"description": "Link to opendata file.",

"type": "string"

},

"created": {

"description": "Date of opendata creation in ISO 8601

format.",

"type": "string"

},

"provenance": {

"description": "Description of changes compared to the

previous opendata version.",

"type": "string"

},

"valid": {

"description": "Date on which opendata will be actual in ISO

8601 format.",

"type": "string"

},

"structure": {

"description": "Creation date of corresponding opendata

structure in ISO 8601 format.",

"type": "string"

}

}

}

},

"structure": {

"description": "Opendata structure versions.",

"type": "array",

"minItems": 1,

"items": {

"description": "Opendata structure.",

"type": "object",

"properties": {

"source": {

"description": "Link to opendata structure file.",

"type": "string"

},

"created": {

"description": "Date of opendata structure creation in ISO

8601 format.",

"type": "string"

}

}

}

},

"publisher": {

"description": "Opendata publisher.",

"type": "object",

"properties": {

"name": {

"description": "Opendata publisher name.",

"type":"string"

},

"phone": {

"description": "Opendata publisher phone number.",

"type": "string"

},

"mbox": {

"description": "Opendata publisher e-mail.",

"type": "string"

}

},

"required": ["name", "phone", "mbox"]

}

},

"required": ["identifier", "title", "description", "creator", "created",

"modified", "subject", "format", "data", "structure", "publisher"]

}