Skip to content

Commit

Permalink
ENH: Add connectivity node to branch_node_withdraw
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkleiven committed Jan 15, 2024
1 parent a53da59 commit 03d27eb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cimsparql/sparql/branch_node_withdraw.sparql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Name: Branch node withdraw
PREFIX cim:<${cim}>
PREFIX SN:<${SN}>
select ?mrid ?node ?p ?q
select ?mrid ?node ?p ?q ?connectivity_node
where {
# Extract properties of each terminal from the SV/TP/SSH profile.
# If exists, the mRID of the topological node associated with the terminal is etracted
Expand All @@ -21,7 +21,8 @@ where {
optional {?component SN:Equipment.networkAnalysisEnable ?_analysis_enabled .}
?terminal cim:Terminal.ConductingEquipment ?component;
cim:IdentifiedObject.mRID ?mrid;
cim:Terminal.ConnectivityNode ?con_node.
cim:Terminal.ConnectivityNode ?con_node;
?con_node cim:IdentifiedObject.mRID ?connectivity_node .

# Find area for the connectivity node of the terminal
?con_node cim:ConnectivityNode.ConnectivityNodeContainer/cim:VoltageLevel.Substation/cim:Substation.Region/cim:SubGeographicalRegion.Region/cim:IdentifiedObject.name ?area .
Expand Down

0 comments on commit 03d27eb

Please sign in to comment.