forked from bimspot/xeokit-metadata
-
Notifications
You must be signed in to change notification settings - Fork 5
/
MetaModel.schema.json
91 lines (91 loc) · 2.49 KB
/
MetaModel.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{
"definitions": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://github.com/bimspot/xeokit-metadata-utils",
"type": "object",
"title": "JSON Schema for the metadata json used by the xeokit-sdk.",
"required": [
"id",
"projectId",
"metaObjects"
],
"properties": {
"id": {
"$id": "#/properties/id",
"type": "string",
"title": "The Id field is populated with the name of the project.",
"default": "",
"examples": [
"Geldropseweg 47"
],
"pattern": "^(.*)$"
},
"projectId": {
"$id": "#/properties/projectId",
"type": "string",
"title": "The GlobalId of the project.",
"default": "",
"examples": [
"344O7vICcwH8qAEnwJDjSU"
],
"pattern": "^(.*)$"
},
"metaObjects": {
"$id": "#/properties/metaObjects",
"type": "array",
"title": "A list of all building elements as MetaObjects within the project",
"items": {
"$id": "#/properties/metaObjects/items",
"type": "object",
"title": "The Items Schema",
"required": [
"id",
"name",
"type",
"parent"
],
"properties": {
"id": {
"$id": "#/properties/metaObjects/items/properties/id",
"type": "string",
"title": "The GlobalId of the building element",
"default": "",
"examples": [
"344O7vICcwH8qAEnwJDjSU"
],
"pattern": "^(.*)$"
},
"name": {
"$id": "#/properties/metaObjects/items/properties/name",
"type": "string",
"title": "The Name of the building element",
"default": "",
"examples": [
"Geldropseweg 47"
],
"pattern": "^(.*)$"
},
"type": {
"$id": "#/properties/metaObjects/items/properties/type",
"type": "string",
"title": "The IFC type of the building element, e.g. 'IfcStandardWallCase'",
"default": "",
"examples": [
"IfcProject"
],
"pattern": "^(.*)$"
},
"parent": {
"$id": "#/properties/metaObjects/items/properties/parent",
"type": "null",
"title": "The GlobalId of the parent element if any.",
"default": null,
"examples": [
null
]
}
}
}
}
}
}