@tiangong-lca/tidas-sdk 0.4.1 → 0.5.0

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 (73) hide show
  1. package/dist/contracts/public-rules-assets/public-rules.source.v1.json +1 -1
  2. package/dist/core/entities/TidasFlow.js +1 -1
  3. package/dist/core/entities/TidasFlow.js.map +1 -1
  4. package/dist/core/validation/json-schema.d.ts +2 -0
  5. package/dist/core/validation/json-schema.d.ts.map +1 -1
  6. package/dist/core/validation/json-schema.js +10 -0
  7. package/dist/core/validation/json-schema.js.map +1 -1
  8. package/dist/runtime-assets/tidas/schema.lock.json +61 -61
  9. package/dist/runtime-assets/tidas/schemas/tidas_contacts.json +110 -49
  10. package/dist/runtime-assets/tidas/schemas/tidas_flowproperties.json +78 -20
  11. package/dist/runtime-assets/tidas/schemas/tidas_flows.json +118 -91
  12. package/dist/runtime-assets/tidas/schemas/tidas_lciamethods.json +1388 -283
  13. package/dist/runtime-assets/tidas/schemas/tidas_lifecyclemodels.json +506 -185
  14. package/dist/runtime-assets/tidas/schemas/tidas_processes.json +296 -115
  15. package/dist/runtime-assets/tidas/schemas/tidas_sources.json +80 -22
  16. package/dist/runtime-assets/tidas/schemas/tidas_unitgroups.json +102 -29
  17. package/dist/runtime-assets/tidas/schemas_zh/tidas_contacts.json +110 -49
  18. package/dist/runtime-assets/tidas/schemas_zh/tidas_flowproperties.json +78 -20
  19. package/dist/runtime-assets/tidas/schemas_zh/tidas_flows.json +118 -91
  20. package/dist/runtime-assets/tidas/schemas_zh/tidas_lciamethods.json +1388 -283
  21. package/dist/runtime-assets/tidas/schemas_zh/tidas_lifecyclemodels.json +506 -185
  22. package/dist/runtime-assets/tidas/schemas_zh/tidas_processes.json +296 -115
  23. package/dist/runtime-assets/tidas/schemas_zh/tidas_sources.json +80 -22
  24. package/dist/runtime-assets/tidas/schemas_zh/tidas_unitgroups.json +102 -29
  25. package/dist/schemas/tidas_contacts.schema.d.ts +14 -2
  26. package/dist/schemas/tidas_contacts.schema.d.ts.map +1 -1
  27. package/dist/schemas/tidas_contacts.schema.js +33 -14
  28. package/dist/schemas/tidas_contacts.schema.js.map +1 -1
  29. package/dist/schemas/tidas_flowproperties.schema.d.ts +13 -2
  30. package/dist/schemas/tidas_flowproperties.schema.d.ts.map +1 -1
  31. package/dist/schemas/tidas_flowproperties.schema.js +26 -8
  32. package/dist/schemas/tidas_flowproperties.schema.js.map +1 -1
  33. package/dist/schemas/tidas_flows.schema.d.ts +10 -3
  34. package/dist/schemas/tidas_flows.schema.d.ts.map +1 -1
  35. package/dist/schemas/tidas_flows.schema.js +31 -37
  36. package/dist/schemas/tidas_flows.schema.js.map +1 -1
  37. package/dist/schemas/tidas_lciamethods.schema.d.ts +13698 -8203
  38. package/dist/schemas/tidas_lciamethods.schema.d.ts.map +1 -1
  39. package/dist/schemas/tidas_lciamethods.schema.js +639 -162
  40. package/dist/schemas/tidas_lciamethods.schema.js.map +1 -1
  41. package/dist/schemas/tidas_lifecyclemodels.schema.d.ts +1658 -25
  42. package/dist/schemas/tidas_lifecyclemodels.schema.d.ts.map +1 -1
  43. package/dist/schemas/tidas_lifecyclemodels.schema.js +204 -120
  44. package/dist/schemas/tidas_lifecyclemodels.schema.js.map +1 -1
  45. package/dist/schemas/tidas_processes.schema.d.ts +785 -11
  46. package/dist/schemas/tidas_processes.schema.d.ts.map +1 -1
  47. package/dist/schemas/tidas_processes.schema.js +185 -87
  48. package/dist/schemas/tidas_processes.schema.js.map +1 -1
  49. package/dist/schemas/tidas_sources.schema.d.ts +13 -2
  50. package/dist/schemas/tidas_sources.schema.d.ts.map +1 -1
  51. package/dist/schemas/tidas_sources.schema.js +26 -8
  52. package/dist/schemas/tidas_sources.schema.js.map +1 -1
  53. package/dist/schemas/tidas_unitgroups.schema.d.ts +22 -10
  54. package/dist/schemas/tidas_unitgroups.schema.d.ts.map +1 -1
  55. package/dist/schemas/tidas_unitgroups.schema.js +35 -20
  56. package/dist/schemas/tidas_unitgroups.schema.js.map +1 -1
  57. package/dist/types/tidas_contacts.d.ts +13 -1
  58. package/dist/types/tidas_contacts.d.ts.map +1 -1
  59. package/dist/types/tidas_flowproperties.d.ts +12 -1
  60. package/dist/types/tidas_flowproperties.d.ts.map +1 -1
  61. package/dist/types/tidas_flows.d.ts +26 -2
  62. package/dist/types/tidas_flows.d.ts.map +1 -1
  63. package/dist/types/tidas_lciamethods.d.ts +119 -16
  64. package/dist/types/tidas_lciamethods.d.ts.map +1 -1
  65. package/dist/types/tidas_lifecyclemodels.d.ts +43 -14
  66. package/dist/types/tidas_lifecyclemodels.d.ts.map +1 -1
  67. package/dist/types/tidas_processes.d.ts +25 -7
  68. package/dist/types/tidas_processes.d.ts.map +1 -1
  69. package/dist/types/tidas_sources.d.ts +12 -1
  70. package/dist/types/tidas_sources.d.ts.map +1 -1
  71. package/dist/types/tidas_unitgroups.d.ts +19 -7
  72. package/dist/types/tidas_unitgroups.d.ts.map +1 -1
  73. package/package.json +1 -1
@@ -618,7 +618,18 @@
618
618
  ]
619
619
  },
620
620
  "referenceToReferenceFlow": {
621
- "$ref": "tidas_data_types.json#/$defs/Int6"
621
+ "anyOf": [
622
+ {
623
+ "$ref": "tidas_data_types.json#/$defs/Int6"
624
+ },
625
+ {
626
+ "type": "array",
627
+ "minItems": 1,
628
+ "items": {
629
+ "$ref": "tidas_data_types.json#/$defs/Int6"
630
+ }
631
+ }
632
+ ]
622
633
  },
623
634
  "functionalUnitOrOther": {
624
635
  "$ref": "tidas_data_types.json#/$defs/StringMultiLang"
@@ -721,24 +732,51 @@
721
732
  ]
722
733
  },
723
734
  "subLocationOfOperationSupplyOrProduction": {
724
- "type": "object",
725
735
  "description": "所述“位置”的一个或多个地理子单位。这样的子单元可以是例如公司平均数据集的采样点、区域平均数据集的国家或国家平均数据集的特定站点。 [注意:对于单个站点数据集,此字段为空,站点在“位置”字段中命名。]",
726
- "properties": {
727
- "@subLocation": {
728
- "$ref": "tidas_locations_category.json"
729
- },
730
- "@latitudeAndLongitude": {
731
- "$ref": "tidas_data_types.json#/$defs/GIS",
732
- "description": "“位置”/“子位置”的地理纬度和经度参考。对于区域类型位置(例如国家、大洲),该字段为空。"
733
- },
734
- "descriptionOfRestrictions": {
735
- "$ref": "tidas_data_types.json#/$defs/FTMultiLang",
736
- "description": "有关该位置其他方面的进一步说明:例如公司和/或站点描述和地址,数据集是否对于“位置”内的某些子区域无效,数据是否仅对指定位置内的某些区域有效,或者某些基本流或中间产品流是否是从另一个地理区域推断出来的。"
736
+ "anyOf": [
737
+ {
738
+ "type": "object",
739
+ "properties": {
740
+ "@subLocation": {
741
+ "$ref": "tidas_locations_category.json"
742
+ },
743
+ "@latitudeAndLongitude": {
744
+ "$ref": "tidas_data_types.json#/$defs/GIS",
745
+ "description": "“位置”/“子位置”的地理纬度和经度参考。对于区域类型位置(例如国家、大洲),该字段为空。"
746
+ },
747
+ "descriptionOfRestrictions": {
748
+ "$ref": "tidas_data_types.json#/$defs/FTMultiLang",
749
+ "description": "有关该位置其他方面的进一步说明:例如公司和/或站点描述和地址,数据集是否对于“位置”内的某些子区域无效,数据是否仅对指定位置内的某些区域有效,或者某些基本流或中间产品流是否是从另一个地理区域推断出来的。"
750
+ },
751
+ "common:other": {
752
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
753
+ }
754
+ }
737
755
  },
738
- "common:other": {
739
- "$ref": "tidas_data_types.json#/$defs/CommonOther"
756
+ {
757
+ "type": "array",
758
+ "minItems": 1,
759
+ "items": {
760
+ "type": "object",
761
+ "properties": {
762
+ "@subLocation": {
763
+ "$ref": "tidas_locations_category.json"
764
+ },
765
+ "@latitudeAndLongitude": {
766
+ "$ref": "tidas_data_types.json#/$defs/GIS",
767
+ "description": "“位置”/“子位置”的地理纬度和经度参考。对于区域类型位置(例如国家、大洲),该字段为空。"
768
+ },
769
+ "descriptionOfRestrictions": {
770
+ "$ref": "tidas_data_types.json#/$defs/FTMultiLang",
771
+ "description": "有关该位置其他方面的进一步说明:例如公司和/或站点描述和地址,数据集是否对于“位置”内的某些子区域无效,数据是否仅对指定位置内的某些区域有效,或者某些基本流或中间产品流是否是从另一个地理区域推断出来的。"
772
+ },
773
+ "common:other": {
774
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
775
+ }
776
+ }
777
+ }
740
778
  }
741
- }
779
+ ]
742
780
  },
743
781
  "common:other": {
744
782
  "$ref": "tidas_data_types.json#/$defs/CommonOther"
@@ -787,49 +825,108 @@
787
825
  "description": "本节数学关系中表示的模型的描述。可以涵盖有关限制、模型优点和缺点等的信息。(注意:另请参阅“注释”字段中提供的有关各个公式级别的信息以及“技术”部分字段中的一般流程描述中提供的信息。)"
788
826
  },
789
827
  "variableParameter": {
790
- "type": "object",
791
- "properties": {
792
- "@name": {
793
- "$ref": "tidas_data_types.json#/$defs/MatV",
794
- "description": "数学模型中变量参数的名称。"
795
- },
796
- "formula": {
797
- "$ref": "tidas_data_types.json#/$defs/MatR",
798
- "description": "数学模型中变量参数的公式。"
799
- },
800
- "meanValue": {
801
- "$ref": "tidas_data_types.json#/$defs/Real",
802
- "description": "评论数学模型中的可变参数。"
803
- },
804
- "minimumValue": {
805
- "$ref": "tidas_data_types.json#/$defs/Real",
806
- "description": "评论数学模型中的可变参数。"
807
- },
808
- "maximumValue": {
809
- "$ref": "tidas_data_types.json#/$defs/Real",
810
- "description": "评论数学模型中的可变参数。"
811
- },
812
- "uncertaintyDistributionType": {
813
- "type": "string",
814
- "description": "定义对该特定对象或参数有效的不确定性分布类型。",
815
- "enum": [
816
- "undefined",
817
- "log-normal",
818
- "normal",
819
- "triangular",
820
- "uniform"
828
+ "anyOf": [
829
+ {
830
+ "type": "object",
831
+ "properties": {
832
+ "@name": {
833
+ "$ref": "tidas_data_types.json#/$defs/MatV",
834
+ "description": "数学模型中变量参数的名称。"
835
+ },
836
+ "formula": {
837
+ "$ref": "tidas_data_types.json#/$defs/MatR",
838
+ "description": "数学模型中变量参数的公式。"
839
+ },
840
+ "meanValue": {
841
+ "$ref": "tidas_data_types.json#/$defs/Real",
842
+ "description": "评论数学模型中的可变参数。"
843
+ },
844
+ "minimumValue": {
845
+ "$ref": "tidas_data_types.json#/$defs/Real",
846
+ "description": "评论数学模型中的可变参数。"
847
+ },
848
+ "maximumValue": {
849
+ "$ref": "tidas_data_types.json#/$defs/Real",
850
+ "description": "评论数学模型中的可变参数。"
851
+ },
852
+ "uncertaintyDistributionType": {
853
+ "type": "string",
854
+ "description": "定义对该特定对象或参数有效的不确定性分布类型。",
855
+ "enum": [
856
+ "undefined",
857
+ "log-normal",
858
+ "normal",
859
+ "triangular",
860
+ "uniform"
861
+ ]
862
+ },
863
+ "relativeStandardDeviation95In": {
864
+ "$ref": "tidas_data_types.json#/$defs/Perc"
865
+ },
866
+ "comment": {
867
+ "$ref": "tidas_data_types.json#/$defs/StringMultiLang"
868
+ },
869
+ "common:other": {
870
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
871
+ }
872
+ },
873
+ "required": [
874
+ "@name"
821
875
  ]
822
876
  },
823
- "relativeStandardDeviation95In": {
824
- "$ref": "tidas_data_types.json#/$defs/Perc"
825
- },
826
- "comment": {
827
- "$ref": "tidas_data_types.json#/$defs/StringMultiLang"
828
- },
829
- "common:other": {
830
- "$ref": "tidas_data_types.json#/$defs/CommonOther"
877
+ {
878
+ "type": "array",
879
+ "minItems": 1,
880
+ "items": {
881
+ "type": "object",
882
+ "properties": {
883
+ "@name": {
884
+ "$ref": "tidas_data_types.json#/$defs/MatV",
885
+ "description": "数学模型中变量参数的名称。"
886
+ },
887
+ "formula": {
888
+ "$ref": "tidas_data_types.json#/$defs/MatR",
889
+ "description": "数学模型中变量参数的公式。"
890
+ },
891
+ "meanValue": {
892
+ "$ref": "tidas_data_types.json#/$defs/Real",
893
+ "description": "评论数学模型中的可变参数。"
894
+ },
895
+ "minimumValue": {
896
+ "$ref": "tidas_data_types.json#/$defs/Real",
897
+ "description": "评论数学模型中的可变参数。"
898
+ },
899
+ "maximumValue": {
900
+ "$ref": "tidas_data_types.json#/$defs/Real",
901
+ "description": "评论数学模型中的可变参数。"
902
+ },
903
+ "uncertaintyDistributionType": {
904
+ "type": "string",
905
+ "description": "定义对该特定对象或参数有效的不确定性分布类型。",
906
+ "enum": [
907
+ "undefined",
908
+ "log-normal",
909
+ "normal",
910
+ "triangular",
911
+ "uniform"
912
+ ]
913
+ },
914
+ "relativeStandardDeviation95In": {
915
+ "$ref": "tidas_data_types.json#/$defs/Perc"
916
+ },
917
+ "comment": {
918
+ "$ref": "tidas_data_types.json#/$defs/StringMultiLang"
919
+ },
920
+ "common:other": {
921
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
922
+ }
923
+ },
924
+ "required": [
925
+ "@name"
926
+ ]
927
+ }
831
928
  }
832
- }
929
+ ]
833
930
  },
834
931
  "common:other": {
835
932
  "$ref": "tidas_data_types.json#/$defs/CommonOther"
@@ -880,32 +977,68 @@
880
977
  "description": "对与一般“LCI 方法原则”的任何偏差的简短描述以及附加解释。特别指未应用所述“归因”或“后果”方法的特定过程/案例。或者偏离了应用“具有归因成分的后果”方法的任何特定规则。此处也可以提及数据收集的“预期应用”。分配的联产品也可以在此处报告。如果没有(定量相关)偏离 LCI 方法原则,则应注明“无”。"
881
978
  },
882
979
  "LCIMethodApproaches": {
883
- "type": "string",
884
980
  "description": "简要说明 LCI 建模中使用的具体方法,例如分配、替代等。对于 LCI 结果和部分终止的系统数据集,这也涵盖了所包含的后台系统中应用的数据。",
885
- "enum": [
886
- "Allocation - market value",
887
- "Allocation - gross calorific value",
888
- "Allocation - net calorific value",
889
- "Allocation - exergetic content",
890
- "Allocation - element content",
891
- "Allocation - mass",
892
- "Allocation - volume",
893
- "Allocation - ability to bear",
894
- "Allocation - marginal causality",
895
- "Allocation - physical causality",
896
- "Allocation - 100% to main function",
897
- "Allocation - other explicit assignment",
898
- "Allocation - equal distribution",
899
- "Substitution - BAT",
900
- "Substitution - average, market price correction",
901
- "Substitution - average, technical properties correction",
902
- "Allocation - recycled content",
903
- "Substitution - recycling potential",
904
- "Substitution - average, no correction",
905
- "Substitution - specific",
906
- "Consequential effects - other",
907
- "Not applicable",
908
- "Other"
981
+ "anyOf": [
982
+ {
983
+ "type": "string",
984
+ "enum": [
985
+ "Allocation - market value",
986
+ "Allocation - gross calorific value",
987
+ "Allocation - net calorific value",
988
+ "Allocation - exergetic content",
989
+ "Allocation - element content",
990
+ "Allocation - mass",
991
+ "Allocation - volume",
992
+ "Allocation - ability to bear",
993
+ "Allocation - marginal causality",
994
+ "Allocation - physical causality",
995
+ "Allocation - 100% to main function",
996
+ "Allocation - other explicit assignment",
997
+ "Allocation - equal distribution",
998
+ "Substitution - BAT",
999
+ "Substitution - average, market price correction",
1000
+ "Substitution - average, technical properties correction",
1001
+ "Allocation - recycled content",
1002
+ "Substitution - recycling potential",
1003
+ "Substitution - average, no correction",
1004
+ "Substitution - specific",
1005
+ "Consequential effects - other",
1006
+ "Not applicable",
1007
+ "Other"
1008
+ ]
1009
+ },
1010
+ {
1011
+ "type": "array",
1012
+ "minItems": 1,
1013
+ "items": {
1014
+ "type": "string",
1015
+ "enum": [
1016
+ "Allocation - market value",
1017
+ "Allocation - gross calorific value",
1018
+ "Allocation - net calorific value",
1019
+ "Allocation - exergetic content",
1020
+ "Allocation - element content",
1021
+ "Allocation - mass",
1022
+ "Allocation - volume",
1023
+ "Allocation - ability to bear",
1024
+ "Allocation - marginal causality",
1025
+ "Allocation - physical causality",
1026
+ "Allocation - 100% to main function",
1027
+ "Allocation - other explicit assignment",
1028
+ "Allocation - equal distribution",
1029
+ "Substitution - BAT",
1030
+ "Substitution - average, market price correction",
1031
+ "Substitution - average, technical properties correction",
1032
+ "Allocation - recycled content",
1033
+ "Substitution - recycling potential",
1034
+ "Substitution - average, no correction",
1035
+ "Substitution - specific",
1036
+ "Consequential effects - other",
1037
+ "Not applicable",
1038
+ "Other"
1039
+ ]
1040
+ }
1041
+ }
909
1042
  ]
910
1043
  },
911
1044
  "deviationsFromLCIMethodApproaches": {
@@ -1016,42 +1149,87 @@
1016
1149
  "description": "“LCIA 方法数据集”可应用于输入和输出部分中的基本流程,即所有这些流程均由相应的 LCIA 方法数据集引用(如果它们具有环境相关性并且为相应流程定义了表征因子)。 [注:如果发明包含一些基本流,其含义与 LCIA 方法数据集中引用的相同,但采用不同的命名法(因此不携带表征因子),或者如果流是在 LCIA 方法数据集中以不同方式处理的总和指示符或流组,则不给出适用性。]"
1017
1150
  },
1018
1151
  "completenessElementaryFlows": {
1019
- "type": "object",
1020
1152
  "description": "从影响的角度来看,该数据集的输入和输出部分中基本过程的完整性,涉及解决给定的单个中点问题领域/影响类别。完整性是指科学知识的最新水平,无论单个基本流程是否以相关方式对相应的中点主题做出贡献,例如ILCD 参考基本过程的基础。 [注:“完整性”声明并不自动意味着相关的 LCIA 方法存在或引用该数据集的基本流程。因此,为了直接适用现有 LCIA 方法,请检查“支持的 LCIA 方法数据集”字段。]",
1021
- "properties": {
1022
- "@type": {
1023
- "type": "string",
1024
- "enum": [
1025
- "Climate change",
1026
- "Ozone depletion",
1027
- "Summer smog",
1028
- "Eutrophication",
1029
- "Acidification",
1030
- "Human toxicity",
1031
- "Freshwater ecotoxicity",
1032
- "Seawater eco-toxicity",
1033
- "Terrestric eco-toxicity",
1034
- "Radioactivity",
1035
- "Land use",
1036
- "Non-renewable material resource depletion",
1037
- "Renewable material resource consumption",
1038
- "Non-renewable primary energy depletion",
1039
- "Renewable primary energy consumption",
1040
- "Particulate matter/respiratory inorganics",
1041
- "Species depletion",
1042
- "Noise"
1043
- ]
1153
+ "anyOf": [
1154
+ {
1155
+ "type": "object",
1156
+ "properties": {
1157
+ "@type": {
1158
+ "type": "string",
1159
+ "enum": [
1160
+ "Climate change",
1161
+ "Ozone depletion",
1162
+ "Summer smog",
1163
+ "Eutrophication",
1164
+ "Acidification",
1165
+ "Human toxicity",
1166
+ "Freshwater ecotoxicity",
1167
+ "Seawater eco-toxicity",
1168
+ "Terrestric eco-toxicity",
1169
+ "Radioactivity",
1170
+ "Land use",
1171
+ "Non-renewable material resource depletion",
1172
+ "Renewable material resource consumption",
1173
+ "Non-renewable primary energy depletion",
1174
+ "Renewable primary energy consumption",
1175
+ "Particulate matter/respiratory inorganics",
1176
+ "Species depletion",
1177
+ "Noise"
1178
+ ]
1179
+ },
1180
+ "@value": {
1181
+ "type": "string",
1182
+ "enum": [
1183
+ "All relevant flows quantified",
1184
+ "Relevant flows missing",
1185
+ "Topic not relevant",
1186
+ "No statement"
1187
+ ]
1188
+ }
1189
+ }
1044
1190
  },
1045
- "@value": {
1046
- "type": "string",
1047
- "enum": [
1048
- "All relevant flows quantified",
1049
- "Relevant flows missing",
1050
- "Topic not relevant",
1051
- "No statement"
1052
- ]
1191
+ {
1192
+ "type": "array",
1193
+ "minItems": 1,
1194
+ "items": {
1195
+ "type": "object",
1196
+ "properties": {
1197
+ "@type": {
1198
+ "type": "string",
1199
+ "enum": [
1200
+ "Climate change",
1201
+ "Ozone depletion",
1202
+ "Summer smog",
1203
+ "Eutrophication",
1204
+ "Acidification",
1205
+ "Human toxicity",
1206
+ "Freshwater ecotoxicity",
1207
+ "Seawater eco-toxicity",
1208
+ "Terrestric eco-toxicity",
1209
+ "Radioactivity",
1210
+ "Land use",
1211
+ "Non-renewable material resource depletion",
1212
+ "Renewable material resource consumption",
1213
+ "Non-renewable primary energy depletion",
1214
+ "Renewable primary energy consumption",
1215
+ "Particulate matter/respiratory inorganics",
1216
+ "Species depletion",
1217
+ "Noise"
1218
+ ]
1219
+ },
1220
+ "@value": {
1221
+ "type": "string",
1222
+ "enum": [
1223
+ "All relevant flows quantified",
1224
+ "Relevant flows missing",
1225
+ "Topic not relevant",
1226
+ "No statement"
1227
+ ]
1228
+ }
1229
+ }
1230
+ }
1053
1231
  }
1054
- }
1232
+ ]
1055
1233
  },
1056
1234
  "completenessOtherProblemField": {
1057
1235
  "$ref": "tidas_data_types.json#/$defs/FTMultiLang",
@@ -1563,7 +1741,10 @@
1563
1741
  }
1564
1742
  ]
1565
1743
  }
1566
- }
1744
+ },
1745
+ "required": [
1746
+ "allocation"
1747
+ ]
1567
1748
  },
1568
1749
  "dataSourceType": {
1569
1750
  "type": "string",
@@ -44,39 +44,97 @@
44
44
  "description": "预计将用于构建数据库的源内容的源的层次结构分类。 (注意:标识源不需要此条目。不过,应避免在同一类中对源使用相同的名称。",
45
45
  "properties": {
46
46
  "common:classification": {
47
- "type": "object",
48
- "properties": {
49
- "common:class": {
47
+ "anyOf": [
48
+ {
50
49
  "type": "object",
51
50
  "properties": {
52
- "@level": {
53
- "$ref": "tidas_data_types.json#/$defs/LevelType",
54
- "const": "0"
51
+ "common:class": {
52
+ "type": "object",
53
+ "properties": {
54
+ "@level": {
55
+ "$ref": "tidas_data_types.json#/$defs/LevelType",
56
+ "const": "0"
57
+ },
58
+ "@classId": {
59
+ "type": "string"
60
+ },
61
+ "#text": {
62
+ "type": "string"
63
+ }
64
+ },
65
+ "required": [
66
+ "@level",
67
+ "@classId",
68
+ "#text"
69
+ ],
70
+ "dependencies": {
71
+ "@level": {
72
+ "$ref": "./tidas_sources_category.json#/$defs/Source"
73
+ }
74
+ }
55
75
  },
56
- "@classId": {
76
+ "common:other": {
77
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
78
+ },
79
+ "@name": {
57
80
  "type": "string"
58
81
  },
59
- "#text": {
82
+ "@classes": {
60
83
  "type": "string"
61
84
  }
62
85
  },
63
86
  "required": [
64
- "@level",
65
- "@classId",
66
- "#text"
67
- ],
68
- "dependencies": {
69
- "@level": {
70
- "$ref": "./tidas_sources_category.json#/$defs/Source"
71
- }
72
- }
87
+ "common:class"
88
+ ]
73
89
  },
74
- "common:other": {
75
- "$ref": "tidas_data_types.json#/$defs/CommonOther"
90
+ {
91
+ "type": "array",
92
+ "minItems": 1,
93
+ "items": {
94
+ "type": "object",
95
+ "description": "One named classification system (e.g. CPC or HS). Used in the array form to let multiple systems coexist.",
96
+ "properties": {
97
+ "@name": {
98
+ "type": "string",
99
+ "description": "Name of the classification system (e.g. CPC, ISIC, HS). Per ILCD this defaults to 'ILCD' when absent; set it explicitly for non-ILCD systems."
100
+ },
101
+ "@classes": {
102
+ "type": "string",
103
+ "description": "Optional URL or identifier of the classification file/system."
104
+ },
105
+ "common:class": {
106
+ "type": "array",
107
+ "minItems": 1,
108
+ "items": {
109
+ "type": "object",
110
+ "properties": {
111
+ "@level": {
112
+ "$ref": "tidas_data_types.json#/$defs/LevelType"
113
+ },
114
+ "@classId": {
115
+ "type": "string"
116
+ },
117
+ "#text": {
118
+ "type": "string"
119
+ }
120
+ },
121
+ "required": [
122
+ "@level",
123
+ "@classId",
124
+ "#text"
125
+ ]
126
+ }
127
+ },
128
+ "common:other": {
129
+ "$ref": "tidas_data_types.json#/$defs/CommonOther"
130
+ }
131
+ },
132
+ "required": [
133
+ "@name",
134
+ "common:class"
135
+ ]
136
+ }
76
137
  }
77
- },
78
- "required": [
79
- "common:class"
80
138
  ]
81
139
  }
82
140
  },