Welcome to schemas_store’s documentation!

Contents:

Schemas

All schemas:

Schema 04

Main page Schemas

version 001

Нерухоме майно
urn:cav:04000000-8.001
type object
properties
  • totalArea
Загальна площа
Загальна площа будівлі, кв. метри
type number
minimum 0
  • year
Рік будівництва
Рік будівництва, YYYY
type integer
maximum 9999
minimum 1000
  • constructionTechnology
Технологія будівництва
Технологія будівництва
type array
items
type string
enum monolithicFrame, panel, insulatedPanel, brick, other
uniqueItems True
  • floor
Поверх
Поверх
type integer
  • livingArea
Житлова площа
Житлова площа, кв. метри
type number
minimum 0
  • kitchenArea
Площа кухні
Площа кухні, кв. метри
type number
minimum 0
  • landArea
Ділянка
Площа ділянки, сотка
type number
minimum 0
additionalProperties False
definitions

In jsonschema format:

{
    "definitions": {},
    "additionalProperties": false,
    "id": "urn:cav:04000000-8.001",
    "title": "Нерухоме майно",
    "type": "object",
    "properties": {
      "totalArea": {
        "type": "number",
        "title": "Загальна площа",
        "minimum": 0,
        "description": "Загальна площа будівлі, кв. метри"
      },
      "year": {
        "type": "integer",
        "minimum":1000,
        "maximum":9999,
        "title": "Рік будівництва",
        "description": "Рік будівництва, YYYY"
      },
      "constructionTechnology": {
        "type": "array",
        "title": "Технологія будівництва",
        "uniqueItems": true,
        "description": "Технологія будівництва",
        "items": {
          "type": "string",
          "enum": ["monolithicFrame", "panel", "insulatedPanel", "brick", "other"]
        }
      },
      "floor": {
        "type": "integer",
        "title": "Поверх",
        "description": "Поверх"
      },
      "livingArea": {
        "type": "number",
        "minimum": 0,
        "title": "Житлова площа",
        "description": "Житлова площа, кв. метри"
      },
      "kitchenArea": {
        "type": "number",
        "minimum": 0,
        "title": "Площа кухні",
        "description": "Площа кухні, кв. метри"
      },
      "landArea": {
        "type": "number",
        "minimum": 0,
        "title": "Ділянка",
        "description": "Площа ділянки, сотка"
      }
    },
    "required": [
      "totalArea"
    ]
  }

Schema 06

Main page Schemas

version 001

Земельні ділянки
urn:cav:06000000-2.001
type object
properties
  • region
Область
type string
  • district
Район
type string
  • cadastral_number
Кадастровий номер
type string
  • area
Площа, кв.м/га
type integer
minimum 1
exclusiveMinimum False
  • forms_of_land_ownership
Форми власності на землю.
type array
items
type string
enum державна, приватна, комунальна
  • co_owners
Наявність співвласників
type boolean
default False
  • availability_of_utilities
Наявність на ділянці інженерних мереж
type boolean
default True
  • current_use
*Поточне використання *
type boolean
default True
additionalProperties False

In jsonschema format:

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "id": "urn:cav:06000000-2.001",
  "title": "Земельні ділянки",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "region": {
      "title": "Область",
      "type": "string"
    },
    "district": {
      "type": "string",
      "title": "Район"
    },
    "cadastral_number": {
      "title": "Кадастровий номер",
      "type": "string"
    },
    "area": {
      "title": "Площа, кв.м/га",
      "type": "integer",
      "minimum": 1,
      "exclusiveMinimum": false
    },
    "forms_of_land_ownership": {
      "type": "array",
      "title": "Форми власності на землю.",
      "items": {
        "type": "string",
        "enum": ["державна", "приватна", "комунальна"]
      }
    },
    "co_owners": {
      "title": "Наявність співвласників",
      "type": "boolean",
      "default": false
    },
    "availability_of_utilities": {
      "title": "Наявність на ділянці інженерних мереж",
      "type": "boolean",
      "default": true
    },
    "current_use": {
      "title": "Поточне використання ",
      "type": "boolean",
      "default": true
    }
  },
  "required": [
    "region",
    "district",
    "cadastral_number",
    "area",
    "forms_of_land_ownership",
    "co_owners",
    "availability_of_utilities",
    "current_use"
  ]
}

Schema 061

Main page Schemas

version 001

Земельні ресурси України за видами їх цільового призначення
urn:cav:06100000-3.001
type object
properties
  • region
Область
type string
  • district
Район
type string
  • cadastral_number
Кадастровий номер
type string
  • area
Площа, кв.м/га
type integer
minimum 1
exclusiveMinimum False
  • forms_of_land_ownership
Форми власності на землю.
type array
items
type string
enum державна, приватна, комунальна
  • co_owners
Наявність співвласників
type boolean
default False
  • availability_of_utilities
Наявність на ділянці інженерних мереж
type boolean
default True
  • current_use
*Поточне використання *
type boolean
default True
  • city
Місто/Населений пункт
type string
additionalProperties False

In jsonschema format:

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "id": "urn:cav:06100000-3.001",
  "title": "Земельні ресурси України за видами їх цільового призначення",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "region": {
      "title": "Область",
      "type": "string"
    },
    "district": {
      "type": "string",
      "title": "Район"
    },
    "cadastral_number": {
      "title": "Кадастровий номер",
      "type": "string"
    },
    "area": {
      "title": "Площа, кв.м/га",
      "type": "integer",
      "minimum": 1,
      "exclusiveMinimum": false
    },
    "forms_of_land_ownership": {
      "type": "array",
      "title": "Форми власності на землю.",
      "items": {
        "type": "string",
        "enum": ["державна", "приватна", "комунальна"]
      }
    },
    "co_owners": {
      "title": "Наявність співвласників",
      "type": "boolean",
      "default": false
    },
    "availability_of_utilities": {
      "title": "Наявність на ділянці інженерних мереж",
      "type": "boolean",
      "default": true
    },
    "current_use": {
      "title": "Поточне використання ",
      "type": "boolean",
      "default": true
    },
    "city": {
      "title": "Місто/Населений пункт",
      "type": "string"
    }
  },
  "required": [
    "region",
    "district",
    "cadastral_number",
    "area",
    "forms_of_land_ownership",
    "co_owners",
    "availability_of_utilities",
    "current_use",
    "city"
  ]
}

Schema 0612

Main page Schemas

version 001

Землі з іншим призначенням
urn:cav:06120000-9.001
type object
properties
  • region
Область
type string
  • district
Район
type string
  • cadastral_number
Кадастровий номер
type string
  • area
Площа, кв.м/га
type integer
minimum 1
exclusiveMinimum False
  • forms_of_land_ownership
Форми власності на землю.
type array
items
type string
enum державна, приватна, комунальна
  • co_owners
Наявність співвласників
type boolean
default False
  • availability_of_utilities
Наявність на ділянці інженерних мереж
type boolean
default True
  • current_use
*Поточне використання *
type boolean
default True
  • land_ownership
Суб’єкт права власності на землю
type string
additionalProperties False

In jsonschema format:

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "id": "urn:cav:06120000-9.001",
  "title": "Землі з іншим призначенням",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "region": {
      "title": "Область",
      "type": "string"
    },
    "district": {
      "type": "string",
      "title": "Район"
    },
    "cadastral_number": {
      "title": "Кадастровий номер",
      "type": "string"
    },
    "area": {
      "title": "Площа, кв.м/га",
      "type": "integer",
      "minimum": 1,
      "exclusiveMinimum": false
    },
    "forms_of_land_ownership": {
      "type": "array",
      "title": "Форми власності на землю.",
      "items": {
        "type": "string",
        "enum": ["державна", "приватна", "комунальна"]
      }
    },
    "co_owners": {
      "title": "Наявність співвласників",
      "type": "boolean",
      "default": false
    },
    "availability_of_utilities": {
      "title": "Наявність на ділянці інженерних мереж",
      "type": "boolean",
      "default": true
    },
    "current_use": {
      "title": "Поточне використання ",
      "type": "boolean",
      "default": true
    },
    "land_ownership": {
      "title": "Суб'єкт права  власності на землю",
      "type": "string"
    }
  },
  "required": [
    "region",
    "district",
    "cadastral_number",
    "area",
    "forms_of_land_ownership",
    "co_owners",
    "availability_of_utilities",
    "current_use",
    "land_ownership"
  ]
}

Create new schema

For creating new schema first create template on SchemaOnline.

Create schema.

Pattern for new schema 06******-*, it’s means that all items with CAV classification which start with 06 and have’t more specific schema will use it.

Fields for new schema:

  • Region = Kyiv
  • City = Kyiv
  • Availability_owners = True/False

So, open service and write your fields, and then get template.

_images/example_schema_data.png

Example setup for service.

_images/jsonschema_settings.png

Generate schema template and save it in file, with name schema_XXX.json where XXX - is number of version.

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "definitions": {},
    "id": "http://example.com/example.json",
    "properties": {
        "Availability_owners": {
            "id": "/properties/Availability_owners",
            "type": "boolean"
        },
        "City": {
            "id": "/properties/City",
            "type": "string"
        },
        "Region": {
            "id": "/properties/Region",
            "type": "string"
        }
    },
    "type": "object"
}

Edit schema template

Edit template which we create before. Open file with schema and edit fields title, and description.

Validation

For every field we can add basic validation, like maxlength - max length for text field or minlength. For more validation you can read this.

Change ID for schema

For editing main ID in schema get real number from schema pattern and then insert after every number ‘/’, exception is only first two symbols.

001 - Number schema version, set real number.

Examples:

Pattern Schema ID
06******-* urn:cav:06000000-2.001
061*****-* urn:cav:06100000-3.001
0612****-* urn:cav:06120000-9.001

Create new schema for 06*****

Schema fields table.

_images/fields_table.png
For schema with pattern 06***** we need fields:
  • region
  • district
  • cadastral_number
  • area
  • forms_of_land_ownership
  • co_owners
  • availability_of_utilities

Create template using SchemaOnline. Paste fields, and generate template for schema.

_images/06_fields.png

Edit template

Template which we got on previous step

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "region": {
      "type": "string"
    },
    "district": {
      "type": "string"
    },
    "cadastral_number": {
      "type": "string"
    },
    "area": {
      "type": "integer"
    },
    "forms_of_land_ownership": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "co_owners": {
      "type": "boolean"
    },
    "availability_of_utilities": {
      "type": "boolean"
    }
  },
  "required": [
    "region",
    "district",
    "cadastral_number",
    "area",
    "forms_of_land_ownership",
    "co_owners",
    "availability_of_utilities"
  ]
}

Now we can add validation, description, and default value for every field.

We got such a scheme.

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "region": {
      "title": "Область",
      "type": "string"
    },
    "district": {
      "type": "string",
      "title": "Район"
    },
    "cadastral_number": {
      "title": "Кадастровий номер",
      "type": "string"
    },
    "area": {
      "title": "Площа, кв.м/га",
      "type": "integer",
      "minimum": 1,
      "exclusiveMinimum": false
    },
    "forms_of_land_ownership": {
      "type": "array",
      "title": "Форми власності на землю.",
      "items": {
        "type": "string",
        "enum": ["державна", "приватна", "комунальна"]
      }
    },
    "co_owners": {
      "title": "Наявність співвласників",
      "type": "boolean",
      "default": false
    },
    "availability_of_utilities": {
      "title": "Наявність на ділянці інженерних мереж",
      "type": "boolean",
      "default": true
    }
  },
  "required": [
    "region",
    "district",
    "cadastral_number",
    "area",
    "forms_of_land_ownership",
    "co_owners",
    "availability_of_utilities"
  ]
}

Add ID

Pattern for schema is 06******, so ID must look like urn:cav:06******-*.***

Create schema for 061****

Schema fields table.

_images/fields_table.png

We can see that 061***** template has 1 additional field.

Copy previous schema, edit fields, add one more, and edit ID.

Updated schema:

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "id": "urn:cav:06100000-3.001",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "region": {
      "title": "Область",
      "type": "string"
    },
    "district": {
      "type": "string",
      "title": "Район"
    },
    "cadastral_number": {
      "title": "Кадастровий номер",
      "type": "string"
    },
    "area": {
      "title": "Площа, кв.м/га",
      "type": "integer",
      "minimum": 1,
      "exclusiveMinimum": false
    },
    "forms_of_land_ownership": {
      "type": "array",
      "title": "Форми власності на землю.",
      "items": {
        "type": "string",
        "enum": ["державна", "приватна", "комунальна"]
      }
    },
    "co_owners": {
      "title": "Наявність співвласників",
      "type": "boolean",
      "default": false
    },
    "availability_of_utilities": {
      "title": "Наявність на ділянці інженерних мереж",
      "type": "boolean",
      "default": true
    },
    "city": {
      "title": "Місто/Населений пункт",
      "type": "string"
    }
  },
  "required": [
    "region",
    "district",
    "cadastral_number",
    "area",
    "forms_of_land_ownership",
    "co_owners",
    "availability_of_utilities",
    "city"
  ]
}

Indices and tables