Skip to content

Instantly share code, notes, and snippets.

@VladimirAlexiev
Last active June 30, 2021 13:44
Show Gist options
  • Save VladimirAlexiev/94eb90d237a8bd772ba692737c2f108d to your computer and use it in GitHub Desktop.
Save VladimirAlexiev/94eb90d237a8bd772ba692737c2f108d to your computer and use it in GitHub Desktop.
Energy Transparency Knowledge Graph, comparing Ontotext `rdfpuml` and Zazuko `spex`
# rdfpuml rendering instructions, not part of the real model
tr:assetType puml:arrow puml:lightblue.
tr:biddingZone puml:arrow puml:up-lightblue.
tr:codeList puml:arrow puml:green.
tr:controlArea puml:arrow puml:up-lightblue.
tr:generatingUnit puml:arrow puml:lightblue.
tr:highVoltageLimit puml:arrow puml:lightblue.
tr:nominalP puml:arrow puml:lightblue.
tr:parentResource puml:arrow puml:up-red.
tr:providerParticipant puml:arrow puml:up-lightblue.
tr:responsibleParticipant puml:arrow puml:up-red.
tr:unit puml:arrow puml:lightblue.
tr:CodeList puml:stereotype "(C,green)".
tr:CodeValue puml:stereotype "(C,green)".
tr:EnergyResource puml:stereotype "(E,red)".
tr:Quantity puml:stereotype "(P,lightblue)".
@base <https://transparency.ontotext.com/resource/>.
@prefix tr: <https://transparency.ontotext.com/resource/tr/>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
##### powerUnit
<eic/32W001100100217D>
tr:dateImplemented "2014-11-12"^^xsd:date;
tr:notationAlt "NPP_KOZLODUY";
tr:location "Kozloduy";
tr:assetType <type/Asset/B14>;
tr:biddingZone <eic/10YCA-BULGARIA-R>;
tr:controlArea <eic/10YCA-BULGARIA-R>;
tr:providerParticipant <eic/10XBG-ESO------A>;
tr:highVoltageLimit [a tr:Quantity; tr:unit <type/UnitSymbol/KVT>; tr:value "400"^^xsd:float ] ;
tr:nominalP [a tr:Quantity; tr:unit <type/UnitSymbol/MAW>; tr:value "2000"^^xsd:float ] .
<eic/32W001100100217D> tr:generatingUnit <eic/32W001100100016N> .
<eic/32W001100100016N>
tr:notationAlt "NPP KZL G9";
tr:assetType <type/Asset/B14>;
tr:location "NPP Kozloduy";
tr:nominalP [a tr:Quantity; tr:unit <type/UnitSymbol/MAW>; tr:value "1000"^^xsd:float ] .
<eic/32W001100100217D> tr:generatingUnit <eic/32W001100100017L> .
<eic/32W001100100017L>
tr:notationAlt "NPP KZL G10";
tr:assetType <type/Asset/B14>;
tr:location "NPP Kozloduy";
tr:nominalP [a tr:Quantity; tr:unit <type/UnitSymbol/MAW>; tr:value "1000"^^xsd:float ] .
### EIC
<eic/32W001100100016N>
a tr:EnergyResource ;
tr:country "BG" ;
tr:dateUpdated "2013-01-01"^^xsd:date ;
tr:description "Generation Unit" ;
tr:eic "32W001100100016N" ;
tr:function "Generation Unit" ;
tr:name "NPP KOZLODUY UNIT 5 GEN 9" ;
tr:notation "NPP_KOZLODUY_G9" ;
tr:parentResource <eic/32W001100100217D> ;
tr:responsibleParticipant <eic/32XNPP-KOZLODUY2> .
<eic/32W001100100017L>
a tr:EnergyResource ;
tr:country "BG" ;
tr:dateUpdated "2013-01-01"^^xsd:date ;
tr:description "Generation Unit" ;
tr:eic "32W001100100017L" ;
tr:function "Generation Unit" ;
tr:name "NPP KOZLODUY UNIT 6 GEN 10" ;
tr:notation "NPP_KOZLODUY_G10" ;
tr:parentResource <eic/32W001100100153D> ;
tr:responsibleParticipant <eic/32XNPP-KOZLODUY2> .
<eic/32W001100100217D>
a tr:EnergyResource ;
tr:country "BG" ;
tr:dateUpdated "2013-01-01"^^xsd:date ;
tr:description "Production Unit" ;
tr:eic "32W001100100217D" ;
tr:function "Production Unit" ;
tr:name "NPP KOZLODUY" ;
tr:notation "NPP_KOZLODUY" ;
tr:responsibleParticipant <eic/32XNPP-KOZLODUY2> .
<eic/32W001100100153D>
a tr:EnergyResource ;
tr:country "BG" ;
tr:dateUpdated "2013-01-01"^^xsd:date ;
tr:description "Production Unit" ;
tr:eic "32W001100100153D" ;
tr:function "Production Unit" ;
tr:name "TPP MARITSA EAST 2" ;
tr:notation "TPP_MI_2" ;
tr:responsibleParticipant <eic/32X001100100003I> .
<eic/32X001100100003I> a tr:EnergyResource.
<eic/32XNPP-KOZLODUY2>
a tr:EnergyResource ;
tr:country "BG" ;
tr:dateUpdated "2007-04-18"^^xsd:date ;
tr:description "Balance Responsible Party" ;
tr:eic "32XNPP-KOZLODUY2" ;
tr:function "Balance Responsible Party" ;
tr:name "NPP Kozloduy" ;
tr:notation "NPP_KOZLODUY" ;
tr:vatNumber "BG106513772" .
<eic/10XBG-ESO------A>
a tr:EnergyResource ;
tr:country "BG" ;
tr:dateUpdated "2015-12-04"^^xsd:date ;
tr:description "System Operator" ;
tr:eic "10XBG-ESO------A" ;
tr:function "System Operator" ;
tr:name "Elektroenergien Sistemen Opeator EAD" ;
tr:notation "ESO" ;
tr:vatNumber "BG175201304" .
<eic/10YCA-BULGARIA-R>
a tr:EnergyResource ;
tr:country "BG" ;
tr:dateUpdated "2021-01-28"^^xsd:date ;
tr:description "Bidding Zone... Scheduling Area" ;
tr:eic "10YCA-BULGARIA-R" ;
tr:function "Bidding Zone" , "Member State" , "Control Block" , "Control Area" , "Market Balance Area" , "Scheduling Area" ;
tr:name "Bulgaria" ;
tr:notation "BG" .
###### codelists
<type/Asset/B14> a tr:CodeValue ;
tr:codeList <type/Asset>;
tr:name "Nuclear unspecified";
tr:notation "B14";
tr:description "...heat source is a nuclear reactor" .
<type/Asset> a tr:CodeList ;
tr:name "Asset";
tr:notation "ET0031";
tr:description "identification of the type of asset." .
<type/UnitSymbol/KVT> a tr:CodeValue ;
tr:codeList <type/UnitSymbol>;
tr:name "kV";
tr:notation "KVT";
tr:description "The symbol of kV" .
<type/UnitSymbol/MAW> a tr:CodeValue ;
tr:codeList <type/UnitSymbol>;
tr:name "MW";
tr:notation "MAW";
tr:description "The symbol of MW" .
<type/UnitSymbol> a tr:CodeList ;
tr:name "UnitSymbol";
tr:notation "MXM000";
tr:description "The coded representation of different units from IEC 61970." .
# Used by my rdfpuml, repeated in "model.ttl", so other tools can ignore it
@base <https://transparency.ontotext.com/resource/>.
@prefix tr: <https://transparency.ontotext.com/resource/tr/>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@VladimirAlexiev
Copy link
Author

Model diagram generated with my tool rdfpuml
model

@VladimirAlexiev
Copy link
Author

VladimirAlexiev commented Jun 30, 2021

Part of model diagram generated by https://spex.zazuko.com/#/rdf-editor
(for some reason, prefix shortening doesn't work)

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment