/
schema.json
45 lines (45 loc) · 1.73 KB
/
schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
"$schema": "http://json-schema.org/schema#",
"$schemaVersion": "0.0.2",
"modelTags": "",
"$id": "https://smart-data-models.github.io/dataModel.Agrifood/AgriPest/schema.json",
"title": "Smart Data Models - Agri Pest",
"description": "This entity contains a harmonised description of an agricultural pest. ",
"type": "object",
"allOf": [
{
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons"
},
{
"$ref": "https://smart-data-models.github.io/dataModel.Agrifood/agrifood-schema.json#/definitions/AgriFood-Commons"
},
{
"properties": {
"type": {
"type": "string",
"enum": [
"AgriPest"
],
"description": "Property. NGSI Entity Type: It has to be AgriPest"
},
"agroVocConcept": {
"type": "string",
"format": "uri",
"description": "Relationship. Model:'http://schema.org/URL'. Reference to the agrovoc term associated with this item"
},
"hasAgriProductType": {
"type": "array",
"description": "Relationship. Model:'http://schema.org/URL'. Reference to the recommended types of product that can be used to treat this pest",
"items": {
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/EntityIdentifierType"
}
}
}
}
],
"required": [
"id",
"type",
"name"
]
}