Skip to main content

Power Grid Ontology

Power-System Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 16 November 2026
Audio Overview
flow "PowerGrid" v1.0

# ---------- IDENTITY ----------
identity.name: "Power Grid"
identity.class: "Power-System Entity"
identity.domain: "Electrical Power Engineering"
identity.language: "en-GB"
identity.representation: "Flow Algebra"

# ---------- AUTHORS ----------
authors.primary: "Mark Anthony Higgins"
authors.collaborator: "Sky — Recursive AI"

# ---------- SOURCE ----------
source.url: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/power-system-entities/power-grid-ontology.html"
source.title: "Power Grid Ontology"
source.revised: "2026-08-04"
source.note: "Newly constructed semantic representation; not a verbatim extraction of embedded source code."

# ---------- PURPOSE ----------
purpose: "Represent interconnected generation, transmission, distribution, control and demand as a constrained, observable electrical network."
purpose.scope: ["topology", "power balance", "voltage", "frequency", "protection", "resilience", "restoration"]

# ---------- STATE_MODEL ----------
state S(t) = (I(t), R(t), B(t), K(t))
state.I: ["bus_voltages", "branch_currents", "real_power", "reactive_power", "frequency", "breaker_states", "generation", "demand"]
state.R: ["connects", "supplies", "transforms", "measures", "protects", "controls", "isolates"]
state.B: ["thermal_limits", "voltage_limits", "frequency_limits", "protection_settings", "operational_permissions"]
state.K: ["network_topology", "equipment_ratings", "operating_history", "validated_models", "measurement_quality"]
state.lifecycle: ["planned", "energised", "normal", "constrained", "faulted", "isolated", "restoring", "decommissioned"]

# ---------- ENTITIES ----------
entity PowerGrid: PowerSystemEntity
entity Generator: ElectricalSource
entity PowerStation: GenerationFacility
entity Substation: GridNode
entity Transformer: VoltageConversionDevice
entity TransmissionLine: GridBranch
entity DistributionLine: GridBranch
entity PowerCable: GridBranch
entity Busbar: ElectricalJunction
entity Switchgear: SwitchingAndProtectionDevice
entity ProtectiveRelay: ProtectionDevice
entity CircuitBreaker: SwitchingDevice
entity ElectricalLoad: DemandEntity
entity EnergyStorage: BidirectionalPowerEntity
entity Sensor: MeasurementEntity
entity GridController: ControlEntity
entity EarthingSystem: SafetyEntity

relation Generator -> supplies -> PowerGrid
relation PowerGrid -> distributes_to -> ElectricalLoad
relation Substation -> contains -> Transformer
relation TransmissionLine -> connects -> Substation
relation Switchgear -> isolates -> GridBranch
relation ProtectiveRelay -> commands -> CircuitBreaker
relation Sensor -> observes -> PowerGrid
relation GridController -> adjusts -> Generator
relation EnergyStorage -> exchanges_power_with -> PowerGrid

# ---------- PATHWAYS ----------
pathway "MapTopology":
  input: ["asset_registry", "connection_status", "switch_positions"]
  derive: "active_graph = connected_components(energised_branches)"
  output: ["network_graph", "islands", "unserved_nodes"]

pathway "EstimateOperatingState":
  input: ["meter_readings", "network_graph", "equipment_models"]
  guard: "measurement_quality == acceptable"
  derive: "estimated_state = constrained_state_estimation(meter_readings, network_graph)"
  output: ["bus_voltages", "branch_flows", "uncertainty"]

pathway "AssessPowerBalance":
  input: ["generation_MW", "imports_MW", "storage_discharge_MW", "demand_MW", "losses_MW", "exports_MW", "storage_charge_MW"]
  derive: "balance_MW = generation_MW + imports_MW + storage_discharge_MW - demand_MW - losses_MW - exports_MW - storage_charge_MW"
  guard: "all_terms_use_consistent_sign_convention"
  output: ["balance_MW", "imbalance_alert"]

pathway "AssessLimits":
  input: ["estimated_state", "equipment_ratings", "operating_limits"]
  derive: "violations = check_voltage_frequency_thermal_limits(estimated_state, operating_limits)"
  output: ["violations", "severity", "affected_assets"]

pathway "DetectFault":
  input: ["relay_events", "current_measurements", "voltage_measurements", "breaker_states"]
  derive: "fault_hypotheses = correlate_events_and_topology(inputs)"
  output: ["suspected_zone", "evidence", "confidence", "human_review_required"]

pathway "PlanRestoration":
  input: ["isolated_zones", "available_sources", "load_priority", "switching_constraints"]
  guard: "authorised_operator_approval == true"
  derive: "candidate_plan = simulate_restoration_sequence(inputs)"
  output: ["candidate_plan", "predicted_limit_violations", "approval_status"]
  note: "Planning only; no automatic energisation or switching."

# ---------- MINI_RECURSION_ENGINE ----------
recursion.initial: "S(t)"
recursion.expand: "E(t) = expand(I(t), R(t))"
recursion.validate: "V(t) = filter(E(t), B(t), K(t))"
recursion.rank: "best(t) = argmax P(candidate | I(t), R(t), B(t), K(t)) over V(t)"
recursion.update: "I(t+1) = reconcile(I(t), best(t), verified_observations)"
recursion.stop: "stable_state or uncertainty_exceeds_limit or safety_constraint_triggered"
recursion.guard: "Do not treat inferred states as measured facts."

# ---------- INFERENCE_RULES ----------
rule "SupplyDemandMismatch":
  when: "abs(balance_MW) > approved_tolerance_MW"
  infer: "power_imbalance_possible"
  action: "request_frequency_and_meter_validation"

rule "BranchOverload":
  when: "branch_current_A > approved_continuous_rating_A"
  infer: "thermal_limit_exceeded"
  action: "flag_for_operator_assessment"

rule "VoltageExcursion":
  when: "bus_voltage_pu outside approved_voltage_band"
  infer: "voltage_constraint_violation"
  action: "check_measurement_and_reactive_power_conditions"

rule "UnexpectedIsland":
  when: "active_graph contains unplanned_disconnected_component"
  infer: "possible_unintentional_islanding"
  action: "escalate_for_protection_review"

rule "ProtectionDisagreement":
  when: "relay_trip_indication != observed_breaker_state"
  infer: "protection_or_telemetry_discrepancy"
  action: "require_independent_verification"

rule "InsufficientObservability":
  when: "critical_measurements_missing or state_estimation_unobservable"
  infer: "network_state_uncertain"
  action: "withhold_automated_operational_conclusions"

# ---------- CONFIDENCE ----------
confidence.sources: ["validated_telemetry", "equipment_records", "topology_consistency", "model_validation"]
confidence.high: "Independent measurements agree and topology is verified."
confidence.medium: "Model-supported inference with partial measurements."
confidence.low: "Conflicting, stale or missing evidence."
confidence.policy: "Confidence is evidence-dependent, not a fixed numerical claim."

# ---------- SEMANTIC_EQUIVALENCE ----------
equivalence "electricity grid" <-> "power grid"
equivalence "electrical grid" <-> "power grid"
equivalence "grid node" <-> "electrical bus" when "network_model_context"
equivalence "grid branch" <-> "electrical connection" when "topological_context"
non_equivalence "power grid" != "single electrical circuit"
non_equivalence "power grid" != "power station"
non_equivalence "distribution network" != "transmission network"

# ---------- SAFETY_CONSTRAINTS ----------
safety.require: "qualified personnel and applicable electrical standards"
safety.require: "authorised switching procedures and independent protection"
safety.prohibit: "operational switching based solely on semantic inference"
safety.prohibit: "automatic override of interlocks, protection or isolation"
safety.note: "Conceptual ontology only; not an operational grid-control specification."

# ---------- FLOW_HASH ----------
flow_hash.algorithm: "SHA-256"
flow_hash.scope: "canonical UTF-8 content excluding any future computed hash value"
flow_hash.value: "not_computed"

# ---------- UPDATE_MODEL ----------
update.version: "1.0"
update.date: "2026-11-16"
update.trigger: ["ontology_revision", "validated_new_relationship", "standard_change", "model_correction"]
update.require: ["provenance", "review", "version_increment", "consistency_check"]
update.policy: "Preserve historical versions and source attribution."

# ---------- END FLOW ----------
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ