@enervance/insight-cim-model 0.0.115 → 0.0.117
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.
|
@@ -62,73 +62,28 @@ class WNLocation extends Location_1.Location {
|
|
|
62
62
|
exports.WNLocation = WNLocation;
|
|
63
63
|
/** ------------------ Fuseki Schnittstelle ------------------*/
|
|
64
64
|
WNLocation.sparqlQuery = `
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
SELECT (STRAFTER(str(?mrid), '#_') AS ?uuid)
|
|
73
|
-
?name ?description ?shortName
|
|
74
|
-
?type ?installationDate ?number
|
|
75
|
-
(strafter(strafter(str(?statusEnum), '#'), '.') AS ?status)
|
|
76
|
-
?importance ?operatingLife ?exchangeYear ?condition
|
|
77
|
-
?iceLoadZone ?windLoadZone ?height
|
|
78
|
-
(strafter(strafter(str(?constructionKindEnum), '#'), '.') AS ?constructionKind)
|
|
79
|
-
?isPortal ?foundation ?lastCoating ?reliability ?lastInspection ?isCrossingTower ?nextInspection
|
|
80
|
-
(strafter(strafter(str(?corrosionProtectionEnum), '#'), '.') AS ?corrosionProtection)
|
|
81
|
-
(strafter(strafter(str(?corrosionEnum), '#'), '.') AS ?corrosion)
|
|
82
|
-
|
|
83
|
-
(strafter(strafter(str(?aContainerUUID), '#'), '_') AS ?assetContainerUUID)
|
|
84
|
-
(strafter(strafter(str(?lUUID), '#'), '_') AS ?locationUUID)
|
|
85
|
-
(strafter(strafter(str(?sUUID), '#'), '_') AS ?stateUUID)
|
|
86
|
-
(group_concat(STRAFTER(str(?oRoles), '#_');separator=',') as ?organisationRolesUUID)
|
|
87
|
-
|
|
88
|
-
WHERE {
|
|
89
|
-
GRAPH<http://default/> {
|
|
90
|
-
?mrid rdf:type cim:Tower .
|
|
91
|
-
OPTIONAL { ?mrid cim:IdentifiedObject.name ?name .}
|
|
92
|
-
OPTIONAL { ?mrid cim:IdentifiedObject.description ?description .}
|
|
93
|
-
OPTIONAL { ?mrid entsoe:IdentifiedObject.shortName ?shortName .}
|
|
94
|
-
|
|
95
|
-
OPTIONAL { ?mrid cim:Asset.type ?type .}
|
|
65
|
+
PREFIX cim: <http://iec.ch/TC57/2013/CIM-schema-cim16#>
|
|
66
|
+
PREFIX enervance: <http://enervance.com/CIM/Extensions#>
|
|
67
|
+
PREFIX westnetzneplan: <http://westnetzneplan.de/CIM/Extensions#>
|
|
68
|
+
PREFIX entsoe: <http://entsoe.eu/CIM/SchemaExtension/3/1#>
|
|
69
|
+
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
|
70
|
+
PREFIX apf: <http://jena.hpl.hp.com/ARQ/property#>
|
|
71
|
+
PREFIX afn: <http://jena.apache.org/ARQ/function#>
|
|
96
72
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
OPTIONAL { ?mrid amp:Asset.exchangeYear ?exchangeYear .}
|
|
103
|
-
OPTIONAL { ?mrid amp:Asset.condition ?condition .}
|
|
104
|
-
|
|
105
|
-
OPTIONAL { ?mrid amp:AssetContainer.iceLoadZone ?iceLoadZone .}
|
|
106
|
-
OPTIONAL { ?mrid amp:AssetContainer.windLoadZone ?windLoadZone .}
|
|
107
|
-
OPTIONAL { ?mrid cim:Structure.height ?height .}
|
|
108
|
-
|
|
109
|
-
OPTIONAL { ?mrid cim:Tower.constructionKind ?constructionKindEnum .}
|
|
110
|
-
|
|
111
|
-
OPTIONAL { ?mrid amp:AMPRIONTower.isPortal ?isPortal .}
|
|
112
|
-
OPTIONAL { ?mrid amp:AMPRIONTower.foundation ?foundation .}
|
|
113
|
-
OPTIONAL { ?mrid amp:AMPRIONTower.lastCoating ?lastCoating .}
|
|
114
|
-
OPTIONAL { ?mrid amp:AMPRIONTower.reliability ?reliability .}
|
|
115
|
-
OPTIONAL { ?mrid amp:AMPRIONTower.lastInspection ?lastInspection .}
|
|
116
|
-
OPTIONAL { ?mrid amp:AMPRIONTower.isCrossingTower ?isCrossingTower .}
|
|
117
|
-
OPTIONAL { ?mrid amp:AMPRIONTower.nextInspection ?nextInspection .}
|
|
73
|
+
SELECT (strafter(strafter(str(?MRID), '#'), '_') AS ?uuid)
|
|
74
|
+
(CONCAT(STRBEFORE(STR(?MRID), '#_'), '#_') AS ?baseIRI)
|
|
75
|
+
(strafter(strafter(str(?csUUIDs), '#'), '_') AS ?coordinateSystemUUID)
|
|
76
|
+
(strafter(strafter(str(?cnUUID), '#'), '_') AS ?connectivityNodeUUID)
|
|
77
|
+
(group_concat(STRAFTER(str(?psrUUIDs), '#_');separator=',') as ?powerSystemResourcesUUIDs)
|
|
118
78
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
OPTIONAL { ?mrid cim:Asset.OrganisationRoles ?oRoles .}
|
|
126
|
-
}
|
|
79
|
+
WHERE {
|
|
80
|
+
GRAPH <http://default/>{
|
|
81
|
+
?MRID rdf:type westnetzneplan:WNLocation .
|
|
82
|
+
OPTIONAL {?MRID cim:Location.CoordinateSystem ?csUUIDs .}
|
|
83
|
+
OPTIONAL {?MRID westnetzneplan:WNLocation.ConnectivityNode ?cnUUID .}
|
|
84
|
+
OPTIONAL {?MRID cim:Location.PowerSystemResources ?psrUUIDs .}
|
|
127
85
|
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
?iceLoadZone ?windLoadZone ?height ?constructionKindEnum
|
|
131
|
-
?isPortal ?foundation ?lastCoating ?reliability ?lastInspection ?isCrossingTower ?nextInspection
|
|
132
|
-
?corrosionProtectionEnum ?corrosionEnum ?aContainerUUID ?lUUID ?sUUID
|
|
86
|
+
}
|
|
87
|
+
GROUP BY ?MRID ?baseIRI ?csUUIDs ?cnUUID
|
|
133
88
|
`;
|
|
134
89
|
//# sourceMappingURL=WNLocation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WNLocation.js","sourceRoot":"","sources":["../../../../../src/model/extensions/neplan-westnetz/common/WNLocation.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AAKpD,kEAA8D;AAE9D,MAAa,UAAW,SAAQ,mBAAQ;IAKtC,YAAY,IAAa,EAAE,IAAa,EAAE,SAAkB,EAAE,WAAoB,EAAE,OAAgB;QAClG,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;
|
|
1
|
+
{"version":3,"file":"WNLocation.js","sourceRoot":"","sources":["../../../../../src/model/extensions/neplan-westnetz/common/WNLocation.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AAKpD,kEAA8D;AAE9D,MAAa,UAAW,SAAQ,mBAAQ;IAKtC,YAAY,IAAa,EAAE,IAAa,EAAE,SAAkB,EAAE,WAAoB,EAAE,OAAgB;QAClG,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;IA8BM,MAAM,CAAC,cAAc,CAAC,QAAgB;QAC3C,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE;YACvB,OAAO,UAAU,CAAC,WAAW,CAAC,OAAO,CAAC,mBAAmB,EAAE,QAAQ,CAAC,CAAC;SACtE;QACD,OAAO,UAAU,CAAC,WAAW,CAAC;IAChC,CAAC;IAED,+DAA+D;IAC/D,gEAAgE;IACzD,MAAM,CAAC,sBAAsB,CAAC,IAAS,EAAE,QAAwB;;QACtE,YAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,0CAAE,QAAQ,0CAAE,OAAO,CAAC,CAAC,KAAU,EAAE,EAAE;YAC9C,MAAM,QAAQ,GAAG,IAAI,UAAU,EAAE,CAAC;YAClC,QAAQ,CAAC,2BAA2B,CAAC,KAAK,CAAC,CAAC;YAC5C,QAAQ,CAAC,WA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