@enervance/insight-cim-model 0.0.12 → 0.0.14

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 (770) hide show
  1. package/dist/config/westnetz-integral7/integral7-load.config.js.map +1 -1
  2. package/dist/config/westnetz-neplan/neplan-load.config.js +6 -1
  3. package/dist/config/westnetz-neplan/neplan-load.config.js.map +1 -1
  4. package/dist/constants/cim-class-definition.js +19 -0
  5. package/dist/constants/cim-class-definition.js.map +1 -1
  6. package/dist/constants/cim-class-names.d.ts +10 -0
  7. package/dist/constants/cim-class-names.js +10 -0
  8. package/dist/constants/cim-class-names.js.map +1 -1
  9. package/dist/constants/init-data/ASSET_HEALTH_EVENTS.js +10 -0
  10. package/dist/constants/init-data/ASSET_HEALTH_EVENTS.js.map +1 -1
  11. package/dist/constants/init-data/PSR_TYPES.js +17 -0
  12. package/dist/constants/init-data/PSR_TYPES.js.map +1 -1
  13. package/dist/converter/cgmes-validator.d.ts +5 -0
  14. package/dist/converter/cgmes-validator.js +23 -0
  15. package/dist/converter/cgmes-validator.js.map +1 -0
  16. package/dist/converter/integral7/ConverterIntegral7.d.ts +26 -19
  17. package/dist/converter/integral7/ConverterIntegral7.js +595 -272
  18. package/dist/converter/integral7/ConverterIntegral7.js.map +1 -1
  19. package/dist/converter/integral7/model/integral/BaseClass.d.ts +1 -0
  20. package/dist/converter/integral7/model/integral/BaseClass.js.map +1 -1
  21. package/dist/converter/integral7/model/interfaces.d.ts +36 -0
  22. package/dist/converter/integral7/sql/integral.sql.d.ts +10 -0
  23. package/dist/converter/integral7/sql/integral.sql.js +25 -1
  24. package/dist/converter/integral7/sql/integral.sql.js.map +1 -1
  25. package/dist/converter/integral7/utils.d.ts +3 -0
  26. package/dist/converter/integral7/utils.js +81 -17
  27. package/dist/converter/integral7/utils.js.map +1 -1
  28. package/dist/etl-neplan/etl-neplan-csv.d.ts +37 -0
  29. package/dist/etl-neplan/etl-neplan-csv.js +243 -0
  30. package/dist/etl-neplan/etl-neplan-csv.js.map +1 -0
  31. package/dist/etl-neplan/etl-neplan-geo.d.ts +12 -0
  32. package/dist/etl-neplan/etl-neplan-geo.js +74 -0
  33. package/dist/etl-neplan/etl-neplan-geo.js.map +1 -0
  34. package/dist/etl-neplan/neplan-contingency-analysis.js +0 -20
  35. package/dist/etl-neplan/neplan-contingency-analysis.js.map +1 -1
  36. package/dist/index.d.ts +8 -0
  37. package/dist/index.js +16 -0
  38. package/dist/index.js.map +1 -1
  39. package/dist/interfaces/default-values-config.d.ts +171 -0
  40. package/dist/interfaces/default-values-config.js +3 -0
  41. package/dist/interfaces/default-values-config.js.map +1 -0
  42. package/dist/interfaces/model/common/ILocation.d.ts +15 -0
  43. package/dist/interfaces/model/common/ILocation.js +3 -0
  44. package/dist/interfaces/model/common/ILocation.js.map +1 -0
  45. package/dist/interfaces/model/core/IIdentifiedObject.d.ts +3 -0
  46. package/dist/interfaces/model/wires/IACLineSegment.d.ts +10 -0
  47. package/dist/interfaces/model/wires/IConductor.d.ts +2 -1
  48. package/dist/model/assets/Asset.d.ts +12 -5
  49. package/dist/model/assets/Asset.js +86 -21
  50. package/dist/model/assets/Asset.js.map +1 -1
  51. package/dist/model/assets/LifecycleDate.d.ts +1 -0
  52. package/dist/model/assets/LifecycleDate.js +9 -1
  53. package/dist/model/assets/LifecycleDate.js.map +1 -1
  54. package/dist/model/common/CoordinateSystem.d.ts +3 -1
  55. package/dist/model/common/CoordinateSystem.js +13 -1
  56. package/dist/model/common/CoordinateSystem.js.map +1 -1
  57. package/dist/model/common/Location.d.ts +5 -3
  58. package/dist/model/common/Location.js +17 -11
  59. package/dist/model/common/Location.js.map +1 -1
  60. package/dist/model/common/PositionPoint.d.ts +9 -3
  61. package/dist/model/common/PositionPoint.js +23 -1
  62. package/dist/model/common/PositionPoint.js.map +1 -1
  63. package/dist/model/common/Status.d.ts +2 -1
  64. package/dist/model/common/Status.js +9 -1
  65. package/dist/model/common/Status.js.map +1 -1
  66. package/dist/model/core/ACDCTerminal.d.ts +2 -0
  67. package/dist/model/core/ACDCTerminal.js +9 -1
  68. package/dist/model/core/ACDCTerminal.js.map +1 -1
  69. package/dist/model/core/BaseVoltage.js.map +1 -1
  70. package/dist/model/core/Bay.js.map +1 -1
  71. package/dist/model/core/GeographicalRegion.js.map +1 -1
  72. package/dist/model/core/IdentifiedObject.d.ts +3 -1
  73. package/dist/model/core/IdentifiedObject.js +42 -21
  74. package/dist/model/core/IdentifiedObject.js.map +1 -1
  75. package/dist/model/core/PowerSystemResource.js.map +1 -1
  76. package/dist/model/core/SubGeographicalRegion.js.map +1 -1
  77. package/dist/model/core/Substation.d.ts +1 -0
  78. package/dist/model/core/Substation.js +3 -2
  79. package/dist/model/core/Substation.js.map +1 -1
  80. package/dist/model/core/Terminal.d.ts +3 -1
  81. package/dist/model/core/Terminal.js +14 -14
  82. package/dist/model/core/Terminal.js.map +1 -1
  83. package/dist/model/core/VoltageLevel.js +4 -2
  84. package/dist/model/core/VoltageLevel.js.map +1 -1
  85. package/dist/model/dc/ACDCConverter.d.ts +3 -0
  86. package/dist/model/dc/ACDCConverter.js +56 -14
  87. package/dist/model/dc/ACDCConverter.js.map +1 -1
  88. package/dist/model/dc/ACDCConverterDCTerminal.js +2 -6
  89. package/dist/model/dc/ACDCConverterDCTerminal.js.map +1 -1
  90. package/dist/model/dc/CsConverter.d.ts +2 -0
  91. package/dist/model/dc/CsConverter.js +45 -17
  92. package/dist/model/dc/CsConverter.js.map +1 -1
  93. package/dist/model/dc/DCConverterUnit.d.ts +2 -0
  94. package/dist/model/dc/DCConverterUnit.js +13 -7
  95. package/dist/model/dc/DCConverterUnit.js.map +1 -1
  96. package/dist/model/dc/DCLine.js.map +1 -1
  97. package/dist/model/dc/DCLineSegment.js +4 -8
  98. package/dist/model/dc/DCLineSegment.js.map +1 -1
  99. package/dist/model/dc/VsConverter.d.ts +2 -0
  100. package/dist/model/dc/VsConverter.js +53 -5
  101. package/dist/model/dc/VsConverter.js.map +1 -1
  102. package/dist/model/equivalents/EquivalentBranch.d.ts +2 -0
  103. package/dist/model/equivalents/EquivalentBranch.js +63 -0
  104. package/dist/model/equivalents/EquivalentBranch.js.map +1 -1
  105. package/dist/model/extensions/amprion/wires/AMPRIONSeriesCompensator.js +0 -3
  106. package/dist/model/extensions/amprion/wires/AMPRIONSeriesCompensator.js.map +1 -1
  107. package/dist/model/extensions/enervance/wires/EVACLineSegment.d.ts +16 -0
  108. package/{src/model/wires/PetersenCoil.ts → dist/model/extensions/enervance/wires/EVACLineSegment.js} +43 -47
  109. package/dist/model/extensions/enervance/wires/EVACLineSegment.js.map +1 -0
  110. package/dist/model/extensions/enervance/wires/EVACLineSubSegment.d.ts +25 -0
  111. package/dist/model/extensions/enervance/wires/EVACLineSubSegment.js +126 -0
  112. package/dist/model/extensions/enervance/wires/EVACLineSubSegment.js.map +1 -0
  113. package/dist/model/extensions/neplan-westnetz/assets/WNFacility.js +4 -12
  114. package/dist/model/extensions/neplan-westnetz/assets/WNFacility.js.map +1 -1
  115. package/dist/model/extensions/neplan-westnetz/common/WNLocation.d.ts +18 -0
  116. package/dist/model/extensions/neplan-westnetz/common/WNLocation.js +82 -0
  117. package/dist/model/extensions/neplan-westnetz/common/WNLocation.js.map +1 -0
  118. package/dist/model/extensions/neplan-westnetz/core/WNConnectivityNode.d.ts +5 -0
  119. package/dist/model/extensions/neplan-westnetz/core/WNConnectivityNode.js +23 -0
  120. package/dist/model/extensions/neplan-westnetz/core/WNConnectivityNode.js.map +1 -1
  121. package/dist/model/generation/GeneratingUnit.d.ts +2 -0
  122. package/dist/model/generation/GeneratingUnit.js +23 -0
  123. package/dist/model/generation/GeneratingUnit.js.map +1 -1
  124. package/dist/model/generation/ThermalGeneratingUnit.js.map +1 -1
  125. package/dist/model/loadmodel/ConformLoad.d.ts +6 -1
  126. package/dist/model/loadmodel/ConformLoad.js +48 -3
  127. package/dist/model/loadmodel/ConformLoad.js.map +1 -1
  128. package/dist/model/loadmodel/ConformLoadGroup.d.ts +7 -0
  129. package/dist/model/loadmodel/ConformLoadGroup.js +48 -0
  130. package/dist/model/loadmodel/ConformLoadGroup.js.map +1 -0
  131. package/dist/model/loadmodel/EnergyArea.d.ts +3 -0
  132. package/dist/model/loadmodel/EnergyArea.js +8 -0
  133. package/dist/model/loadmodel/EnergyArea.js.map +1 -0
  134. package/dist/model/loadmodel/LoadArea.d.ts +10 -0
  135. package/dist/model/loadmodel/LoadArea.js +51 -0
  136. package/dist/model/loadmodel/LoadArea.js.map +1 -0
  137. package/dist/model/loadmodel/LoadGroup.d.ts +8 -0
  138. package/dist/model/loadmodel/LoadGroup.js +21 -0
  139. package/dist/model/loadmodel/LoadGroup.js.map +1 -0
  140. package/dist/model/loadmodel/SubLoadArea.d.ts +14 -0
  141. package/dist/model/loadmodel/SubLoadArea.js +63 -0
  142. package/dist/model/loadmodel/SubLoadArea.js.map +1 -0
  143. package/dist/model/model/Model.d.ts +40 -11
  144. package/dist/model/model/Model.js +100 -6
  145. package/dist/model/model/Model.js.map +1 -1
  146. package/dist/model/operationallimits/CurrentLimit.js.map +1 -1
  147. package/dist/model/operationallimits/OperationalLimitSet.js.map +1 -1
  148. package/dist/model/wires/ACLineSegment.d.ts +6 -2
  149. package/dist/model/wires/ACLineSegment.js +51 -44
  150. package/dist/model/wires/ACLineSegment.js.map +1 -1
  151. package/dist/model/wires/AsynchronousMachine.d.ts +2 -1
  152. package/dist/model/wires/AsynchronousMachine.js +34 -34
  153. package/dist/model/wires/AsynchronousMachine.js.map +1 -1
  154. package/dist/model/wires/BusbarSection.d.ts +2 -0
  155. package/dist/model/wires/BusbarSection.js +6 -0
  156. package/dist/model/wires/BusbarSection.js.map +1 -1
  157. package/dist/model/wires/Conductor.d.ts +4 -1
  158. package/dist/model/wires/Conductor.js +15 -6
  159. package/dist/model/wires/Conductor.js.map +1 -1
  160. package/dist/model/wires/EnergyConsumer.d.ts +6 -2
  161. package/dist/model/wires/EnergyConsumer.js +24 -3
  162. package/dist/model/wires/EnergyConsumer.js.map +1 -1
  163. package/dist/model/wires/EnergySource.d.ts +8 -4
  164. package/dist/model/wires/EnergySource.js +37 -21
  165. package/dist/model/wires/EnergySource.js.map +1 -1
  166. package/dist/model/wires/ExternalNetworkInjection.d.ts +2 -0
  167. package/dist/model/wires/ExternalNetworkInjection.js +81 -1
  168. package/dist/model/wires/ExternalNetworkInjection.js.map +1 -1
  169. package/dist/model/wires/Line.js.map +1 -1
  170. package/dist/model/wires/LinearShuntCompensator.d.ts +15 -0
  171. package/dist/model/wires/LinearShuntCompensator.js +96 -0
  172. package/dist/model/wires/LinearShuntCompensator.js.map +1 -0
  173. package/dist/model/wires/PowerTransformer.js +0 -3
  174. package/dist/model/wires/PowerTransformer.js.map +1 -1
  175. package/dist/model/wires/PowerTransformerEnd.js.map +1 -1
  176. package/dist/model/wires/RatioTapChanger.js.map +1 -1
  177. package/dist/model/wires/RatioTapChangerTable.js.map +1 -1
  178. package/dist/model/wires/RegulatingCondEq.d.ts +3 -0
  179. package/dist/model/wires/RegulatingCondEq.js +17 -6
  180. package/dist/model/wires/RegulatingCondEq.js.map +1 -1
  181. package/dist/model/wires/RegulatingControl.d.ts +2 -0
  182. package/dist/model/wires/RegulatingControl.js +43 -7
  183. package/dist/model/wires/RegulatingControl.js.map +1 -1
  184. package/dist/model/wires/RotatingMachine.d.ts +2 -0
  185. package/dist/model/wires/RotatingMachine.js +17 -0
  186. package/dist/model/wires/RotatingMachine.js.map +1 -1
  187. package/dist/model/wires/SeriesCompensator.d.ts +2 -1
  188. package/dist/model/wires/SeriesCompensator.js +42 -42
  189. package/dist/model/wires/SeriesCompensator.js.map +1 -1
  190. package/dist/model/wires/ShuntCompensator.d.ts +17 -0
  191. package/dist/model/wires/ShuntCompensator.js +50 -0
  192. package/dist/model/wires/ShuntCompensator.js.map +1 -0
  193. package/dist/model/wires/SynchronousMachine.d.ts +2 -0
  194. package/dist/model/wires/SynchronousMachine.js +70 -5
  195. package/dist/model/wires/SynchronousMachine.js.map +1 -1
  196. package/dist/model/wires/TapChangerControl.js.map +1 -1
  197. package/dist/util/utils.d.ts +8 -1
  198. package/dist/util/utils.js +13 -38
  199. package/dist/util/utils.js.map +1 -1
  200. package/dist/util/xml/xml.serializer.d.ts +3 -1
  201. package/dist/util/xml/xml.serializer.js +46 -45
  202. package/dist/util/xml/xml.serializer.js.map +1 -1
  203. package/package.json +4 -1
  204. package/.nycrc +0 -28
  205. package/jasmine/jasmine_all.json +0 -13
  206. package/jasmine/jasmine_fuseki_interface.json +0 -13
  207. package/jasmine/jasmine_fuseki_psdm.json +0 -13
  208. package/jasmine/jasmine_integral_7.json +0 -13
  209. package/jasmine/jasmine_psdm.json +0 -13
  210. package/src/config/lew-sincal/lew-sincal-load.config.ts +0 -58
  211. package/src/config/power-system-datamodel/psdm-load.config.ts +0 -57
  212. package/src/config/westnetz-integral7/integral7-load.config.ts +0 -53
  213. package/src/config/westnetz-neplan/callbacks/cb-connectivitynode.ts +0 -159
  214. package/src/config/westnetz-neplan/callbacks/cb-psr.ts +0 -30
  215. package/src/config/westnetz-neplan/callbacks/cb-wnenergyconsumer.ts +0 -70
  216. package/src/config/westnetz-neplan/neplan-load.config.ts +0 -131
  217. package/src/config/westnetz-neplan/property-handler-westenergy.config.ts +0 -52
  218. package/src/constants/cim-class-definition.ts +0 -169
  219. package/src/constants/cim-class-names.ts +0 -118
  220. package/src/constants/cim-constants.ts +0 -5
  221. package/src/constants/init-data/ASSET_HEALTH_EVENTS.ts +0 -45
  222. package/src/constants/init-data/ASSSET_OWNER.ts +0 -11
  223. package/src/constants/init-data/JENA_SPARQL.ts +0 -328
  224. package/src/constants/init-data/PSR_TYPES.ts +0 -75
  225. package/src/constants/init-data/xml/AssetHealtEvent.xml +0 -45
  226. package/src/constants/init-data/xml/AssetOwner.xml +0 -11
  227. package/src/constants/init-data/xml/PsrType.xml +0 -80
  228. package/src/constants/rdf-xml.ts +0 -52
  229. package/src/converter/PSDM/ConverterPowerSystemDataModel.ts +0 -546
  230. package/src/converter/PSDM/model/FixedFeedIn.ts +0 -28
  231. package/src/converter/PSDM/model/Line.ts +0 -39
  232. package/src/converter/PSDM/model/LineType.ts +0 -29
  233. package/src/converter/PSDM/model/Load.ts +0 -38
  234. package/src/converter/PSDM/model/Node.ts +0 -16
  235. package/src/converter/PSDM/model/TimeSeriesMapping.ts +0 -13
  236. package/src/converter/PSDM/model/Transformer.ts +0 -34
  237. package/src/converter/PSDM/model/TransformerType.ts +0 -49
  238. package/src/converter/PSDM/model/geo/Crs.ts +0 -4
  239. package/src/converter/PSDM/model/geo/GeoPosition.ts +0 -7
  240. package/src/converter/integral7/ConverterIntegral7.ts +0 -3916
  241. package/src/converter/integral7/config/db-config.ts +0 -13
  242. package/src/converter/integral7/config/generation-unit-fuel-types.ts +0 -51
  243. package/src/converter/integral7/config/integral-prefix.ts +0 -20
  244. package/src/converter/integral7/model/integral/BaseClass.ts +0 -28
  245. package/src/converter/integral7/model/integral/BaseClassNsg.ts +0 -21
  246. package/src/converter/integral7/model/integral/Hgueleitung.ts +0 -12
  247. package/src/converter/integral7/model/integral/KnotenSo.ts +0 -41
  248. package/src/converter/integral7/model/integral/KnotenSoNsg.ts +0 -24
  249. package/src/converter/integral7/model/integral/Kopfstation.ts +0 -46
  250. package/src/converter/integral7/model/integral/Leitung.ts +0 -73
  251. package/src/converter/integral7/model/integral/LeitungNsg.ts +0 -46
  252. package/src/converter/integral7/model/integral/Point.ts +0 -14
  253. package/src/converter/integral7/model/integral/Schaltanlage.ts +0 -151
  254. package/src/converter/integral7/model/integral/SchaltanlageNSG.ts +0 -30
  255. package/src/converter/integral7/model/integral/Schaltanlagenabschnitt.ts +0 -44
  256. package/src/converter/integral7/model/integral/SchaltanlagenabschnittNsg.ts +0 -27
  257. package/src/converter/integral7/model/integral/Schaltfeld.ts +0 -116
  258. package/src/converter/integral7/model/integral/SchaltfeldNsg.ts +0 -35
  259. package/src/converter/integral7/model/integral/Standort.ts +0 -53
  260. package/src/converter/integral7/model/integral/StandortNsg.ts +0 -24
  261. package/src/converter/integral7/model/integral/Trafo2w.ts +0 -22
  262. package/src/converter/integral7/model/integral/Trafo2wNsg.ts +0 -13
  263. package/src/converter/integral7/model/interfaces.ts +0 -450
  264. package/src/converter/integral7/sql/integral.sql.ts +0 -345
  265. package/src/converter/integral7/utils-schema.ts +0 -50
  266. package/src/converter/integral7/utils-trafo3w.ts +0 -321
  267. package/src/converter/integral7/utils.ts +0 -693
  268. package/src/etl-neplan/etl-neplan-contingency-analysis.ts +0 -188
  269. package/src/etl-neplan/etl-neplan-feederline.ts +0 -229
  270. package/src/etl-neplan/etl-neplan.ts +0 -344
  271. package/src/etl-neplan/neplan-contingency-analysis.ts +0 -571
  272. package/src/graph/Types.ts +0 -7
  273. package/src/graph/connections/connection.ts +0 -29
  274. package/src/graph/edges/edge.ts +0 -27
  275. package/src/graph/graph-interfaces.ts +0 -21
  276. package/src/graph/graph-util.ts +0 -158
  277. package/src/graph/graph.ts +0 -84
  278. package/src/graph/nodes/node.ts +0 -43
  279. package/src/index.ts +0 -307
  280. package/src/interfaces/model/assets/IAsset.ts +0 -5
  281. package/src/interfaces/model/assets/IAssetContainer.ts +0 -5
  282. package/src/interfaces/model/assets/IFacility.ts +0 -5
  283. package/src/interfaces/model/common/IDocument.ts +0 -5
  284. package/src/interfaces/model/core/IACDCTerminal.ts +0 -8
  285. package/src/interfaces/model/core/IBaseVoltage.ts +0 -7
  286. package/src/interfaces/model/core/IConductingEquipment.ts +0 -16
  287. package/src/interfaces/model/core/IConnectivityNode.ts +0 -27
  288. package/src/interfaces/model/core/IConnectivityNodeContainer.ts +0 -11
  289. package/src/interfaces/model/core/IEquipment.ts +0 -11
  290. package/src/interfaces/model/core/IEquipmentContainer.ts +0 -12
  291. package/src/interfaces/model/core/IFeeder.ts +0 -21
  292. package/src/interfaces/model/core/IIdentifiedObject.ts +0 -108
  293. package/src/interfaces/model/core/IPowerSystemResource.ts +0 -3
  294. package/src/interfaces/model/core/ISubstation.ts +0 -8
  295. package/src/interfaces/model/core/ITerminal.ts +0 -57
  296. package/src/interfaces/model/core/IVoltageLevel.ts +0 -14
  297. package/src/interfaces/model/diagram/IDiagram.ts +0 -21
  298. package/src/interfaces/model/diagram/IDiagramObject.ts +0 -21
  299. package/src/interfaces/model/diagram/IDiagramObjectPoint.ts +0 -16
  300. package/src/interfaces/model/domain/IActivePower.ts +0 -3
  301. package/src/interfaces/model/domain/IAngleDegrees.ts +0 -3
  302. package/src/interfaces/model/domain/IApparentPower.ts +0 -3
  303. package/src/interfaces/model/domain/ICurrentFlow.ts +0 -3
  304. package/src/interfaces/model/domain/IDataType.ts +0 -9
  305. package/src/interfaces/model/domain/IReactivePower.ts +0 -3
  306. package/src/interfaces/model/domain/IVoltage.ts +0 -3
  307. package/src/interfaces/model/domain/UnitMultiplier.ts +0 -13
  308. package/src/interfaces/model/domain/UnitSymbol.ts +0 -30
  309. package/src/interfaces/model/enums/EnumShapeInfo.ts +0 -5
  310. package/src/interfaces/model/faults/IFault.ts +0 -11
  311. package/src/interfaces/model/model/IModel.ts +0 -91
  312. package/src/interfaces/model/operations/IOutage.ts +0 -23
  313. package/src/interfaces/model/operations/ISwitchingAction.ts +0 -9
  314. package/src/interfaces/model/operations/ISwitchingPlan.ts +0 -26
  315. package/src/interfaces/model/statevariables/ISvPowerFlow.ts +0 -20
  316. package/src/interfaces/model/statevariables/ISvVoltage.ts +0 -16
  317. package/src/interfaces/model/topology/ITopologicalIsland.ts +0 -11
  318. package/src/interfaces/model/topology/ITopologicalNode.ts +0 -24
  319. package/src/interfaces/model/wires/IACLineSegment.ts +0 -4
  320. package/src/interfaces/model/wires/IBusbarSection.ts +0 -4
  321. package/src/interfaces/model/wires/ICompositeSwitch.ts +0 -6
  322. package/src/interfaces/model/wires/IConductor.ts +0 -6
  323. package/src/interfaces/model/wires/IConnector.ts +0 -5
  324. package/src/interfaces/model/wires/IDisconnector.ts +0 -4
  325. package/src/interfaces/model/wires/IEnergyConsumer.ts +0 -7
  326. package/src/interfaces/model/wires/IEnergySource.ts +0 -20
  327. package/src/interfaces/model/wires/IExternalNetworkInjection.ts +0 -34
  328. package/src/interfaces/model/wires/ILoadBreakSwitch.ts +0 -4
  329. package/src/interfaces/model/wires/IPowerTransformer.ts +0 -7
  330. package/src/interfaces/model/wires/IPowerTransformerEnd.ts +0 -10
  331. package/src/interfaces/model/wires/IProtectedSwitch.ts +0 -4
  332. package/src/interfaces/model/wires/IRegulatingCondEq.ts +0 -4
  333. package/src/interfaces/model/wires/ISwitch.ts +0 -11
  334. package/src/interfaces/model/wires/ITransformerEnd.ts +0 -14
  335. package/src/interfaces/observable/IObservable.ts +0 -6
  336. package/src/interfaces/observable/IObserver.ts +0 -3
  337. package/src/interfaces/persistence-interfaces.ts +0 -12
  338. package/src/interfaces/schema-settings/ShapeInfos.ts +0 -28
  339. package/src/model/assetinfo/AssetInfo.ts +0 -13
  340. package/src/model/assetinfo/CableInfo.ts +0 -8
  341. package/src/model/assetinfo/OverheadWireInfo.ts +0 -8
  342. package/src/model/assetinfo/PowerTransformer2WInfo.ts +0 -13
  343. package/src/model/assetinfo/PowerTransformer3WInfo.ts +0 -18
  344. package/src/model/assetinfo/PowerTransformerInfo.ts +0 -14
  345. package/src/model/assetinfo/TapChangerInfo.ts +0 -60
  346. package/src/model/assetinfo/TransformerEndInfo.ts +0 -38
  347. package/src/model/assetinfo/WireInfo.ts +0 -22
  348. package/src/model/assets/AggregateScore.ts +0 -9
  349. package/src/model/assets/AnalyticScore.ts +0 -41
  350. package/src/model/assets/Asset.ts +0 -164
  351. package/src/model/assets/AssetContainer.ts +0 -11
  352. package/src/model/assets/AssetDeployment.ts +0 -122
  353. package/src/model/assets/AssetHealthEvent.ts +0 -73
  354. package/src/model/assets/AssetOrganisationRole.ts +0 -51
  355. package/src/model/assets/AssetOwner.ts +0 -54
  356. package/src/model/assets/DeploymentDate.ts +0 -20
  357. package/src/model/assets/DeploymentStateKind.ts +0 -7
  358. package/src/model/assets/Facility.ts +0 -107
  359. package/src/model/assets/FacilityKind.ts +0 -9
  360. package/src/model/assets/HealthScore.ts +0 -59
  361. package/src/model/assets/LifecycleDate.ts +0 -17
  362. package/src/model/assets/RiskScore.ts +0 -7
  363. package/src/model/assets/TransformerApplicationKind.ts +0 -6
  364. package/src/model/common/ActivityRecord.ts +0 -93
  365. package/src/model/common/CoordinateSystem.ts +0 -81
  366. package/src/model/common/Document.ts +0 -9
  367. package/src/model/common/Location.ts +0 -237
  368. package/src/model/common/OrganisationRole.ts +0 -7
  369. package/src/model/common/PositionPoint.ts +0 -121
  370. package/src/model/common/Status.ts +0 -11
  371. package/src/model/core/ACDCTerminal.ts +0 -63
  372. package/src/model/core/BaseVoltage.ts +0 -129
  373. package/src/model/core/Bay.ts +0 -178
  374. package/src/model/core/ConductingEquipment.ts +0 -182
  375. package/src/model/core/ConnectivityNode.ts +0 -417
  376. package/src/model/core/ConnectivityNodeContainer.ts +0 -26
  377. package/src/model/core/Curve.ts +0 -55
  378. package/src/model/core/CurveData.ts +0 -74
  379. package/src/model/core/CurveStyle.ts +0 -4
  380. package/src/model/core/Equipment.ts +0 -184
  381. package/src/model/core/EquipmentContainer.ts +0 -40
  382. package/src/model/core/Feeder.ts +0 -186
  383. package/src/model/core/GeographicalRegion.ts +0 -34
  384. package/src/model/core/IdentifiedObject.ts +0 -393
  385. package/src/model/core/PSRType.ts +0 -164
  386. package/src/model/core/PhaseCode.ts +0 -23
  387. package/src/model/core/PowerSystemResource.ts +0 -109
  388. package/src/model/core/SubGeographicalRegion.ts +0 -58
  389. package/src/model/core/Substation.ts +0 -290
  390. package/src/model/core/Terminal.ts +0 -422
  391. package/src/model/core/VoltageLevel.ts +0 -192
  392. package/src/model/dc/ACDCConverter.ts +0 -66
  393. package/src/model/dc/ACDCConverterDCTerminal.ts +0 -64
  394. package/src/model/dc/CsConverter.ts +0 -68
  395. package/src/model/dc/CsOperatingModeKind.ts +0 -4
  396. package/src/model/dc/CsPpccControlKind.ts +0 -5
  397. package/src/model/dc/DCBaseTerminal.ts +0 -30
  398. package/src/model/dc/DCConductingEquipment.ts +0 -8
  399. package/src/model/dc/DCConverterOperatingModeKind.ts +0 -6
  400. package/src/model/dc/DCConverterUnit.ts +0 -60
  401. package/src/model/dc/DCEquipmentContainer.ts +0 -8
  402. package/src/model/dc/DCLine.ts +0 -56
  403. package/src/model/dc/DCLineSegment.ts +0 -81
  404. package/src/model/dc/DCNode.ts +0 -49
  405. package/src/model/dc/DCPolarityKind.ts +0 -5
  406. package/src/model/dc/DCTerminal.ts +0 -45
  407. package/src/model/dc/VsConverter.ts +0 -48
  408. package/src/model/dc/VsPpccControlKind.ts +0 -7
  409. package/src/model/dc/VsQpccControlKind.ts +0 -5
  410. package/src/model/diagram/Diagram.ts +0 -136
  411. package/src/model/diagram/DiagramObject.ts +0 -338
  412. package/src/model/diagram/DiagramObjectPoint.ts +0 -196
  413. package/src/model/diagram/DiagramStyle.ts +0 -32
  414. package/src/model/diagram/OrientationKind.ts +0 -4
  415. package/src/model/domain/ActivePower.ts +0 -14
  416. package/src/model/domain/AngleDegrees.ts +0 -14
  417. package/src/model/domain/ApparentPower.ts +0 -14
  418. package/src/model/domain/Capacitance.ts +0 -15
  419. package/src/model/domain/CapacitancePerLength.ts +0 -15
  420. package/src/model/domain/ConductancePerLength.ts +0 -14
  421. package/src/model/domain/CurrentFlow.ts +0 -14
  422. package/src/model/domain/Reactance.ts +0 -15
  423. package/src/model/domain/ReactancePerLength.ts +0 -14
  424. package/src/model/domain/ReactivePower.ts +0 -14
  425. package/src/model/domain/Resistance.ts +0 -14
  426. package/src/model/domain/ResistancePerLength.ts +0 -14
  427. package/src/model/domain/UnitMultiplier.ts +0 -13
  428. package/src/model/domain/UnitSymbol.ts +0 -30
  429. package/src/model/domain/Voltage.ts +0 -14
  430. package/src/model/equivalents/EquivalentBranch.ts +0 -203
  431. package/src/model/equivalents/EquivalentEquipment.ts +0 -8
  432. package/src/model/extensions/amprion/core/AMPRIONBay.ts +0 -106
  433. package/src/model/extensions/amprion/core/AMPRIONConnectivityNode.ts +0 -51
  434. package/src/model/extensions/amprion/model/AmprionModel.ts +0 -92
  435. package/src/model/extensions/amprion/project/AMPRIONConstructionProject.ts +0 -174
  436. package/src/model/extensions/amprion/project/AMPRIONConstructionProjectBundle.ts +0 -89
  437. package/src/model/extensions/amprion/project/AMPRIONConstructionProjectPlan.ts +0 -64
  438. package/src/model/extensions/amprion/project/AMPRIONErpProject.ts +0 -21
  439. package/src/model/extensions/amprion/project/AMPRIONErpProjectPhase.ts +0 -89
  440. package/src/model/extensions/amprion/project/AMPRIONErpProjectStructure.ts +0 -36
  441. package/src/model/extensions/amprion/project/AMPRIONProjectPriorityKind.ts +0 -5
  442. package/src/model/extensions/amprion/wires/AMPRIONSeriesCompensator.ts +0 -53
  443. package/src/model/extensions/enervance/assets/EVImportanceScore.ts +0 -58
  444. package/src/model/extensions/enervance/core/EVTerminal.ts +0 -63
  445. package/src/model/extensions/enervance/operations/EVTerminalAction.ts +0 -144
  446. package/src/model/extensions/neplan-westnetz/assets/WNFacility.ts +0 -121
  447. package/src/model/extensions/neplan-westnetz/core/WNConnectivityNode.ts +0 -344
  448. package/src/model/extensions/neplan-westnetz/core/WNFeeder.ts +0 -133
  449. package/src/model/extensions/neplan-westnetz/faults/WNFaultConnectivityNode.ts +0 -113
  450. package/src/model/extensions/neplan-westnetz/operations/WNOutage.ts +0 -111
  451. package/src/model/extensions/neplan-westnetz/wires/WNEnergyConsumer.ts +0 -451
  452. package/src/model/faults/EquipmentFault.ts +0 -9
  453. package/src/model/faults/Fault.ts +0 -41
  454. package/src/model/faults/LineFault.ts +0 -10
  455. package/src/model/generation/FossilFuel.ts +0 -53
  456. package/src/model/generation/FuelType.ts +0 -8
  457. package/src/model/generation/GeneratingUnit.ts +0 -157
  458. package/src/model/generation/GeneratorControlSource.ts +0 -6
  459. package/src/model/generation/HydroEnergyConversionKind.ts +0 -4
  460. package/src/model/generation/HydroGeneratingUnit.ts +0 -14
  461. package/src/model/generation/HydroPlantStorageKind.ts +0 -5
  462. package/src/model/generation/HydroPowerPlant.ts +0 -13
  463. package/src/model/generation/HydroPump.ts +0 -13
  464. package/src/model/generation/NuclearGeneratingUnit.ts +0 -8
  465. package/src/model/generation/SolarGeneratingUnit.ts +0 -8
  466. package/src/model/generation/ThermalGeneratingUnit.ts +0 -42
  467. package/src/model/generation/WindGenUnitKind.ts +0 -4
  468. package/src/model/generation/WindGeneratingUnit.ts +0 -84
  469. package/src/model/loadmodel/ConformLoad.ts +0 -34
  470. package/src/model/model/Model.ts +0 -1253
  471. package/src/model/operationallimits/CurrentLimit.ts +0 -92
  472. package/src/model/operationallimits/ENTSOEOperationalLimitType.ts +0 -5
  473. package/src/model/operationallimits/LimitTypeKind.ts +0 -9
  474. package/src/model/operationallimits/OperationalLimit.ts +0 -68
  475. package/src/model/operationallimits/OperationalLimitDirectionKind.ts +0 -5
  476. package/src/model/operationallimits/OperationalLimitSet.ts +0 -124
  477. package/src/model/operationallimits/OperationalLimitType.ts +0 -94
  478. package/src/model/operations/Outage.ts +0 -68
  479. package/src/model/operations/SwitchAction.ts +0 -121
  480. package/src/model/operations/SwitchActionKind.ts +0 -6
  481. package/src/model/operations/SwitchingAction.ts +0 -43
  482. package/src/model/operations/SwitchingPlan.ts +0 -141
  483. package/src/model/operations/UnplannedOutage.ts +0 -9
  484. package/src/model/statevariables/StateVariable.ts +0 -28
  485. package/src/model/statevariables/SvPowerFlow.ts +0 -75
  486. package/src/model/statevariables/SvStatus.ts +0 -51
  487. package/src/model/statevariables/SvTapStep.ts +0 -54
  488. package/src/model/statevariables/SvVoltage.ts +0 -74
  489. package/src/model/topology/TopologicalIsland.ts +0 -57
  490. package/src/model/topology/TopologicalNode.ts +0 -203
  491. package/src/model/wires/ACLineSegment.ts +0 -309
  492. package/src/model/wires/AsynchronousMachine.ts +0 -93
  493. package/src/model/wires/AsynchronousMachineKind.ts +0 -5
  494. package/src/model/wires/Breaker.ts +0 -82
  495. package/src/model/wires/BusbarSection.ts +0 -70
  496. package/src/model/wires/Clamp.ts +0 -33
  497. package/src/model/wires/CompositeSwitch.ts +0 -13
  498. package/src/model/wires/Conductor.ts +0 -55
  499. package/src/model/wires/Connector.ts +0 -16
  500. package/src/model/wires/Cut.ts +0 -7
  501. package/src/model/wires/Disconnector.ts +0 -120
  502. package/src/model/wires/EarthFaultCompensator.ts +0 -20
  503. package/src/model/wires/EnergyConsumer.ts +0 -255
  504. package/src/model/wires/EnergySource.ts +0 -337
  505. package/src/model/wires/ExternalNetworkInjection.ts +0 -276
  506. package/src/model/wires/Ground.ts +0 -40
  507. package/src/model/wires/GroundDisconnector.ts +0 -39
  508. package/src/model/wires/Jumper.ts +0 -8
  509. package/src/model/wires/Junction.ts +0 -57
  510. package/src/model/wires/Line.ts +0 -117
  511. package/src/model/wires/LoadBreakSwitch.ts +0 -107
  512. package/src/model/wires/PetersenCoilModeKind.ts +0 -5
  513. package/src/model/wires/Plant.ts +0 -12
  514. package/src/model/wires/PowerTransformer.ts +0 -231
  515. package/src/model/wires/PowerTransformerEnd.ts +0 -168
  516. package/src/model/wires/ProtectedSwitch.ts +0 -9
  517. package/src/model/wires/RatioTapChanger.ts +0 -96
  518. package/src/model/wires/RatioTapChangerTable.ts +0 -35
  519. package/src/model/wires/RatioTapChangerTablePoint.ts +0 -45
  520. package/src/model/wires/ReactiveCapabilityCurve.ts +0 -35
  521. package/src/model/wires/Recloser.ts +0 -32
  522. package/src/model/wires/RegulatingCondEq.ts +0 -67
  523. package/src/model/wires/RegulatingControl.ts +0 -217
  524. package/src/model/wires/RegulatingControlModeKind.ts +0 -11
  525. package/src/model/wires/RotatingMachine.ts +0 -172
  526. package/src/model/wires/SeriesCompensator.ts +0 -166
  527. package/src/model/wires/ShortCircuitRotorKind.ts +0 -6
  528. package/src/model/wires/Switch.ts +0 -230
  529. package/src/model/wires/SynchronousMachine.ts +0 -267
  530. package/src/model/wires/SynchronousMachineKind.ts +0 -9
  531. package/src/model/wires/SynchronousMachineOperatingMode.ts +0 -5
  532. package/src/model/wires/TapChanger.ts +0 -55
  533. package/src/model/wires/TapChangerControl.ts +0 -32
  534. package/src/model/wires/TapChangerTablePoint.ts +0 -41
  535. package/src/model/wires/TransformerControlMode.ts +0 -4
  536. package/src/model/wires/TransformerEnd.ts +0 -143
  537. package/src/model/wires/WindingConnection.ts +0 -9
  538. package/src/package.json +0 -16
  539. package/src/util/datatype-converter.ts +0 -48
  540. package/src/util/sparql/sparql-building-block.ts +0 -43
  541. package/src/util/sparql/sparql-utils.ts +0 -150
  542. package/src/util/util-create.ts +0 -148
  543. package/src/util/util-search.ts +0 -40
  544. package/src/util/util-topology.ts +0 -175
  545. package/src/util/utils.ts +0 -255
  546. package/src/util/xml/utils.parser.ts +0 -29
  547. package/src/util/xml/xml.parser.ts +0 -107
  548. package/src/util/xml/xml.serializer.ts +0 -245
  549. package/test/apache-jena-fuseki-interface/apache-jena-fuseki-neplan-1.tests.sp-ec.ts +0 -838
  550. package/test/apache-jena-fuseki-interface/apache-jena-fuseki-neplan-2.tests.sp-ec.ts +0 -216
  551. package/test/apache-jena-fuseki-interface/apache-jena-fuseki-neplan-katarina-ruhrau.tests.spec.ts +0 -223
  552. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/LICENSE +0 -617
  553. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/NOTICE +0 -216
  554. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/README +0 -62
  555. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/bin/s-delete +0 -725
  556. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/bin/s-get +0 -725
  557. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/bin/s-head +0 -725
  558. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/bin/s-post +0 -725
  559. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/bin/s-put +0 -725
  560. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/bin/s-query +0 -725
  561. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/bin/s-update +0 -725
  562. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/bin/s-update-form +0 -725
  563. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/bin/soh +0 -725
  564. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/fuseki +0 -512
  565. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/fuseki-backup +0 -34
  566. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/fuseki-server +0 -95
  567. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/fuseki-server.bat +0 -28
  568. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/fuseki-server.jar +0 -0
  569. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/fuseki.service +0 -59
  570. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/fuseki.war +0 -0
  571. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/config.ttl +0 -30
  572. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/configuration/test.ttl +0 -50
  573. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/shiro.ini +0 -38
  574. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/GOSP.dat +0 -0
  575. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/GOSP.idn +0 -0
  576. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/GPOS.dat +0 -0
  577. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/GPOS.idn +0 -0
  578. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/GSPO.dat +0 -0
  579. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/GSPO.idn +0 -0
  580. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/OSP.dat +0 -0
  581. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/OSP.idn +0 -0
  582. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/OSPG.dat +0 -0
  583. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/OSPG.idn +0 -0
  584. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/POS.dat +0 -0
  585. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/POS.idn +0 -0
  586. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/POSG.dat +0 -0
  587. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/POSG.idn +0 -0
  588. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/SPO.dat +0 -0
  589. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/SPO.idn +0 -0
  590. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/SPOG.dat +0 -0
  591. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/SPOG.idn +0 -0
  592. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/journal.jrnl +0 -0
  593. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/node2id.dat +0 -0
  594. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/node2id.idn +0 -0
  595. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/nodes.dat +0 -0
  596. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/prefix2id.dat +0 -0
  597. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/prefix2id.idn +0 -0
  598. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/prefixIdx.dat +0 -0
  599. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/prefixIdx.idn +0 -0
  600. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/prefixes.dat +0 -0
  601. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/tdb.cfg +0 -32
  602. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/templates/config-mem +0 -27
  603. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/templates/config-service +0 -23
  604. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/templates/config-tdb +0 -31
  605. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/templates/config-tdb-dir +0 -30
  606. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/templates/config-tdb-mem +0 -30
  607. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/templates/config-tdb2 +0 -31
  608. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/templates/config-tdb2-dir +0 -30
  609. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/templates/config-tdb2-mem +0 -30
  610. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/WEB-INF/web.xml +0 -332
  611. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/admin-logs.html +0 -73
  612. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/bootstrap-select.min.css +0 -7
  613. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/bootstrap-theme.css.map +0 -1
  614. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/bootstrap-theme.min.css +0 -7
  615. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/bootstrap.css.map +0 -1
  616. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/bootstrap.min.css +0 -7
  617. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/codemirror.css +0 -301
  618. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/codemirror.min.css +0 -1
  619. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/font-awesome.min.css +0 -4
  620. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/fui.css +0 -191
  621. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/jquery.dataTables.css +0 -220
  622. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/jquery.fileupload-noscript.css +0 -22
  623. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/jquery.fileupload-ui-noscript.css +0 -17
  624. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/jquery.fileupload-ui.css +0 -57
  625. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/jquery.fileupload.css +0 -36
  626. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/pivot.min.css +0 -1
  627. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/qonsole.css +0 -172
  628. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/yasqe.min.css +0 -1
  629. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/yasr.min.css +0 -1
  630. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/dataset.html +0 -247
  631. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/documentation.html +0 -83
  632. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/fonts/FontAwesome.otf +0 -0
  633. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/fonts/fontawesome-webfont.eot +0 -0
  634. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/fonts/fontawesome-webfont.svg +0 -504
  635. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/fonts/fontawesome-webfont.ttf +0 -0
  636. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/fonts/fontawesome-webfont.woff +0 -0
  637. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/fonts/glyphicons-halflings-regular.eot +0 -0
  638. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/fonts/glyphicons-halflings-regular.svg +0 -229
  639. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/fonts/glyphicons-halflings-regular.ttf +0 -0
  640. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/fonts/glyphicons-halflings-regular.woff +0 -0
  641. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/back_disabled.png +0 -0
  642. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/back_enabled.png +0 -0
  643. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/back_enabled_hover.png +0 -0
  644. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/favicon.ico +0 -0
  645. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/forward_disabled.png +0 -0
  646. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/forward_enabled.png +0 -0
  647. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/forward_enabled_hover.png +0 -0
  648. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/jena-logo-notext-small.png +0 -0
  649. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/sort_asc.png +0 -0
  650. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/sort_asc_disabled.png +0 -0
  651. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/sort_both.png +0 -0
  652. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/sort_desc.png +0 -0
  653. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/sort_desc_disabled.png +0 -0
  654. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/wait30.gif +0 -0
  655. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/index.html +0 -101
  656. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/controllers/dataset-controller.js +0 -69
  657. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/controllers/index-controller.js +0 -50
  658. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/controllers/manage-controller.js +0 -39
  659. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/controllers/query-controller.js +0 -72
  660. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/controllers/upload-controller.js +0 -42
  661. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/controllers/validation-controller.js +0 -38
  662. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/fui.js +0 -33
  663. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/main.dataset.js +0 -31
  664. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/main.index.js +0 -24
  665. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/main.manage.js +0 -27
  666. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/main.validation.js +0 -24
  667. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/models/dataset-stats.js +0 -102
  668. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/models/dataset.js +0 -262
  669. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/models/fuseki-server.js +0 -180
  670. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/models/task.js +0 -105
  671. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/models/validation-options.js +0 -85
  672. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/qonsole-config.js +0 -27
  673. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/services/ping-service.js +0 -54
  674. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/services/validation-service.js +0 -98
  675. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/templates/dataset-edit.tpl +0 -58
  676. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/templates/dataset-info.tpl +0 -40
  677. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/templates/dataset-management.tpl +0 -62
  678. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/templates/dataset-selection-list.tpl +0 -22
  679. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/templates/dataset-selector.tpl +0 -15
  680. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/templates/dataset-simple-create.tpl +0 -85
  681. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/templates/dataset-stats.tpl +0 -14
  682. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/templates/file-upload.tpl +0 -46
  683. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/templates/uploadable-file.tpl +0 -23
  684. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/util/page-utils.js +0 -33
  685. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/views/dataset-edit.js +0 -205
  686. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/views/dataset-info.js +0 -76
  687. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/views/dataset-management.js +0 -173
  688. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/views/dataset-selection-list.js +0 -58
  689. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/views/dataset-selector.js +0 -84
  690. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/views/dataset-simple-create.js +0 -102
  691. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/views/dataset-stats.js +0 -41
  692. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/views/datasets-dropdown-list.js +0 -43
  693. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/views/file-upload.js +0 -225
  694. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/views/tabbed-view-manager.js +0 -63
  695. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/views/uploadable-file.js +0 -39
  696. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/views/validation-options.js +0 -54
  697. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/common-config.js +0 -94
  698. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/addon/fold/brace-fold.js +0 -105
  699. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/addon/fold/comment-fold.js +0 -57
  700. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/addon/fold/foldcode.js +0 -145
  701. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/addon/fold/foldgutter.js +0 -134
  702. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/addon/fold/xml-fold.js +0 -181
  703. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/backbone-min.js +0 -2
  704. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/backbone.js +0 -1581
  705. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/backbone.marionette.js +0 -2385
  706. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/bootstrap-select.min.js +0 -8
  707. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/bootstrap.min.js +0 -6
  708. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/html5shiv.js +0 -8
  709. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/jquery-1.10.2.js +0 -9789
  710. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/jquery-1.10.2.min.js +0 -6
  711. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/jquery-ui.min.js +0 -7
  712. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/jquery.dataTables.min.js +0 -157
  713. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/jquery.fileupload.js +0 -1426
  714. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/jquery.fileupload.local.js +0 -1428
  715. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/jquery.form.js +0 -1278
  716. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/jquery.iframe-transport.js +0 -214
  717. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/jquery.ui.widget.js +0 -530
  718. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/jquery.xdomainrequest.js +0 -90
  719. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/lib/codemirror.js +0 -7638
  720. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/mode/javascript/javascript.js +0 -683
  721. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/mode/sparql/sparql.js +0 -160
  722. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/mode/turtle/turtle.js +0 -160
  723. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/mode/xml/xml.js +0 -384
  724. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/pivot.js +0 -1363
  725. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/pivot.min.js +0 -2
  726. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/pivot.min.js.map +0 -1
  727. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/plugins/text.js +0 -386
  728. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/qonsole.js +0 -577
  729. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/refresh.sh +0 -21
  730. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/require.js +0 -2076
  731. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/require.min.js +0 -36
  732. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/respond.min.js +0 -6
  733. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/sprintf-0.7-beta1.js +0 -183
  734. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/underscore.js +0 -1276
  735. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/yasqe.min.js +0 -9
  736. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/yasqe.min.js.map +0 -1
  737. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/yasr.min.js +0 -8
  738. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/yasr.min.js.map +0 -1
  739. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/manage.html +0 -110
  740. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/services.html +0 -76
  741. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/test/test-fuseki-config.ttl +0 -27
  742. package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/validate.html +0 -147
  743. package/test/apache-jena-fuseki-interface/data/json/PersistData.json +0 -111
  744. package/test/apache-jena-fuseki-interface/data/xml/AssetHealthEvent.xml +0 -45
  745. package/test/apache-jena-fuseki-interface/data/xml/AssetOwner.xml +0 -11
  746. package/test/apache-jena-fuseki-interface/data/xml/Outages.xml +0 -69
  747. package/test/apache-jena-fuseki-interface/data/xml/PsrType.xml +0 -80
  748. package/test/apache-jena-fuseki-interface/data/xml/finnentrop/Finnentrop_Rootnet_Area 1_EQ_V1.xml +0 -20867
  749. package/test/apache-jena-fuseki-interface/data/xml/finnentrop/Finnentrop_Rootnet_Area 1_SSH_V1.xml +0 -3784
  750. package/test/apache-jena-fuseki-interface/data/xml/neplan-eslohe/Eslohe_Rootnet_Area_1_EQ_V1.xml +0 -15755
  751. package/test/apache-jena-fuseki-interface/data/xml/neplan-eslohe/Eslohe_Rootnet_Area_1_EQ_V1_feeder_ext.xml +0 -54
  752. package/test/apache-jena-fuseki-interface/data/xml/neplan-eslohe/Eslohe_Rootnet_Area_1_SSH_V1.xml +0 -2796
  753. package/test/apache-jena-fuseki-interface/data/xml/ruhrau-katharina/Ruhrau_Katharina_Rootnet_Area 1_EQ_V1.xml +0 -42569
  754. package/test/apache-jena-fuseki-interface/data/xml/ruhrau-katharina/Ruhrau_Katharina_Rootnet_Area 1_SSH_V1.xml +0 -10108
  755. package/test/apache-jena-fuseki-interface/data/xml/ruhrau-katharina/Ruhrau_Katharina_Rootnet_Area 1_SV_V1.xml +0 -6234
  756. package/test/apache-jena-fuseki-interface/data/xml-rdf-data.xml +0 -84
  757. package/test/cim-xml-rdf-parser/cim-xml-rdf-parser.tests.spec.ts +0 -23
  758. package/test/cim-xml-rdf-parser/data/rdfxml_serialisation.xml +0 -192
  759. package/test/integral7-converter/integral7-converter.tests.spec.ts +0 -195
  760. package/test/power-system-data-model-converter/data/fixed_feed_in_input.csv +0 -72
  761. package/test/power-system-data-model-converter/data/line_input.csv +0 -1910
  762. package/test/power-system-data-model-converter/data/line_type_input.csv +0 -5
  763. package/test/power-system-data-model-converter/data/load_input.csv +0 -1829
  764. package/test/power-system-data-model-converter/data/node_input.csv +0 -2835
  765. package/test/power-system-data-model-converter/data/time_series_mapping.csv +0 -878
  766. package/test/power-system-data-model-converter/data/transformer_2_w_input.csv +0 -1047
  767. package/test/power-system-data-model-converter/data/transformer_2_w_type_input.csv +0 -5
  768. package/test/power-system-data-model-converter/power-system-data-model-converter.tests.spec.ts +0 -310
  769. package/tsconfig.json +0 -24
  770. package/webpack.config.js +0 -24
@@ -1,111 +0,0 @@
1
- import { Outage } from '../../../operations/Outage';
2
- import { WNConnectivityNode } from '../core/WNConnectivityNode';
3
- import { getValue, parseCsvLineIntoArray } from '../../../../util/utils';
4
- import { Model } from '../../../model/Model';
5
-
6
- export class WNOutage extends Outage {
7
-
8
-
9
- /** Von einem N-1 Fall betroffene ConnectivityNodes */
10
- outageIsolationConnectivityNodes: Map<string, WNConnectivityNode>;
11
- outageIsolationConnectivityNodesUUIDs: string[];
12
-
13
- constructor(mrid?: string, name?: string, shortName?: string, description?: string, baseIRI?: string) {
14
- super(mrid, name, shortName, description);
15
- this.outageIsolationConnectivityNodes = new Map();
16
- this.baseIRI = baseIRI;
17
- }
18
-
19
- addOutageIsolationConnectivityNodes(cn: WNConnectivityNode): string {
20
- if (!this.outageIsolationConnectivityNodes.has(cn.mrid)) {
21
- this.outageIsolationConnectivityNodes.set(cn.mrid, cn);
22
- cn.addOutage(this);
23
- return this.getAssociationSparqlTriple(this.baseIRI, this.mrid, 'westnetzneplan', 'WNOutage', 'OutageIsolationConnectivityNodes', cn.mrid);
24
- } else {
25
- console.log(`Outage ${this.mrid} add: OutageIsolationEquipment ${cn.mrid} already exists.`);
26
- }
27
- return '';
28
- }
29
-
30
- /** ------------------ JSON------------------------*/
31
- public toJSON(){
32
- super.toJSON();
33
- this.toJSONAttributes();
34
- this.toJSONAssociations();
35
- return this.json;
36
- }
37
-
38
- public toJSONAttributes(){
39
- super.toJSONAttributes();
40
- }
41
-
42
- public toJSONAssociations(){
43
- super.toJSONAssociations();
44
- }
45
-
46
- /** ------------------ Fuseki Parser ------------------------*/
47
- public static resolveClassFusekiJSON(data: any, cimModel: Model){
48
- data?.results?.bindings?.forEach((value: any) => {
49
- const newClass = new WNOutage();
50
- newClass.resolveAttributesFusekiJSON(value);
51
- cimModel.addOutage(newClass);
52
- });
53
- }
54
-
55
- protected resolveAttributesFusekiJSON(value: any) {
56
- super.resolveAttributesFusekiJSON(value);
57
- this.outageIsolationConnectivityNodesUUIDs = parseCsvLineIntoArray(getValue(value, 'outageIsolationConnectivityNodes'), ',');
58
- }
59
-
60
- public resolveParsedAssociations(cimModel: Model) {
61
- super.resolveParsedAssociations(cimModel);
62
- /** connectivityModes parsen */
63
- for (const cnUUID of this.outageIsolationConnectivityNodesUUIDs) {
64
- const cn = cimModel.getObject(cnUUID);
65
- if (cn && cn instanceof WNConnectivityNode) {
66
- this.outageIsolationConnectivityNodes.set(cn.mrid, cn);
67
- cn.outages.set(this.mrid, this);
68
- }
69
- }
70
- this.outageIsolationConnectivityNodesUUIDs.length = 0;
71
- }
72
-
73
- public static getQuerySPARQL(graphURI: string): string {
74
- if(graphURI.length > 0){
75
- return WNOutage.sparqlQuery.replace('<http://default/>', graphURI);
76
- }
77
- return WNOutage.sparqlQuery;
78
- }
79
- public static sparqlQuery: string = `
80
- PREFIX cim: <http://iec.ch/TC57/2013/CIM-schema-cim16#>
81
- PREFIX westnetzneplan: <http://westnetzneplan.de/CIM/Extensions#>
82
- PREFIX entsoe: <http://entsoe.eu/CIM/SchemaExtension/3/1#>
83
- PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
84
- PREFIX apf: <http://jena.hpl.hp.com/ARQ/property#>
85
- PREFIX afn: <http://jena.apache.org/ARQ/function#>
86
-
87
- SELECT (STRAFTER(str(?MRID), '#_') AS ?uuid)
88
- (CONCAT(STRBEFORE(str(?MRID), '#_'), '#_') AS ?baseIRI)
89
- ?name
90
- (group_concat(STRAFTER(str(?oieUUIDs), '#_');separator=',') as ?outageIsolationEquipments)
91
- (group_concat(STRAFTER(str(?oicnUUIDs), '#_');separator=',') as ?outageIsolationConnectivityNodes)
92
-
93
- WHERE {
94
- GRAPH <http://default/>{
95
- ?MRID rdf:type cim:Outage .
96
- OPTIONAL {?MRID cim:IdentifiedObject.name ?name .}
97
- OPTIONAL {?MRID cim:Outage.OutageIsolationEquipment ?oieUUIDs .}
98
- OPTIONAL {?MRID westnetzneplan:WNOutage.OutageIsolationConnectivityNodes ?oicnUUIDs .}
99
- }
100
- }
101
- GROUP BY ?MRID ?baseIRI ?name `;
102
-
103
- public createNewStatementSPARQL(): string {
104
-
105
- return `
106
- <${this.baseIRI}${this.mrid}>
107
- a cim:Outage ;
108
- cim:IdentifiedObject.name "WNOutage" .
109
- `;
110
- }
111
- }
@@ -1,451 +0,0 @@
1
- import { EnergyConsumer } from '../../../wires/EnergyConsumer';
2
- import { Model } from '../../../model/Model';
3
- import { getNumberValue, getValue } from '../../../../util/utils';
4
-
5
- import { IEnergyConsumer } from '../../../../interfaces/model/wires/IEnergyConsumer';
6
- import { TripleData } from '../../../../interfaces/persistence-interfaces';
7
-
8
- export class WNEnergyConsumer extends EnergyConsumer implements IEnergyConsumer {
9
-
10
- cosPhi: number;
11
-
12
- /** vetragliche Wirklast */
13
- contractualP: number;
14
- /** vetragliche Blindlast */
15
- contractualQ: number;
16
-
17
- /** gemessene Wirklast */
18
- measuredP: number;
19
- /** gemessene Blindlast */
20
- measuredQ: number;
21
-
22
- /** unterlagerte vetragliche Wirklast */
23
- subContractualP: number;
24
- /** unterlagerte ragliche Blindlast */
25
- subContractualQ: number;
26
-
27
- /** unterlagerte gemessene Wirklast */
28
- subMeasuredP: number;
29
- /** unterlagerte gemessene Blindlast */
30
- subMeasuredQ: number;
31
-
32
- /** Trafoleistung Wirklast */
33
- powerTransfomer1P: number;
34
- /** Trafoleistung Blindlast */
35
- powerTransfomer1Q: number;
36
-
37
- /** Trafoleistung Wirklast */
38
- powerTransfomer2P: number;
39
- /** Trafoleistung Blindlast */
40
- powerTransfomer2Q: number;
41
-
42
- /** die selektierte Lastangabe (wn_energyconsumer_installed, wn_energyconsumer_contractual, wn_energyconsumer_measured, trafo) */
43
- selectedLoad: string;
44
-
45
- /** Ein benutzerdefinierter Skalierungsfaktor. */
46
- customMultiplier: number;
47
-
48
- /**
49
- * VB – vertragliche Last der angeschlossenen Niederspannungskunden
50
- MB – gemessene Last der angeschlossenen Niederspannungskunden
51
- V – vertragliche Last des Mittelspannungskunden
52
- M – gemessene Last des Mittelspannungskunden
53
- T – Trafo-Leistung
54
- * */
55
- constructor(uuid?: string, name?: string, shortName?: string, description?: string){
56
- super(uuid, name, shortName, description);
57
-
58
-
59
- this.prop2namespacePrefix.set('contractualP', 'westnetzneplan'); // zur Generierung der Insert-Statements
60
- this.prop2Class.set('contractualP', 'WNEnergyConsumer');
61
- this.prop2Datatype.set('contractualP', 'number');
62
- this.property2type.set('contractualP', 'property');
63
-
64
- this.prop2namespacePrefix.set('contractualQ', 'westnetzneplan'); // zur Generierung der Insert-Statements
65
- this.prop2Class.set('contractualQ', 'WNEnergyConsumer');
66
- this.prop2Datatype.set('contractualQ', 'number');
67
- this.property2type.set('contractualQ', 'property');
68
-
69
- this.prop2namespacePrefix.set('measuredP', 'westnetzneplan'); // zur Generierung der Insert-Statements
70
- this.prop2Class.set('measuredP', 'WNEnergyConsumer');
71
- this.prop2Datatype.set('measuredP', 'number');
72
- this.property2type.set('measuredP', 'property');
73
-
74
- this.prop2namespacePrefix.set('measuredQ', 'westnetzneplan'); // zur Generierung der Insert-Statements
75
- this.prop2Class.set('measuredQ', 'WNEnergyConsumer');
76
- this.prop2Datatype.set('measuredQ', 'number');
77
- this.property2type.set('measuredQ', 'property');
78
-
79
- this.prop2namespacePrefix.set('subContractualP', 'westnetzneplan'); // zur Generierung der Insert-Statements
80
- this.prop2Class.set('subContractualP', 'WNEnergyConsumer');
81
- this.prop2Datatype.set('subContractualP', 'number');
82
- this.property2type.set('subContractualP', 'property');
83
-
84
- this.prop2namespacePrefix.set('subContractualQ', 'westnetzneplan'); // zur Generierung der Insert-Statements
85
- this.prop2Class.set('subContractualQ', 'WNEnergyConsumer');
86
- this.prop2Datatype.set('subContractualQ', 'number');
87
- this.property2type.set('subContractualQ', 'property');
88
-
89
- this.prop2namespacePrefix.set('subMeasuredP', 'westnetzneplan'); // zur Generierung der Insert-Statements
90
- this.prop2Class.set('subMeasuredP', 'WNEnergyConsumer');
91
- this.prop2Datatype.set('subMeasuredP', 'number');
92
- this.property2type.set('subMeasuredP', 'property');
93
-
94
- this.prop2namespacePrefix.set('subMeasuredQ', 'westnetzneplan'); // zur Generierung der Insert-Statements
95
- this.prop2Class.set('subMeasuredQ', 'WNEnergyConsumer');
96
- this.prop2Datatype.set('subMeasuredQ', 'number');
97
- this.property2type.set('subMeasuredQ', 'property');
98
-
99
- this.prop2namespacePrefix.set('powerTransfomer1P', 'westnetzneplan'); // zur Generierung der Insert-Statements
100
- this.prop2Class.set('powerTransfomer1P', 'WNEnergyConsumer');
101
- this.prop2Datatype.set('powerTransfomer1P', 'number');
102
- this.property2type.set('powerTransfomer1P', 'property');
103
-
104
- this.prop2namespacePrefix.set('powerTransfomer1Q', 'westnetzneplan'); // zur Generierung der Insert-Statements
105
- this.prop2Class.set('powerTransfomer1Q', 'WNEnergyConsumer');
106
- this.prop2Datatype.set('powerTransfomer1Q', 'number');
107
- this.property2type.set('powerTransfomer1Q', 'property');
108
-
109
- this.prop2namespacePrefix.set('powerTransfomer2P', 'westnetzneplan'); // zur Generierung der Insert-Statements
110
- this.prop2Class.set('powerTransfomer2P', 'WNEnergyConsumer');
111
- this.prop2Datatype.set('powerTransfomer2P', 'number');
112
- this.property2type.set('powerTransfomer2P', 'property');
113
-
114
- this.prop2namespacePrefix.set('powerTransfomer2Q', 'westnetzneplan'); // zur Generierung der Insert-Statements
115
- this.prop2Class.set('powerTransfomer2Q', 'WNEnergyConsumer');
116
- this.prop2Datatype.set('powerTransfomer2Q', 'number');
117
- this.property2type.set('powerTransfomer2Q', 'property');
118
-
119
-
120
- this.prop2namespacePrefix.set('selectedLoad', 'westnetzneplan'); // zur Generierung der Insert-Statements
121
- this.prop2Class.set('selectedLoad', 'WNEnergyConsumer');
122
- this.prop2Datatype.set('selectedLoad', 'string');
123
- this.property2type.set('selectedLoad', 'property');
124
-
125
- this.prop2namespacePrefix.set('cosPhi', 'westnetzneplan'); // zur Generierung der Insert-Statements
126
- this.prop2Class.set('cosPhi', 'WNEnergyConsumer');
127
- this.prop2Datatype.set('cosPhi', 'number');
128
- this.property2type.set('cosPhi', 'property');
129
-
130
- this.prop2namespacePrefix.set('customMultiplier', 'westnetzneplan'); // zur Generierung der Insert-Statements
131
- this.prop2Class.set('customMultiplier', 'WNEnergyConsumer');
132
- this.prop2Datatype.set('customMultiplier', 'number');
133
- this.property2type.set('customMultiplier', 'property');
134
-
135
- }
136
-
137
-
138
- public static sparqlQuery : string = `
139
- PREFIX cim: <http://iec.ch/TC57/2013/CIM-schema-cim16#>
140
- PREFIX westnetzneplan: <http://westnetzneplan.de/CIM/Extensions#>
141
- PREFIX entsoe: <http://entsoe.eu/CIM/SchemaExtension/3/1#>
142
- PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
143
- PREFIX amp: <http://amprion.net/2018/cim_extensions#>
144
- PREFIX apf: <http://jena.hpl.hp.com/ARQ/property#>
145
- PREFIX afn: <http://jena.apache.org/ARQ/function#>
146
-
147
- SELECT (strafter(strafter(str(?econUUID), '#'), '_') AS ?uuid)
148
- (CONCAT(STRBEFORE(STR(?econUUID), '#_'), '#_') AS ?baseIRI)
149
- ?name ?shortName ?description ?aggregate ?p ?q
150
- ?contractualP ?contractualQ
151
- ?measuredP ?measuredQ
152
-
153
- ?subContractualP ?subContractualQ
154
- ?subMeasuredP ?subMeasuredQ
155
-
156
- ?powerTransfomer1P ?powerTransfomer1Q
157
- ?powerTransfomer2P ?powerTransfomer2Q
158
- ?selectedLoad ?cosPhi ?customMultiplier
159
- (strafter(strafter(str(?ecUUID), '#'), '_') AS ?equipmentContainerUUID)
160
- (strafter(strafter(str(?ptUUID), '#'), '_') AS ?psrTypeUUID)
161
- (group_concat(STRAFTER(str(?aecUUIDs), '#_');separator=',') as ?additionalEquipmentContainerUUIDs)
162
- WHERE {
163
- GRAPH <http://default/>{
164
- ?econUUID rdf:type cim:EnergyConsumer .
165
- OPTIONAL{?econUUID cim:IdentifiedObject.name ?name .}
166
- OPTIONAL{?econUUID entsoe:IdentifiedObject.shortName ?shortName .}
167
- OPTIONAL{?econUUID cim:IdentifiedObject.description ?description .}
168
- OPTIONAL{?econUUID cim:EnergyConsumer.p ?p .}
169
- OPTIONAL{?econUUID cim:EnergyConsumer.q ?q .}
170
-
171
- OPTIONAL{?econUUID westnetzneplan:WNEnergyConsumer.contractualP ?contractualP .}
172
- OPTIONAL{?econUUID westnetzneplan:WNEnergyConsumer.contractualQ ?contractualQ .}
173
-
174
- OPTIONAL{?econUUID westnetzneplan:WNEnergyConsumer.measuredP ?measuredP .}
175
- OPTIONAL{?econUUID westnetzneplan:WNEnergyConsumer.measuredQ ?measuredQ .}
176
-
177
- OPTIONAL{?econUUID westnetzneplan:WNEnergyConsumer.subContractualP ?subContractualP .}
178
- OPTIONAL{?econUUID westnetzneplan:WNEnergyConsumer.subContractualQ ?subContractualQ .}
179
-
180
- OPTIONAL{?econUUID westnetzneplan:WNEnergyConsumer.subMeasuredP ?subMeasuredP .}
181
- OPTIONAL{?econUUID westnetzneplan:WNEnergyConsumer.subMeasuredQ ?subMeasuredQ .}
182
-
183
- OPTIONAL{?econUUID westnetzneplan:WNEnergyConsumer.powerTransfomer1P ?powerTransfomer1P .}
184
- OPTIONAL{?econUUID westnetzneplan:WNEnergyConsumer.powerTransfomer1Q ?powerTransfomer1Q .}
185
-
186
- OPTIONAL{?econUUID westnetzneplan:WNEnergyConsumer.powerTransfomer2P ?powerTransfomer2P .}
187
- OPTIONAL{?econUUID westnetzneplan:WNEnergyConsumer.powerTransfomer2Q ?powerTransfomer2Q .}
188
-
189
- OPTIONAL{?econUUID westnetzneplan:WNEnergyConsumer.selectedLoad ?selectedLoad .}
190
-
191
- OPTIONAL{?econUUID westnetzneplan:WNEnergyConsumer.cosPhi ?cosPhi .}
192
- OPTIONAL{?econUUID westnetzneplan:WNEnergyConsumer.customMultiplier ?customMultiplier .}
193
-
194
- OPTIONAL{?econUUID cim:Equipment.aggregate ?aggregate .}
195
- OPTIONAL{?econUUID cim:Equipment.EquipmentContainer ?ecUUID .}
196
- OPTIONAL{?econUUID cim:PowerSystemResource.PSRType ?ptUUID .}
197
- OPTIONAL{?econUUID cim:Equipment.AdditionalEquipmentContainer ?aecUUIDs .}
198
- }
199
- }
200
- GROUP BY ?econUUID ?baseIRI ?name ?shortName ?description ?aggregate ?p ?q
201
- ?contractualP ?contractualQ
202
- ?measuredP ?measuredQ
203
-
204
- ?subContractualP ?subContractualQ
205
- ?subMeasuredP ?subMeasuredQ
206
-
207
- ?powerTransfomer1P ?powerTransfomer1Q
208
- ?powerTransfomer2P ?powerTransfomer2Q
209
- ?selectedLoad ?cosPhi ?customMultiplier
210
- ?ecUUID ?ptUUID
211
- `
212
- public static getQuerySPARQL(graphURI: string): string{
213
- if(graphURI.length > 0){
214
- return WNEnergyConsumer.sparqlQuery.replace('<http://default/>', graphURI);
215
- }
216
- return WNEnergyConsumer.sparqlQuery;
217
- }
218
- public static resolveClassFusekiJSON(data: any, cimModel: Model){
219
- data.results.bindings.forEach((value: any) => {
220
- const newClass = new WNEnergyConsumer();
221
- newClass.resolveAttributesFusekiJSON(value);
222
- cimModel.addEnergyConsumer(newClass);
223
- });
224
- }
225
-
226
- protected resolveAttributesFusekiJSON(value: any){
227
- super.resolveAttributesFusekiJSON(value);
228
-
229
- this.contractualP = +getNumberValue(value, 'contractualP');
230
- this.contractualQ = +getNumberValue(value, 'contractualQ');
231
-
232
- this.measuredP = +getNumberValue(value, 'measuredP');
233
- this.measuredQ = +getNumberValue(value, 'measuredQ');
234
-
235
-
236
- this.subContractualP = +getNumberValue(value, 'subContractualP');
237
- this.subContractualQ = +getNumberValue(value, 'subContractualQ');
238
-
239
- this.subMeasuredP = +getNumberValue(value, 'subMeasuredP');
240
- this.subMeasuredQ = +getNumberValue(value, 'subMeasuredQ');
241
-
242
- this.powerTransfomer1P = +getNumberValue(value, 'powerTransfomer1P');
243
- this.powerTransfomer1Q = +getNumberValue(value, 'powerTransfomer1Q');
244
-
245
- this.powerTransfomer2P = +getNumberValue(value, 'powerTransfomer2P');
246
- this.powerTransfomer2Q = +getNumberValue(value, 'powerTransfomer2Q');
247
-
248
- this.selectedLoad = getValue(value, 'selectedLoad');
249
-
250
- this.cosPhi = +getNumberValue(value, 'cosPhi');
251
- this.customMultiplier = +getNumberValue(value, 'customMultiplier');
252
- }
253
-
254
- public toJSON(){
255
- super.toJSON();
256
- this.toJSONAttributes();
257
- this.toJSONAssociations();
258
- return this.json;
259
- }
260
-
261
- public toJSONAttributes(){
262
- super.toJSONAttributes();
263
-
264
- this.json['wn_energyconsumer_installed'] = this.getTypedApparentPower('wn_energyconsumer_installed');
265
- this.json['wn_energyconsumer_contractual'] = this.getTypedApparentPower('wn_energyconsumer_contractual');
266
- this.json['wn_energyconsumer_measured'] = this.getTypedApparentPower('wn_energyconsumer_measured');
267
-
268
- this.json['wn_energyconsumer_sub_measured'] = this.getTypedApparentPower('wn_energyconsumer_sub_measured');
269
- this.json['wn_energyconsumer_sub_contractual'] = this.getTypedApparentPower('wn_energyconsumer_sub_contractual');
270
-
271
- this.json['wn_energyconsumer_trafo1'] = this.getTypedApparentPower('wn_energyconsumer_trafo1');
272
- this.json['wn_energyconsumer_trafo2'] = this.getTypedApparentPower('wn_energyconsumer_trafo2');
273
-
274
- this.json['selectedLoad'] = this.selectedLoad;
275
- this.json['cosPhi'] = this.getCosPhi();
276
- this.json['customMultiplier'] = this.customMultiplier;
277
- }
278
-
279
- public getApparentPower(): number {
280
- return this.getTypedApparentPower(this.selectedLoad);
281
- }
282
-
283
- public getTypedApparentPower(loadType?: string): number {
284
-
285
- switch (loadType) {
286
- case 'wn_energyconsumer_contractual': {
287
- return Math.sqrt(Math.pow(this.contractualP, 2) + Math.pow(this.contractualQ, 2));
288
- }
289
- case 'wn_energyconsumer_measured': {
290
- return Math.sqrt(Math.pow(this.measuredP, 2) + Math.pow(this.measuredQ, 2));
291
- }
292
- case 'wn_energyconsumer_sub_measured': {
293
- return Math.sqrt(Math.pow(this.subMeasuredP, 2) + Math.pow(this.subMeasuredQ, 2));
294
- }
295
- case 'wn_energyconsumer_sub_contractual': {
296
- return Math.sqrt(Math.pow(this.subContractualP, 2) + Math.pow(this.subContractualQ, 2));
297
- }
298
- case 'wn_energyconsumer_trafo1': {
299
- return Math.sqrt(Math.pow(this.powerTransfomer1P, 2) + Math.pow(this.powerTransfomer1Q, 2));
300
- }
301
- case 'wn_energyconsumer_trafo2': {
302
- return Math.sqrt(Math.pow(this.powerTransfomer2P, 2) + Math.pow(this.powerTransfomer2Q, 2));
303
- }
304
- default: {
305
- return super.getApparentPower();
306
- }
307
- }
308
- }
309
-
310
- public getP(): number {
311
- switch (this.selectedLoad) {
312
- case 'wn_energyconsumer_contractual': {
313
- return isNaN(this.contractualP) ? 0 : this.contractualP;
314
- }
315
- case 'wn_energyconsumer_measured': {
316
- return isNaN(this.measuredP) ? 0 : this.measuredP;
317
- }
318
- case 'wn_energyconsumer_sub_measured': {
319
- return isNaN(this.subMeasuredP) ? 0 : this.subMeasuredP;
320
- }
321
- case 'wn_energyconsumer_sub_contractual': {
322
- return isNaN(this.subContractualP) ? 0 : this.subContractualP;
323
- }
324
- case 'wn_energyconsumer_trafo1': {
325
- return isNaN(this.powerTransfomer1P) ? 0 : this.powerTransfomer1P;
326
- }
327
- case 'wn_energyconsumer_trafo2': {
328
- return isNaN(this.powerTransfomer2P) ? 0 : this.powerTransfomer2P;
329
- }
330
- default: {
331
- return super.getP();
332
- }
333
- }
334
- }
335
-
336
- public getQ(): number {
337
- switch (this.selectedLoad) {
338
- case 'wn_energyconsumer_contractual': {
339
- return isNaN(this.contractualQ) ? 0 : this.contractualQ;
340
- }
341
- case 'wn_energyconsumer_measured': {
342
- return isNaN(this.measuredQ) ? 0 : this.measuredQ;
343
- }
344
- case 'wn_energyconsumer_sub_measured': {
345
- return isNaN(this.subMeasuredQ) ? 0 : this.subMeasuredQ;
346
- }
347
- case 'wn_energyconsumer_sub_contractual': {
348
- return isNaN(this.subContractualQ) ? 0 : this.subContractualQ;
349
- }
350
- case 'wn_energyconsumer_trafo1': {
351
- return isNaN(this.powerTransfomer1Q) ? 0 : this.powerTransfomer1Q;
352
- }
353
- case 'wn_energyconsumer_trafo2': {
354
- return isNaN(this.powerTransfomer2Q) ? 0 : this.powerTransfomer2Q;
355
- }
356
- default: {
357
- return super.getQ();
358
- }
359
- }
360
- }
361
-
362
- public setActiveReactivePower(apparentPower: number, loadType?: string): TripleData {
363
- const activepower = apparentPower * this.getCosPhi();
364
- const ractivePower = Math.sqrt(Math.pow(apparentPower, 2) - Math.pow(activepower, 2));
365
-
366
- const sparqlOldValue = [];
367
- const sparqlNewValue = [];
368
- switch (loadType) {
369
- case 'contractual': {
370
- /* sparqlOldValue.push(this.setProperty(undefined, 'contractualP', this.contractualP));
371
- sparqlOldValue.push(this.setProperty(undefined, 'contractualQ', this.contractualQ));
372
- sparqlNewValue.push(this.setProperty(undefined, 'contractualP', activepower));
373
- sparqlNewValue.push(this.setProperty(undefined, 'contractualQ', ractivePower));*/
374
- break;
375
- }
376
- case 'measured': {
377
- /* sparqlOldValue.push(this.setProperty(undefined, 'measuredP', this.measuredP));
378
- sparqlOldValue.push(this.setProperty(undefined, 'measuredQ', this.measuredQ));
379
- sparqlNewValue.push(this.setProperty(undefined, 'measuredP', activepower));
380
- sparqlNewValue.push(this.setProperty(undefined, 'measuredQ', ractivePower));*/
381
- break;
382
- }
383
- case 'installed': {
384
- /* sparqlOldValue.push(this.setProperty(undefined, 'p', this.p));
385
- sparqlOldValue.push(this.setProperty(undefined, 'q', this.q));
386
- sparqlNewValue.push(this.setProperty(undefined, 'p', activepower));
387
- sparqlNewValue.push(this.setProperty(undefined, 'q', ractivePower));*/
388
- break;
389
- }
390
-
391
- }
392
- return {
393
- oldTriple: sparqlOldValue.join(' '),
394
- newTriple: sparqlNewValue.join(' ')
395
- };
396
- }
397
-
398
-
399
- public setProperty(propName: string, propertyValue: any): TripleData {
400
- if (this.prop2Class.has(propName)) {
401
- const className = this.prop2Class.get(propName);
402
- const dataType = this.prop2Datatype.get(propName);
403
- const propertyType = this.property2type.get(propName);
404
- const propertyNs = this.prop2namespacePrefix.get(propName);
405
-
406
- if(propertyType === 'property') { // primitiver Datentyp
407
- return this.setAttribute(className, propName, propertyValue, dataType, propertyNs);
408
- } else { // komplexer Datentyp
409
- return this.setAssociation(className, propName, propertyValue, dataType, propertyNs);
410
- }
411
- }
412
-
413
- return { oldTriple: '', newTriple: ''};
414
- }
415
-
416
- /* public setAttribute(className:string, propName: string, propertyValue: any, dataType: string, namespace: string): TripleData {
417
- const oldTriple = this.getPropertySparqlTriple(this.baseIRI, this.mrid, namespace, className, propName, this[propName]);
418
- this[propName] = convertValue(dataType, propertyValue);
419
- const newTriple = this.getPropertySparqlTriple(this.baseIRI, this.mrid, namespace, className, propName, this[propName]);
420
- return {oldTriple, newTriple};
421
- }*/
422
-
423
- /* public setAssociation(className: string, associationName: string, relationObject: any, dataType: string, namespace: string): TripleData {
424
- const currentAssociationValue = this[associationName] ? this[associationName]['mrid'] : undefined;
425
- const oldTriple = currentAssociationValue ?
426
- this.getAsssociationSparqlTriple(this.baseIRI, this.mrid, namespace, className, dataType, currentAssociationValue) :
427
- '';
428
- this[associationName] = currentAssociationValue;
429
- const newAssociationValue = this[associationName] ? this[associationName]['mrid'] : undefined;
430
- const newTriple = currentAssociationValue ?
431
- this.getAsssociationSparqlTriple(this.baseIRI, this.mrid, namespace, className, dataType, newAssociationValue) :
432
- '';
433
- return { oldTriple, newTriple };
434
- }*/
435
-
436
-
437
-
438
- public getCosPhi(): number {
439
- return isNaN(this.cosPhi) ? 1 : this.cosPhi;
440
- }
441
-
442
- public setCosPhi(cosPhi: number): TripleData {
443
- /* const sparqlOldValue = this.setProperty(undefined, 'cosPhi', this.cosPhi);
444
- const sparqlNewValue = this.setProperty(undefined, 'cosPhi', cosPhi);*/
445
- return {
446
- oldTriple: '',
447
- newTriple: ''
448
- };
449
- }
450
-
451
- }
@@ -1,9 +0,0 @@
1
- import { Fault } from './Fault';
2
-
3
- export class EquipmentFault extends Fault {
4
-
5
- protected constructor(mrid?: string, name?: string, shortName?: string, description?: string){
6
- super(mrid, name, shortName, description);
7
- }
8
-
9
- }
@@ -1,41 +0,0 @@
1
- import { IdentifiedObject } from '../core/IdentifiedObject';
2
-
3
- import { IOutage } from '../../interfaces/model/operations/IOutage';
4
- import { Model } from '../model/Model';
5
- import { IIdentifiedObject } from '../../interfaces/model/core/IIdentifiedObject';
6
-
7
- export class Fault extends IdentifiedObject {
8
-
9
- outage: IOutage;
10
- outageUUID: string;
11
-
12
- constructor(mrid?: string, name?: string, shortName?: string, description?: string){
13
- super(mrid, name, shortName, description);
14
- }
15
-
16
- getFaultEquipment(): IIdentifiedObject {
17
- return;
18
- }
19
- setOutage(outage: IOutage): string {
20
- this.outage = outage;
21
- this.outage.addFault(this);
22
- return this.getAssociationSparqlTriple(this.baseIRI, this.mrid, 'cim', 'Fault', 'Outage', outage.mrid);
23
- }
24
- /** ------------------ JSON------------------------*/
25
- public toJSONAssociations(){
26
- super.toJSONAssociations();
27
- this.json['outageUUID'] = this.outageUUID;
28
- }
29
-
30
- /** ------------------ Fuseki Parser ------------------------*/
31
- public resolveParsedAssociations(cimModel: Model){
32
- super.resolveParsedAssociations(cimModel);
33
- if (cimModel.outages.has(this.outageUUID)) {
34
- this.outage = cimModel.getOutage(this.outageUUID);
35
- } else {
36
- //console.log(this.constructor.name + ' ' + this.mrid + ' hat keine Outage ' + this.outageUUID);
37
- }
38
- }
39
-
40
-
41
- }
@@ -1,10 +0,0 @@
1
- import { IdentifiedObject } from '../core/IdentifiedObject';
2
- import { Fault } from './Fault';
3
-
4
- export class LineFault extends Fault {
5
-
6
- protected constructor(mrid?: string, name?: string, shortName?: string, description?: string){
7
- super(mrid, name, shortName, description);
8
- }
9
-
10
- }
@@ -1,53 +0,0 @@
1
- import { IdentifiedObject } from '../..';
2
- import { ThermalGeneratingUnit } from './ThermalGeneratingUnit';
3
- import { FuelType } from './FuelType';
4
- import { RDF_XML } from '../../constants/rdf-xml';
5
- import XMLWriter from 'xml-writer';
6
- import { writeElementAttribute } from "../../util/utils";
7
-
8
- export class FossilFuel extends IdentifiedObject {
9
-
10
- thermalGeneratingUnit: ThermalGeneratingUnit;
11
- fossilFuelType: FuelType;
12
-
13
- constructor(uuid?: string, name?: string, shortName?: string, description?: string, type?: FuelType) {
14
- super(uuid, name, shortName, description);
15
- this.fossilFuelType = type;
16
- }
17
-
18
- /** CIM RDF/XML Serialisierung */
19
- public toCIMXML(xmlWriter: XMLWriter, profile: string) {
20
- if (profile === RDF_XML.PROFILE_EQ) {
21
- const suffixID = this.getSuffixID(profile);
22
- const prefixUUID = this.getPrefixUUID(suffixID);
23
- xmlWriter.startElementNS(RDF_XML.CIM_NS_PREFIX, this.constructor.name, RDF_XML.CIM_NS_16);
24
- writeElementAttribute(xmlWriter, suffixID, `${prefixUUID}${this.mrid}`);
25
- this.toCIMXMLAttributes(xmlWriter, profile);
26
- this.toCIMXMLAssociations(xmlWriter, profile);
27
- xmlWriter.endElement();
28
- }
29
- }
30
-
31
- protected toCIMXMLAttributes(xmlWriter: XMLWriter, profile: string) {
32
- super.toCIMXMLAttributes(xmlWriter, profile);
33
- if (profile === RDF_XML.PROFILE_EQ) {
34
- /*<cim:SynchronousMachine.type rdf:resource="http://iec.ch/TC57/2013/CIM-schema-cim16#SynchronousMachineKind.generator"/>*/
35
- xmlWriter.startElementNS(RDF_XML.CIM_NS_PREFIX, 'FossilFuel.fossilFuelType', RDF_XML.CIM_NS_16);
36
- writeElementAttribute(xmlWriter, RDF_XML.RDF_RESRC, `${RDF_XML.CIM_NS_16}FuelType.${this.fossilFuelType}`);
37
- xmlWriter.endElement();
38
- }
39
- }
40
-
41
- protected toCIMXMLAssociations(xmlWriter: XMLWriter, profile: string) {
42
- super.toCIMXMLAssociations(xmlWriter, profile);
43
- if (profile === RDF_XML.PROFILE_EQ) {
44
- if (this.thermalGeneratingUnit) {
45
- xmlWriter.startElementNS(RDF_XML.CIM_NS_PREFIX, 'FossilFuel.ThermalGeneratingUnit', RDF_XML.CIM_NS_16);
46
- writeElementAttribute(xmlWriter, RDF_XML.RDF_RESRC, `${RDF_XML.HASH_UNDERSCORE}${this.thermalGeneratingUnit.mrid}`);
47
- xmlWriter.endElement();
48
- } else {
49
- xmlWriter.writeComment('ConductingEquipment is not defined');
50
- }
51
- }
52
- }
53
- }