@tiangong-lca/tidas-sdk 0.1.44 → 0.1.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/README.md +3 -2
  2. package/dist/core/entities/TidasLifeCycleModel.js +3 -1
  3. package/dist/core/entities/TidasLifeCycleModel.js.map +1 -1
  4. package/dist/core/entities/TidasProcess.js +3 -1
  5. package/dist/core/entities/TidasProcess.js.map +1 -1
  6. package/dist/data/bundled-methodologies.json +3 -3
  7. package/dist/runtime-assets/asset-lock.v1.json +490 -0
  8. package/dist/runtime-assets/eilcd/schemas/ILCD_Common_DataTypes.xsd +3 -3
  9. package/dist/runtime-assets/eilcd/schemas/ILCD_Common_Groups.xsd +2 -2
  10. package/dist/runtime-assets/tidas/methodologies/elementary_flow_taxonomy_extension.v1.json +102 -0
  11. package/dist/runtime-assets/tidas/methodologies/tidas_flows.yaml +2 -2
  12. package/dist/runtime-assets/tidas/schema.lock.json +269 -0
  13. package/dist/runtime-assets/tidas/schemas/tidas_contacts.json +5 -1
  14. package/dist/runtime-assets/tidas/schemas/tidas_data_types.json +245 -30
  15. package/dist/runtime-assets/tidas/schemas/tidas_flowproperties.json +5 -1
  16. package/dist/runtime-assets/tidas/schemas/tidas_flows.json +255 -132
  17. package/dist/runtime-assets/tidas/schemas/tidas_flows_elementary_category.json +71 -1
  18. package/dist/runtime-assets/tidas/schemas/tidas_lciamethods.json +48 -76
  19. package/dist/runtime-assets/tidas/schemas/tidas_lifecyclemodels.json +244 -121
  20. package/dist/runtime-assets/tidas/schemas/tidas_locations_category.json +8 -4
  21. package/dist/runtime-assets/tidas/schemas/tidas_processes.json +200 -116
  22. package/dist/runtime-assets/tidas/schemas/tidas_sources.json +28 -7
  23. package/dist/runtime-assets/tidas/schemas/tidas_unitgroups.json +5 -1
  24. package/dist/runtime-assets/tidas/schemas_zh/tidas_contacts.json +294 -0
  25. package/dist/runtime-assets/tidas/schemas_zh/tidas_contacts_category.json +126 -0
  26. package/dist/runtime-assets/tidas/schemas_zh/tidas_data_types.json +599 -0
  27. package/dist/runtime-assets/tidas/schemas_zh/tidas_flowproperties.json +307 -0
  28. package/dist/runtime-assets/tidas/schemas_zh/tidas_flowproperties_category.json +61 -0
  29. package/dist/runtime-assets/tidas/schemas_zh/tidas_flows.json +845 -0
  30. package/dist/runtime-assets/tidas/schemas_zh/tidas_flows_elementary_category.json +790 -0
  31. package/dist/runtime-assets/tidas/schemas_zh/tidas_flows_product_category.json +59623 -0
  32. package/dist/runtime-assets/tidas/schemas_zh/tidas_lciamethods.json +1266 -0
  33. package/dist/runtime-assets/tidas/schemas_zh/tidas_lciamethods_category.json +685 -0
  34. package/dist/runtime-assets/tidas/schemas_zh/tidas_lifecyclemodels.json +1453 -0
  35. package/dist/runtime-assets/tidas/schemas_zh/tidas_locations_category.json +2597 -0
  36. package/dist/runtime-assets/tidas/schemas_zh/tidas_processes.json +1686 -0
  37. package/dist/runtime-assets/tidas/schemas_zh/tidas_processes_category.json +10795 -0
  38. package/dist/runtime-assets/tidas/schemas_zh/tidas_sources.json +249 -0
  39. package/dist/runtime-assets/tidas/schemas_zh/tidas_sources_category.json +100 -0
  40. package/dist/runtime-assets/tidas/schemas_zh/tidas_unitgroups.json +342 -0
  41. package/dist/runtime-assets/tidas/schemas_zh/tidas_unitgroups_category.json +61 -0
  42. package/dist/schemas/tidas_contacts.schema.d.ts +20 -10
  43. package/dist/schemas/tidas_contacts.schema.d.ts.map +1 -1
  44. package/dist/schemas/tidas_contacts.schema.js +1 -1
  45. package/dist/schemas/tidas_contacts.schema.js.map +1 -1
  46. package/dist/schemas/tidas_data_types.schema.d.ts +10 -6
  47. package/dist/schemas/tidas_data_types.schema.d.ts.map +1 -1
  48. package/dist/schemas/tidas_data_types.schema.js +32 -15
  49. package/dist/schemas/tidas_data_types.schema.js.map +1 -1
  50. package/dist/schemas/tidas_flowproperties.schema.d.ts +28 -14
  51. package/dist/schemas/tidas_flowproperties.schema.d.ts.map +1 -1
  52. package/dist/schemas/tidas_flowproperties.schema.js +1 -1
  53. package/dist/schemas/tidas_flowproperties.schema.js.map +1 -1
  54. package/dist/schemas/tidas_flows.schema.d.ts +40 -22
  55. package/dist/schemas/tidas_flows.schema.d.ts.map +1 -1
  56. package/dist/schemas/tidas_flows.schema.js +29 -3
  57. package/dist/schemas/tidas_flows.schema.js.map +1 -1
  58. package/dist/schemas/tidas_flows_elementary_category.schema.d.ts.map +1 -1
  59. package/dist/schemas/tidas_flows_elementary_category.schema.js +50 -0
  60. package/dist/schemas/tidas_flows_elementary_category.schema.js.map +1 -1
  61. package/dist/schemas/tidas_lciamethods.schema.d.ts +117 -63
  62. package/dist/schemas/tidas_lciamethods.schema.d.ts.map +1 -1
  63. package/dist/schemas/tidas_lciamethods.schema.js +36 -62
  64. package/dist/schemas/tidas_lciamethods.schema.js.map +1 -1
  65. package/dist/schemas/tidas_lifecyclemodels.schema.d.ts +98 -39
  66. package/dist/schemas/tidas_lifecyclemodels.schema.d.ts.map +1 -1
  67. package/dist/schemas/tidas_lifecyclemodels.schema.js +50 -24
  68. package/dist/schemas/tidas_lifecyclemodels.schema.js.map +1 -1
  69. package/dist/schemas/tidas_locations_category.schema.d.ts.map +1 -1
  70. package/dist/schemas/tidas_locations_category.schema.js +4 -3
  71. package/dist/schemas/tidas_locations_category.schema.js.map +1 -1
  72. package/dist/schemas/tidas_processes.schema.d.ts +130 -60
  73. package/dist/schemas/tidas_processes.schema.d.ts.map +1 -1
  74. package/dist/schemas/tidas_processes.schema.js +47 -27
  75. package/dist/schemas/tidas_processes.schema.js.map +1 -1
  76. package/dist/schemas/tidas_sources.schema.d.ts +24 -12
  77. package/dist/schemas/tidas_sources.schema.d.ts.map +1 -1
  78. package/dist/schemas/tidas_sources.schema.js +9 -4
  79. package/dist/schemas/tidas_sources.schema.js.map +1 -1
  80. package/dist/schemas/tidas_unitgroups.schema.d.ts +20 -10
  81. package/dist/schemas/tidas_unitgroups.schema.d.ts.map +1 -1
  82. package/dist/schemas/tidas_unitgroups.schema.js +1 -1
  83. package/dist/schemas/tidas_unitgroups.schema.js.map +1 -1
  84. package/dist/types/tidas_contacts.d.ts +2 -2
  85. package/dist/types/tidas_contacts.d.ts.map +1 -1
  86. package/dist/types/tidas_data_types.d.ts +19 -7
  87. package/dist/types/tidas_data_types.d.ts.map +1 -1
  88. package/dist/types/tidas_flowproperties.d.ts +2 -2
  89. package/dist/types/tidas_flowproperties.d.ts.map +1 -1
  90. package/dist/types/tidas_flows.d.ts +4 -4
  91. package/dist/types/tidas_flows.d.ts.map +1 -1
  92. package/dist/types/tidas_flows_elementary_category.d.ts +40 -0
  93. package/dist/types/tidas_flows_elementary_category.d.ts.map +1 -1
  94. package/dist/types/tidas_lciamethods.d.ts +11 -11
  95. package/dist/types/tidas_lciamethods.d.ts.map +1 -1
  96. package/dist/types/tidas_lifecyclemodels.d.ts +27 -4
  97. package/dist/types/tidas_lifecyclemodels.d.ts.map +1 -1
  98. package/dist/types/tidas_locations_category.d.ts +1 -1
  99. package/dist/types/tidas_locations_category.d.ts.map +1 -1
  100. package/dist/types/tidas_processes.d.ts +18 -4
  101. package/dist/types/tidas_processes.d.ts.map +1 -1
  102. package/dist/types/tidas_sources.d.ts +5 -3
  103. package/dist/types/tidas_sources.d.ts.map +1 -1
  104. package/dist/types/tidas_unitgroups.d.ts +2 -2
  105. package/dist/types/tidas_unitgroups.d.ts.map +1 -1
  106. package/package.json +1 -1
@@ -0,0 +1,249 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "sourceDataSet": {
6
+ "type": "object",
7
+ "properties": {
8
+ "@xmlns:common": {
9
+ "type": "string",
10
+ "const": "http://lca.jrc.it/ILCD/Common"
11
+ },
12
+ "@xmlns": {
13
+ "type": "string",
14
+ "const": "http://lca.jrc.it/ILCD/Source"
15
+ },
16
+ "@xmlns:xsi": {
17
+ "type": "string",
18
+ "const": "http://www.w3.org/2001/XMLSchema-instance"
19
+ },
20
+ "@version": {
21
+ "type": "string",
22
+ "const": "1.1"
23
+ },
24
+ "@xsi:schemaLocation": {
25
+ "type": "string",
26
+ "const": "http://lca.jrc.it/ILCD/Source ../../schemas/ILCD_SourceDataSet.xsd"
27
+ },
28
+ "sourceInformation": {
29
+ "type": "object",
30
+ "properties": {
31
+ "dataSetInformation": {
32
+ "type": "object",
33
+ "properties": {
34
+ "common:UUID": {
35
+ "$ref": "tidas_data_types.json#/$defs/UUID",
36
+ "description": "自动生成该数据集的通用唯一标识符。UUID 与“数据集版本”一起唯一标识每个数据集。"
37
+ },
38
+ "common:shortName": {
39
+ "$ref": "tidas_data_types.json#/$defs/StringMultiLang",
40
+ "description": "“来源引用”的简称,即参考书目或对所使用的内部数据源的引用。"
41
+ },
42
+ "classificationInformation": {
43
+ "type": "object",
44
+ "description": "预计将用于构建数据库的源内容的源的层次结构分类。 (注意:标识源不需要此条目。不过,应避免在同一类中对源使用相同的名称。",
45
+ "properties": {
46
+ "common:classification": {
47
+ "type": "object",
48
+ "properties": {
49
+ "common:class": {
50
+ "type": "object",
51
+ "properties": {
52
+ "@level": {
53
+ "$ref": "tidas_data_types.json#/$defs/LevelType",
54
+ "const": "0"
55
+ },
56
+ "@classId": {
57
+ "type": "string"
58
+ },
59
+ "#text": {
60
+ "type": "string"
61
+ }
62
+ },
63
+ "required": [
64
+ "@level",
65
+ "@classId",
66
+ "#text"
67
+ ],
68
+ "dependencies": {
69
+ "@level": {
70
+ "$ref": "./tidas_sources_category.json#/$defs/Source"
71
+ }
72
+ }
73
+ },
74
+ "common:other": {
75
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
76
+ }
77
+ },
78
+ "required": [
79
+ "common:class"
80
+ ]
81
+ }
82
+ },
83
+ "required": [
84
+ "common:classification"
85
+ ]
86
+ },
87
+ "sourceCitation": {
88
+ "type": "string",
89
+ "description": "参考书目或内部数据源参考。也用于引用数据库和工具、数据集格式、一致性系统、图片等。"
90
+ },
91
+ "publicationType": {
92
+ "type": "string",
93
+ "description": "来源的书目出版类型。",
94
+ "enum": [
95
+ "Undefined",
96
+ "Article in periodical",
97
+ "Chapter in anthology",
98
+ "Monograph",
99
+ "Direct measurement",
100
+ "Oral communication",
101
+ "Personal written communication",
102
+ "Questionnaire",
103
+ "Software or database",
104
+ "Other unpublished and grey literature"
105
+ ]
106
+ },
107
+ "sourceDescriptionOrComment": {
108
+ "$ref": "tidas_data_types.json#/$defs/FTMultiLang",
109
+ "description": "用于附加源描述的自由文本。如果使用已发布的数据,则可能包含出版物和所用介质类型(例如 CD-ROM、硬拷贝)的简短摘要。"
110
+ },
111
+ "referenceToDigitalFile": {
112
+ "description": "链接到源的数字文件(www 地址或 Intranet 路径;相对或绝对路径)。 (信息:允许直接访问进一步文档的完整报告,这些文档也可以数字方式附加到该数据集并与 XML 文件联合交换。)",
113
+ "anyOf": [
114
+ {
115
+ "type": "object",
116
+ "properties": {
117
+ "@uri": {
118
+ "type": "string",
119
+ "format": "uri"
120
+ }
121
+ }
122
+ },
123
+ {
124
+ "type": "array",
125
+ "minItems": 1,
126
+ "items": {
127
+ "type": "object",
128
+ "properties": {
129
+ "@uri": {
130
+ "type": "string",
131
+ "format": "uri"
132
+ }
133
+ }
134
+ }
135
+ }
136
+ ]
137
+ },
138
+ "referenceToContact": {
139
+ "$ref": "tidas_data_types.json#/$defs/GlobalReferenceType",
140
+ "description": "此人或实体或此数据库、数据集格式或合规系统所属的工作组、组织或数据库网络的“联系数据集”。 [注:这并不一定意味着具有法律约束力的关系,也可能是自愿的成员资格。]"
141
+ },
142
+ "referenceToLogo": {
143
+ "$ref": "tidas_data_types.json#/$defs/GlobalReferenceType",
144
+ "description": "报告等中使用的组织或来源的徽标的“源数据集”。"
145
+ },
146
+ "common:other": {
147
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
148
+ }
149
+ },
150
+ "required": [
151
+ "common:UUID",
152
+ "common:shortName",
153
+ "classificationInformation"
154
+ ]
155
+ },
156
+ "common:other": {
157
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
158
+ }
159
+ },
160
+ "required": [
161
+ "dataSetInformation"
162
+ ]
163
+ },
164
+ "administrativeInformation": {
165
+ "type": "object",
166
+ "description": "有关数据集管理和管理的信息。",
167
+ "properties": {
168
+ "dataEntryBy": {
169
+ "type": "object",
170
+ "properties": {
171
+ "common:timeStamp": {
172
+ "$ref": "tidas_data_types.json#/$defs/dateTime",
173
+ "description": "数据集生成的日期和时间戳,通常是自动输入(“上次保存”)。"
174
+ },
175
+ "common:referenceToDataSetFormat": {
176
+ "$ref": "tidas_data_types.json#/$defs/GlobalReferenceType",
177
+ "description": "ILCD 格式所用版本的“源数据集”。如果使用“命名空间”选项将附加数据格式字段集成到数据集文件中,则将给出所使用的格式命名空间。如果数据集携带由其他特定 LCA 格式指定的附加信息,例如,则属于这种情况。其他数据库网络或 LCA 软件。"
178
+ },
179
+ "common:other": {
180
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
181
+ }
182
+ },
183
+ "required": [
184
+ "common:timeStamp",
185
+ "common:referenceToDataSetFormat"
186
+ ]
187
+ },
188
+ "publicationAndOwnership": {
189
+ "type": "object",
190
+ "description": "与数据集的发布和版本管理相关的信息,包括版权和访问限制。",
191
+ "properties": {
192
+ "common:dataSetVersion": {
193
+ "allOf": [
194
+ {
195
+ "$ref": "tidas_data_types.json#/$defs/Version"
196
+ }
197
+ ],
198
+ "description": "数据集的版本号。前两位数字表示主要更新,后两位数字表示较小的修订和错误更正等。第三个三位数字用于在数据集开发过程中自动和内部计数版本。 “数据集版本”与数据集的UUID 一起唯一标识每个数据集。"
199
+ },
200
+ "common:referenceToPrecedingDataSetVersion": {
201
+ "$ref": "tidas_data_types.json#/$defs/GlobalReferenceType",
202
+ "description": "最后一个先前的数据集,已被此版本替换。在TIDAS中,该引用包括前面的数据集URI、UUID和版本号。"
203
+ },
204
+ "common:permanentDataSetURI": {
205
+ "type": "string",
206
+ "format": "uri",
207
+ "description": "该数据集原始的 URI(即互联网地址)。 [注意:这个同样全球唯一的标识符支持用户和软件工具通过互联网识别和检索数据集的原始版本或检查可用的更新。 URI 不得代表现有的 WWW 地址,但它应该是唯一的并指向数据访问点,例如通过将数据所有者的 www 路径与数据集的UUID 相结合,例如http://www.mycompany.com/lca/processes/50f12420-8855-12db-b606-0900210c9a66。]"
208
+ },
209
+ "common:referenceToOwnershipOfDataSet": {
210
+ "$ref": "tidas_data_types.json#/$defs/GlobalReferenceType",
211
+ "description": "拥有该数据集的个人或实体的“联系人数据集”。 (注意:这不一定是数据集的发布者。)"
212
+ },
213
+ "common:other": {
214
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
215
+ }
216
+ },
217
+ "required": [
218
+ "common:dataSetVersion",
219
+ "common:referenceToOwnershipOfDataSet"
220
+ ]
221
+ },
222
+ "common:other": {
223
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
224
+ }
225
+ },
226
+ "required": [
227
+ "dataEntryBy",
228
+ "publicationAndOwnership"
229
+ ]
230
+ },
231
+ "common:other": {
232
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
233
+ }
234
+ },
235
+ "required": [
236
+ "@xmlns:common",
237
+ "@xmlns",
238
+ "@xmlns:xsi",
239
+ "@version",
240
+ "@xsi:schemaLocation",
241
+ "sourceInformation",
242
+ "administrativeInformation"
243
+ ]
244
+ }
245
+ },
246
+ "required": [
247
+ "sourceDataSet"
248
+ ]
249
+ }
@@ -0,0 +1,100 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$defs": {
4
+ "Source": {
5
+ "oneOf": [
6
+ {
7
+ "properties": {
8
+ "@level": {
9
+ "const": "0"
10
+ },
11
+ "@classId": {
12
+ "const": "0"
13
+ },
14
+ "#text": {
15
+ "const": "Images"
16
+ }
17
+ }
18
+ },
19
+ {
20
+ "properties": {
21
+ "@level": {
22
+ "const": "0"
23
+ },
24
+ "@classId": {
25
+ "const": "1"
26
+ },
27
+ "#text": {
28
+ "const": "Data set formats"
29
+ }
30
+ }
31
+ },
32
+ {
33
+ "properties": {
34
+ "@level": {
35
+ "const": "0"
36
+ },
37
+ "@classId": {
38
+ "const": "2"
39
+ },
40
+ "#text": {
41
+ "const": "Databases"
42
+ }
43
+ }
44
+ },
45
+ {
46
+ "properties": {
47
+ "@level": {
48
+ "const": "0"
49
+ },
50
+ "@classId": {
51
+ "const": "3"
52
+ },
53
+ "#text": {
54
+ "const": "Compliance systems"
55
+ }
56
+ }
57
+ },
58
+ {
59
+ "properties": {
60
+ "@level": {
61
+ "const": "0"
62
+ },
63
+ "@classId": {
64
+ "const": "4"
65
+ },
66
+ "#text": {
67
+ "const": "Statistical classifications"
68
+ }
69
+ }
70
+ },
71
+ {
72
+ "properties": {
73
+ "@level": {
74
+ "const": "0"
75
+ },
76
+ "@classId": {
77
+ "const": "5"
78
+ },
79
+ "#text": {
80
+ "const": "Publications and communications"
81
+ }
82
+ }
83
+ },
84
+ {
85
+ "properties": {
86
+ "@level": {
87
+ "const": "0"
88
+ },
89
+ "@classId": {
90
+ "const": "6"
91
+ },
92
+ "#text": {
93
+ "const": "Other source types"
94
+ }
95
+ }
96
+ }
97
+ ]
98
+ }
99
+ }
100
+ }