Skip to content

Commit

Permalink
Merge pull request #52 from Sveino/51-update-nc-profiles-release-231
Browse files Browse the repository at this point in the history
Add AP, VOC and CON for NC Profiles release 2.3.1
  • Loading branch information
Sveino authored Sep 14, 2024
2 parents cc8fd16 + 103a40e commit 6d9b6bc
Show file tree
Hide file tree
Showing 59 changed files with 49,322 additions and 65,371 deletions.
2,910 changes: 758 additions & 2,152 deletions source/CGMES-NC/r2.3/ap-con/ttl/AssessedElement-AP-Con-Simple-SHACL.ttl

Large diffs are not rendered by default.

2,562 changes: 593 additions & 1,969 deletions source/CGMES-NC/r2.3/ap-con/ttl/AvailabilitySchedule-AP-Con-Simple-SHACL.ttl

Large diffs are not rendered by default.

1,876 changes: 233 additions & 1,643 deletions source/CGMES-NC/r2.3/ap-con/ttl/Contingency-AP-Con-Simple-SHACL.ttl

Large diffs are not rendered by default.

1,381 changes: 1,381 additions & 0 deletions source/CGMES-NC/r2.3/ap-con/ttl/DatasetMetadata-AP-Con-SHACL.ttl

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ erc:Ontology rdf:type owl:Ontology ;
dcterms:creator "ENTSO-E CIM EG"@en ;
dcterms:description "The custom constraints for the equipment reliability profile."@en ;
dcterms:identifier "urn:uuid:f7898d6b-3ffc-4515-8459-95390ae7a9ca" ;
dcterms:issued "2024-05-05T12:09:21Z"^^xsd:dateTime ;
dcterms:issued "2024-09-08T12:09:21Z"^^xsd:dateTime ;
dcterms:language "en-GB" ;
dcterms:modified "2024-05-05"^^xsd:date ;
dcterms:modified "2024-09-08"^^xsd:date ;
dcterms:publisher "ENTSO-E"@en ;
dcterms:rights "Copyright"@en ;
dcterms:rightsHolder "ENTSO-E"@en ;
dcterms:title "Equipment Reliability profile custom constraints"@en ;
owl:versionIRI <https://ap-con.cim4.eu/EquipmentReliability-Complex/2.3> ;
dcterms:license "https://www.apache.org/licenses/LICENSE-2.0" ;
owl:versionInfo "2.3.0"@en ;
owl:versionInfo "2.3.1"@en ;
dcat:landingPage "https://www.entsoe.eu/digital/cim/cim-for-grid-models-exchange/" ;
dcat:theme "constraints"@en .

Expand Down Expand Up @@ -158,4 +158,32 @@ erc:HydroPowerPlant-operatingModeSparql
GROUP BY $this ?value
HAVING(?countv>1)
""" .


erc:Circuit a sh:NodeShape ;
sh:property erc:Circuit-associations;
sh:targetClass nc:LineCircuit, nc:PowerTransformerCircuit .



erc:Circuit-associations
a sh:PropertyShape ;
sh:description "The Circuit shall be associated with either Equipment or Terminal." ;
sh:sparql erc:Circuit-associationsSparql ;
sh:path rdf:type ;
sh:group erc:ERgroup ;
sh:name "C:NC:ER:Circuit:associations" ;
sh:order 4 ;
sh:severity sh:Violation .

erc:Circuit-associationsSparql
a sh:SPARQLConstraint ;
sh:message "Circuit is not associated with either Equipment or Terminal." ;
sh:prefixes cim: ;
sh:select """
SELECT $this
WHERE {
BIND(EXISTS{$this nc:Circuit.Equipment ?o1} AS ?ce).
BIND(EXISTS{$this nc:Circuit.IdentifyingTerminal ?o2} AS ?ct).
FILTER (?ce=false && ?ct=false).
}""" .
10,082 changes: 4,664 additions & 5,418 deletions source/CGMES-NC/r2.3/ap-con/ttl/EquipmentReliability-AP-Con-Simple-SHACL.ttl

Large diffs are not rendered by default.

2,973 changes: 774 additions & 2,199 deletions source/CGMES-NC/r2.3/ap-con/ttl/GridDisturbance-AP-Con-Simple-SHACL.ttl

Large diffs are not rendered by default.

1,643 changes: 752 additions & 891 deletions source/CGMES-NC/r2.3/ap-con/ttl/Header-AP-Con-SHACL.ttl

Large diffs are not rendered by default.

2,153 changes: 353 additions & 1,800 deletions source/CGMES-NC/r2.3/ap-con/ttl/ImpactAssessmentMatrix-AP-Con-Simple-SHACL.ttl

Large diffs are not rendered by default.

1,937 changes: 253 additions & 1,684 deletions source/CGMES-NC/r2.3/ap-con/ttl/MonitoringArea-AP-Con-Simple-SHACL.ttl

Large diffs are not rendered by default.

704 changes: 352 additions & 352 deletions source/CGMES-NC/r2.3/ap-con/ttl/ObjectRegistry-AP-Con-Simple-SHACL.ttl

Large diffs are not rendered by default.

2,698 changes: 656 additions & 2,042 deletions source/CGMES-NC/r2.3/ap-con/ttl/PowerSchedule-AP-Con-Simple-SHACL.ttl

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4,807 changes: 1,807 additions & 3,000 deletions source/CGMES-NC/r2.3/ap-con/ttl/RemedialAction-AP-Con-Simple-SHACL.ttl

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ rasc:Ontology rdf:type owl:Ontology ;
dcterms:creator "ENTSO-E CIM WG"@en ;
dcterms:description "The custom constraints for remedial action scheule profile."@en ;
dcterms:identifier "urn:uuid:657b4a7f-0868-4764-8327-ff7cbb377dd4" ;
dcterms:issued "2024-05-05T12:09:21Z"^^xsd:dateTime ;
dcterms:issued "2024-09-08T12:09:21Z"^^xsd:dateTime ;
dcterms:language "en-GB" ;
dcterms:modified "2024-05-05"^^xsd:date ;
dcterms:modified "2024-09-08"^^xsd:date ;
dcterms:publisher "ENTSO-E"@en ;
dcterms:rights "Copyright"@en ;
dcterms:rightsHolder "ENTSO-E"@en ;
dcterms:title "Remedial Action Schedule profile custom constraints"@en ;
owl:versionIRI <https://ap-con.cim4.eu/RemedialActionScheule-Complex/2.3> ;
dcterms:license "https://www.apache.org/licenses/LICENSE-2.0" ;
owl:versionInfo "2.3.0"@en ;
owl:versionInfo "2.3.1"@en ;
dcat:landingPage "https://www.entsoe.eu/digital/cim/cim-for-grid-models-exchange/" ;
dcat:theme "constraints"@en .

Expand Down Expand Up @@ -97,3 +97,113 @@ rasc:RemedialActionSchedule-proposingEntitySparql
FILTER (?pesc=false && ?peso=false ).
}""" .

rasc:RemedialActionScheduleGroup a sh:NodeShape ;
sh:property rasc:RemedialActionScheduleGroup.GroupDependency-cardinality, rasc:RemedialActionScheduleGroup-dependency, rasc:RemedialActionScheduleDependency.kind-cardinality;
sh:targetClass nc:RemedialActionScheduleGroup.

rasc:RemedialActionScheduleGroup.GroupDependency-cardinality
rdf:type sh:PropertyShape;
sh:description "A RemedialActionScheduleGroup shall have at least 3 RemedialActionScheduleDependency referenced.";
sh:group rasc:RASgroup;
sh:minCount 3;
sh:message "Cardinality violation. Lower bound shall be 3";
sh:name "C:NC:RAS:RemedialActionScheduleGroup.GroupDependency:cardinality";
sh:order 2;
sh:path [ sh:inversePath nc:RemedialActionScheduleDependency.RemedialActionScheduleGroup ];
sh:severity sh:Violation .

rasc:RemedialActionScheduleGroup-dependency
a sh:PropertyShape ;
sh:description "A RemedialActionScheduleGroup shall have at least one RemedialActionScheduleDependency with association end RemedialActionScheduleDependency.ProposedRemedialActionSchedule and at least one RemedialActionScheduleDependency with association end RemedialActionScheduleDependency.ReplacedRemedialActionSchedule." ;
sh:sparql rasc:RemedialActionScheduleGroup-dependencySparql ;
sh:path rdf:type ;
sh:group rasc:RASgroup ;
sh:name "C:NC:RAS:RemedialActionScheduleGroup:dependency" ;
sh:order 3 ;
sh:severity sh:Violation .

rasc:RemedialActionScheduleGroup-dependencySparql
a sh:SPARQLConstraint ;
sh:message "The RemedialActionScheduleGroup does not have at least one RemedialActionScheduleDependency with association end RemedialActionScheduleDependency.ProposedRemedialActionSchedule and at least one RemedialActionScheduleDependency with association end RemedialActionScheduleDependency.ReplacedRemedialActionSchedule." ;
sh:prefixes cim: ;
sh:select """
SELECT $this
WHERE {
BIND(EXISTS{$this ^nc:RemedialActionScheduleDependency.RemedialActionScheduleGroup/nc:RemedialActionScheduleDependency.ProposedRemedialActionSchedule ?o1} AS ?a1).
BIND(EXISTS{$this ^nc:RemedialActionScheduleDependency.RemedialActionScheduleGroup/nc:RemedialActionScheduleDependency.ReplacedRemedialActionSchedule ?o2} AS ?a2).
FILTER (?a1=false && ?a2=false ).
}""" .

rasc:RemedialActionScheduleDependency.kind-cardinality
a sh:PropertyShape ;
sh:description "RemedialActionScheduleDependency.kind is required for all RemedialActionScheduleDependency objects part of a RemedialActionScheduleGroup." ;
sh:sparql rasc:RemedialActionScheduleDependency.kind-cardinalitySparql ;
sh:path rdf:type ;
sh:group rasc:RASgroup ;
sh:name "C:NC:RAS:RemedialActionScheduleDependency.kind:cardinality" ;
sh:order 4 ;
sh:severity sh:Violation .

rasc:RemedialActionScheduleDependency.kind-cardinalitySparql
a sh:SPARQLConstraint ;
sh:message "RemedialActionScheduleDependency.kind is not provided for RemedialActionScheduleDependency objects part of a RemedialActionScheduleGroup." ;
sh:prefixes cim: ;
sh:select """
SELECT $this
WHERE {
BIND(EXISTS{$this ^nc:RemedialActionScheduleDependency.RemedialActionScheduleGroup/nc:RemedialActionScheduleDependency.kind ?o1} AS ?a1).
FILTER (?a1=false ).
}""" .

rasc:RemedialActionScheduleDependency a sh:NodeShape ;
sh:property rasc:RemedialActionScheduleDependency.kind-applicability, rasc:RemedialActionScheduleDependency-associations;
sh:targetClass nc:RemedialActionScheduleDependency.

rasc:RemedialActionScheduleDependency.kind-applicability
a sh:PropertyShape ;
sh:description "RemedialActionScheduleDependency.kind shall not be provided for RemedialActionScheduleDependency objects that are not part of a RemedialActionScheduleGroup." ;
sh:sparql rasc:RemedialActionScheduleDependency.kind-applicabilitySparql ;
sh:path rdf:type ;
sh:group rasc:RASgroup ;
sh:name "C:NC:RAS:RemedialActionScheduleDependency.kind:applicability" ;
sh:order 5 ;
sh:severity sh:Violation .

rasc:RemedialActionScheduleDependency.kind-applicabilitySparql
a sh:SPARQLConstraint ;
sh:message "RemedialActionScheduleDependency.kind is provided for RemedialActionScheduleDependency objects not part of a RemedialActionScheduleGroup." ;
sh:prefixes cim: ;
sh:select """
SELECT $this
WHERE {
BIND(EXISTS{$this nc:RemedialActionScheduleDependency.kind ?o1} AS ?a1).
BIND(EXISTS{$this nc:RemedialActionScheduleDependency.RemedialActionScheduleGroup ?o2} AS ?a2).
FILTER (?a1=true && ?a2=false ).
}""" .

rasc:RemedialActionScheduleDependency-associations
a sh:PropertyShape ;
sh:description "When a RemedialActionScheduleDependency is part of a RemedialActionScheduleGroup, it is required to provide either RemedialActionScheduleDependency.ProposedRemedialActionSchedule or RemedialActionScheduleDependency.ReplacedRemedialActionSchedule (i.e., not both associations). When a RemedialActionScheduleDependency is not part of a RemedialActionScheduleGroup, it is required to provide both RemedialActionScheduleDependency.ProposedRemedialActionSchedule and RemedialActionScheduleDependency.ReplacedRemedialActionSchedule." ;
sh:sparql rasc:RemedialActionScheduleDependency-associationsSparql ;
sh:path rdf:type ;
sh:group rasc:RASgroup ;
sh:name "C:NC:RAS:RemedialActionScheduleDependency:associations" ;
sh:order 6 ;
sh:severity sh:Violation .

rasc:RemedialActionScheduleDependency-associationsSparql
a sh:SPARQLConstraint ;
sh:message "RemedialActionScheduleDependency associations are not consistant." ;
sh:prefixes cim: ;
sh:select """
SELECT $this
WHERE {
BIND(EXISTS{$this nc:RemedialActionScheduleDependency.RemedialActionScheduleGroup ?o1} AS ?a1).
BIND(EXISTS{$this nc:RemedialActionScheduleDependency.ProposedRemedialActionSchedule ?o2} AS ?a2).
BIND(EXISTS{$this nc:RemedialActionScheduleDependency.ReplacedRemedialActionSchedule ?o3} AS ?a3).
FILTER (!(?a1=true && (?a2=true || ?a3=true)) || !(?a1=false && (?a2=true && ?a3=true))).
}""" .
Loading

0 comments on commit 6d9b6bc

Please sign in to comment.