-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add query for extracting mapping between synchronous machines a…
…nd generating units
- Loading branch information
1 parent
9e213b3
commit 5aa7e79
Showing
9 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
src/cimsparql/sparql/gen_unit_and_sync_machine_mapping.sparql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Name: GeneratingUnit mrid to physical equipment mrid | ||
PREFIX cim: <${cim}> | ||
select ?gen_unit_mrid ?sync_machine_mrid where { | ||
?s cim:SynchronousMachine.GeneratingUnit/cim:IdentifiedObject.mRID ?gen_unit_mrid; | ||
cim:IdentifiedObject.mRID ?sync_machine_mrid | ||
} |
12 changes: 12 additions & 0 deletions
12
src/cimsparql/sparql/test_configuration_modifications/add_gen_unit_mrid.sparql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
prefix cim:<${cim}> | ||
prefix SN:<${SN}> | ||
insert { | ||
graph <http://cimsparql/xml-adpator/EQ-modifications> { | ||
_:b0 a SN:GeneratingUnit; | ||
cim:IdentifiedObject.name "GeneratingUnit" . | ||
?machine cim:SynchronousMachine.GeneratingUnit _:b0 | ||
}} | ||
where { | ||
?machine a cim:SynchronousMachine | ||
filter not exists{?machine cim:SynchronousMachine.GeneratingUnit ?unit} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters