flow "Railway" v1.0
# Kireth Research Semantic Library — Railway ontology Flow Algebra
# Original semantic representation; source webpage not independently verified.
IDENTITY:
name: "Railway"
class: "EngineeringEntity > CivilEngineeringEntity > TransportInfrastructure > Railway"
domain: [civil_engineering, railway_engineering, transport, infrastructure]
definition: "A guided transport infrastructure system comprising track, supporting civil works, control and signalling, power where applicable, and operational interfaces enabling rail vehicle movements."
scope: "Infrastructure, interactions, lifecycle, and operational safety; not a certified design specification."
AUTHORS:
primary: "Mark Higgins — Kireth Research"
collaborator: "Sky — Recursive AI"
licence: "Kireth Open Research Licence; citation required"
SOURCE:
url: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/civil-engineering-entities/railway-ontology.html"
citation_backlink: "https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/civil-engineering-entities/railway-ontology.html"
source_status: "User-provided ontology URL; original constructed Flow Algebra, not a verified extraction."
PURPOSE:
primary: "Describe railway entities and their typed relations for semantic retrieval and recursive reasoning."
secondary: ["Trace infrastructure dependencies", "Explain operational constraints", "Classify degradation and intervention", "Preserve evidence and uncertainty"]
exclusion: "Never infer safe operation, capacity, or compliance without competent engineering assessment and validated data."
STATE_MODEL:
S = (I, R, B, K)
I: "Identified infrastructure, vehicles, operational state, measurements and observations."
R: "Railway relations, engineering models, and inference rules."
B: "Physical, geometric, operational, environmental, and safety boundaries."
K: "Verified asset records, standards, inspections, survey results and provenance."
dynamic_state: [track_geometry, rail_temperature, track_condition, signalling_state, occupancy, power_state, speed_restrictions, possession_status]
lifecycle: [concept, design, approval, construction, testing, commissioning, operation, inspection, maintenance, renewal, decommissioning]
ENTITIES:
RailwaySystem:
attributes: [identifier, route, gauge, operating_rules, ownership, lifecycle_status]
relations: [contains:RailwayLine, governed_by:OperationalRules, interfaces_with:OtherTransportModes]
RailwayLine:
attributes: [route_length, track_count, alignment, permitted_speed, capacity_context]
relations: [comprises:TrackSection, serves:Station, intersects:Junction]
TrackSection:
attributes: [chainage_start, chainage_end, curvature, gradient, gauge, condition]
relations: [contains:Rail, supported_by:SleepersAndFormation, constrained_by:ClearanceEnvelope]
Rail:
attributes: [profile, grade, wear, temperature, defects]
relations: [fastened_to:Sleeper, joined_by:RailJointOrWeld, contacted_by:Wheel]
Sleeper:
attributes: [type, spacing, condition]
relations: [supports:Rail, transfers_load_to:BallastOrSlab]
TrackBed:
attributes: [ballast_or_slab_type, stiffness, drainage, settlement]
relations: [supports:TrackSection, transfers_load_to:Formation]
Formation:
attributes: [soil_properties, bearing_response, moisture, settlement]
relations: [supports:TrackBed, influenced_by:DrainageSystem]
Turnout:
attributes: [geometry, switch_position, locking_state, inspection_status]
relations: [connects:TrackSection, controlled_by:Interlocking]
Crossing:
attributes: [type, protection, sighting, risk_assessment]
relations: [intersects:RailwayLine, interacts_with:RoadOrPedestrianNetwork]
BridgeAndViaduct:
attributes: [span, load_capacity_evidence, structural_condition]
relations: [carries:TrackSection, supported_by:Foundations]
Tunnel:
attributes: [clearance, ventilation, lining_condition, drainage]
relations: [contains:TrackSection, constrains:VehicleEnvelope]
Station:
attributes: [platforms, access, passenger_flows, interfaces]
relations: [serves:RailwayLine, connects_to:PassengerFacilities]
Platform:
attributes: [height, offset, length, accessibility]
relations: [interfaces_with:RailVehicle, belongs_to:Station]
Signal:
attributes: [aspect_or_authority, state, visibility, failure_status]
relations: [governs:MovementAuthority, controlled_by:SignallingSystem]
Interlocking:
attributes: [route_state, point_detection, occupancy_inputs, safety_integrity_evidence]
relations: [prevents:ConflictingRoutes, controls:SignalsAndPoints]
TrainDetection:
attributes: [method, occupied_state, diagnostic_state]
relations: [reports_to:Interlocking, detects:VehiclePresence]
RailwayVehicle:
attributes: [axle_load, loading_gauge, braking_performance, speed_capability]
relations: [travels_on:TrackSection, subject_to:MovementAuthority]
TractionPower:
attributes: [supply_type, voltage, isolation_state, protection]
relations: [supplies:ElectricRailVehicle, constrained_by:ElectricalSafetyRules]
OverheadLineOrThirdRail:
attributes: [geometry, electrical_clearance, condition]
relations: [distributes:TractionPower, interfaces_with:CurrentCollector]
DrainageSystem:
attributes: [capacity, outfall, blockage, condition]
relations: [protects:Formation, affects:TrackStability]
MaintenancePossession:
attributes: [limits, start_time, end_time, protection_arrangements]
relations: [restricts:TrainMovement, enables:MaintenanceWork]
InspectionRecord:
attributes: [asset_id, timestamp, method, observation, inspector, evidence]
relations: [describes:InfrastructureAsset, may_trigger:Intervention]
Defect:
attributes: [type, severity, location, trend, confidence]
relations: [affects:Asset, may_require:RestrictionOrRepair]
OperationalRestriction:
attributes: [scope, reason, authorisation, validity]
relations: [constrains:TrainMovement, mitigates:Risk]
PATHWAYS:
structural_load: "Wheel -> Rail -> Sleeper/Fastener -> BallastOrSlab -> Formation -> Ground"
movement_authority: "Detection -> Interlocking -> RouteValidation -> Signal/Authority -> TrainMovement"
electric_traction: "Supply -> Protection -> Distribution -> CurrentCollection -> VehicleTraction"
condition_management: "Inspection -> DefectClassification -> RiskAssessment -> Restriction -> Repair -> Verification"
route_planning: "Timetable -> CapacityAssessment -> RouteSetting -> Movement -> Monitoring"
renewal: "ConditionTrend -> OptionsAssessment -> Design -> Possession -> Installation -> Testing -> ReturnToService"
emergency_response: "HazardDetection -> SafeState -> TrafficProtection -> Response -> Verification -> AuthorisedRecovery"
BOUNDARIES:
geometry: [track_gauge, alignment, gradient, cant, clearance, loading_gauge]
mechanical: [axle_load, rail_stress, fatigue, track_support, bridge_capacity]
environmental: [flooding, temperature, wind, landslip, vegetation, groundwater]
operations: [movement_authority, route_conflicts, headway, braking_distance, worksite_protection]
electrical: [isolation, earthing, clearance, return_current]
governance: "Applicable national rules, approved standards and asset-specific assurance prevail."
MINI_RECURSION_ENGINE:
state: "S_t = (I_t, R_t, B_t, K_t)"
expand: "E_t = expand(I_t, R_t)"
validate: "V_t = {x in E_t | satisfies(x, B_t) and supported_by(x, K_t)}"
select: "x_star = argmax_x P(x | I_t, R_t, B_t, K_t), x in V_t"
update: "I_(t+1) = incorporate(I_t, x_star, observations, provenance)"
halt: "Stop if evidence is insufficient, a safety boundary is violated, or a responsible authority has not approved action."
trace: [input_evidence, applicable_rule, candidate_conclusion, boundary_check, confidence, decision]
INFERENCE_RULES:
- "IF track geometry exceeds an applicable verified limit THEN flag a nonconformity and request authorised assessment."
- "IF track occupancy is unknown THEN do not infer that the section is clear."
- "IF turnout detection disagrees with command THEN treat the route as unverified and invoke applicable protective rules."
- "IF conflicting routes share an unprotected resource THEN route setting must be inhibited by the validated interlocking."
- "IF rail defect severity is unverified THEN require inspection rather than assuming continued serviceability."
- "IF axle load exceeds documented infrastructure permission THEN reject the movement as unvalidated."
- "IF bridge condition evidence is stale THEN lower confidence in its current condition assessment."
- "IF drainage blockage and formation movement co-occur THEN prioritise geotechnical investigation."
- "IF rail temperature and restraint conditions indicate elevated thermal risk THEN request a validated track stability assessment."
- "IF a traction supply is not proven isolated THEN treat electrical equipment as energised."
- "IF possession limits are not verified THEN do not authorise access to the worksite."
- "IF platform interface dimensions are outside approved limits THEN flag an accessibility and operational interface concern."
- "IF inspection shows a worsening defect trend THEN increase intervention priority subject to approved risk criteria."
- "IF a repair is completed without required tests THEN do not infer readiness for return to service."
- "IF evidence sources conflict THEN preserve both records, identify provenance and request resolution."
- "IF a proposed change alters signalling, track or clearances THEN require impact analysis across dependent assets."
CONFIDENCE:
levels: [verified, high, moderate, low, unknown]
verified: "Supported by current, traceable, applicable engineering evidence and competent approval."
high: "Consistent multi-source evidence with documented limitations."
moderate: "Partial observations or model-based evidence requiring validation."
low: "Uncorroborated or outdated observations."
unknown: "No adequate evidence; safety-critical conclusions must not be drawn."
policy: "Do not fabricate numerical probabilities, asset ratings, design values or certification."
SEMANTIC_EQUIVALENCE:
railway: [rail_system, rail_transport_infrastructure]
track: [permanent_way, track_infrastructure]
points: [turnout, switch_and_crossing]
formation: [track_subgrade, supporting_ground]
signalling: [train_control_and_protection, movement_authority_system]
caution: "Terms are context-dependent; equivalence does not imply identical engineering functions."
FLOW_HASH:
method: "SHA-256 over canonical UTF-8 content excluding the FLOW_HASH value"
value: "COMPUTE_ON_PUBLICATION"
UPDATE_MODEL:
version: "1.0"
update_triggers: [ontology_revision, new_verified_evidence, asset_change, incident_learning, standards_revision]
process: "Preserve source and prior version; assess affected relations and rules; review engineering implications; publish revised version with provenance."
compatibility: "Maintain stable entity identifiers or document mappings when names change."
review_requirement: "Engineering-specific deployment requires qualified review and applicable regulatory approval."
END_FLOW
Download Code
Copy to Clipboard