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 | |||
|
Загальна площа | ||
Загальна площа будівлі, кв. метри | |||
type | number | ||
minimum | 0 | ||
|
Рік будівництва | ||
Рік будівництва, YYYY | |||
type | integer | ||
maximum | 9999 | ||
minimum | 1000 | ||
|
Технологія будівництва | ||
Технологія будівництва | |||
type | array | ||
items | |||
type | string | ||
enum | monolithicFrame, panel, insulatedPanel, brick, other | ||
uniqueItems | True | ||
|
Поверх | ||
Поверх | |||
type | integer | ||
|
Житлова площа | ||
Житлова площа, кв. метри | |||
type | number | ||
minimum | 0 | ||
|
Площа кухні | ||
Площа кухні, кв. метри | |||
type | number | ||
minimum | 0 | ||
|
Ділянка | ||
Площа ділянки, сотка | |||
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 | |||
|
Область | ||
type | string | ||
|
Район | ||
type | string | ||
|
Кадастровий номер | ||
type | string | ||
|
Площа, кв.м/га | ||
type | integer | ||
minimum | 1 | ||
exclusiveMinimum | False | ||
|
Форми власності на землю. | ||
type | array | ||
items | |||
type | string | ||
enum | державна, приватна, комунальна | ||
|
Наявність співвласників | ||
type | boolean | ||
default | False | ||
|
Наявність на ділянці інженерних мереж | ||
type | boolean | ||
default | True | ||
|
*Поточне використання * | ||
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 | |||
|
Область | ||
type | string | ||
|
Район | ||
type | string | ||
|
Кадастровий номер | ||
type | string | ||
|
Площа, кв.м/га | ||
type | integer | ||
minimum | 1 | ||
exclusiveMinimum | False | ||
|
Форми власності на землю. | ||
type | array | ||
items | |||
type | string | ||
enum | державна, приватна, комунальна | ||
|
Наявність співвласників | ||
type | boolean | ||
default | False | ||
|
Наявність на ділянці інженерних мереж | ||
type | boolean | ||
default | True | ||
|
*Поточне використання * | ||
type | boolean | ||
default | True | ||
|
Місто/Населений пункт | ||
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 | |||
|
Область | ||
type | string | ||
|
Район | ||
type | string | ||
|
Кадастровий номер | ||
type | string | ||
|
Площа, кв.м/га | ||
type | integer | ||
minimum | 1 | ||
exclusiveMinimum | False | ||
|
Форми власності на землю. | ||
type | array | ||
items | |||
type | string | ||
enum | державна, приватна, комунальна | ||
|
Наявність співвласників | ||
type | boolean | ||
default | False | ||
|
Наявність на ділянці інженерних мереж | ||
type | boolean | ||
default | True | ||
|
*Поточне використання * | ||
type | boolean | ||
default | True | ||
|
Суб’єкт права власності на землю | ||
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.
Example setup for service.
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.
- 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.
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.
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"
]
}