prograph 1.3.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (237) hide show
  1. prograph/__init__.py +36 -0
  2. prograph/__main__.py +5 -0
  3. prograph/_version.py +375 -0
  4. prograph/cli/__init__.py +1 -0
  5. prograph/cli/_iri_utils.py +124 -0
  6. prograph/cli/emit_genie_space.py +107 -0
  7. prograph/cli/generate_views.py +140 -0
  8. prograph/cli/main.py +420 -0
  9. prograph/cli/schema_inferrer.py +746 -0
  10. prograph/cli/ttl_loader.py +289 -0
  11. prograph/cli/upload_genie_space.py +84 -0
  12. prograph/config/__init__.py +27 -0
  13. prograph/config/yaml_config.py +848 -0
  14. prograph/demos/__init__.py +14 -0
  15. prograph/demos/turbofan/README.md +74 -0
  16. prograph/demos/turbofan/SCENARIO.md +209 -0
  17. prograph/demos/turbofan/__init__.py +75 -0
  18. prograph/demos/turbofan/create_tables.sql +206 -0
  19. prograph/demos/turbofan/data/engine-instances.ttl +1123 -0
  20. prograph/demos/turbofan/data/sensor-timeseries.csv +90 -0
  21. prograph/demos/turbofan/demo.py +162 -0
  22. prograph/demos/turbofan/genie_qa_notebook.py +434 -0
  23. prograph/demos/turbofan/graph.yaml +1098 -0
  24. prograph/demos/turbofan/instance_graph_demo.py +32 -0
  25. prograph/demos/turbofan/load.py +223 -0
  26. prograph/demos/turbofan/mapping.r2rml.ttl +991 -0
  27. prograph/demos/turbofan/ontology/engine-maintenance.ttl +606 -0
  28. prograph/demos/turbofan/payload-shapes.ttl +33 -0
  29. prograph/demos/turbofan/queries/example-queries.sparql +215 -0
  30. prograph/demos/turbofan/shapes.ttl +75 -0
  31. prograph/demos/turbofan/tables.py +106 -0
  32. prograph/demos/turbofan/turbofan_schema.py +393 -0
  33. prograph/demos/turbofan/validation_demo.py +153 -0
  34. prograph/describe.py +231 -0
  35. prograph/endpoint/__init__.py +12 -0
  36. prograph/endpoint/app.py +722 -0
  37. prograph/endpoint/cli.py +280 -0
  38. prograph/endpoint/credentials.py +240 -0
  39. prograph/endpoint/engines.py +418 -0
  40. prograph/endpoint/negotiate.py +101 -0
  41. prograph/endpoint/results.py +181 -0
  42. prograph/endpoint/service.py +31 -0
  43. prograph/engine.py +2718 -0
  44. prograph/execution.py +455 -0
  45. prograph/executors/__init__.py +6 -0
  46. prograph/executors/base.py +11 -0
  47. prograph/executors/databricks_sql_executor.py +51 -0
  48. prograph/executors/duckdb_executor.py +24 -0
  49. prograph/executors/mysql_executor.py +20 -0
  50. prograph/executors/oracle_executor.py +24 -0
  51. prograph/executors/pandas_executor.py +72 -0
  52. prograph/executors/postgresql_executor.py +35 -0
  53. prograph/executors/spark_executor.py +88 -0
  54. prograph/executors/sqlserver_executor.py +35 -0
  55. prograph/extras/__init__.py +1 -0
  56. prograph/extras/graphql/__init__.py +33 -0
  57. prograph/extras/graphql/execute.py +25 -0
  58. prograph/extras/graphql/schema.py +314 -0
  59. prograph/extras/instance_graph.py +559 -0
  60. prograph/genie/__init__.py +83 -0
  61. prograph/genie/databricks_uploader.py +306 -0
  62. prograph/genie/deploy.py +393 -0
  63. prograph/genie/formats.py +414 -0
  64. prograph/genie/instruction_generator.py +375 -0
  65. prograph/genie/sample_query_generator.py +256 -0
  66. prograph/genie/shacl_views.py +318 -0
  67. prograph/genie/space_emitter.py +329 -0
  68. prograph/genie/view_generator.py +628 -0
  69. prograph/genie/view_writer.py +172 -0
  70. prograph/graph/__init__.py +1 -0
  71. prograph/graph/ansi_session.py +348 -0
  72. prograph/graph/databricks_sql_graph.py +300 -0
  73. prograph/graph/drivers.py +143 -0
  74. prograph/graph/duckdb_graph.py +68 -0
  75. prograph/graph/mysql_graph.py +38 -0
  76. prograph/graph/oracle_graph.py +285 -0
  77. prograph/graph/pandas_graph.py +343 -0
  78. prograph/graph/postgresql_graph.py +644 -0
  79. prograph/graph/spark_graph.py +556 -0
  80. prograph/graph/sql_graph.py +83 -0
  81. prograph/graph/sqlserver_graph.py +72 -0
  82. prograph/hints.py +95 -0
  83. prograph/logging.py +550 -0
  84. prograph/mcp/__init__.py +29 -0
  85. prograph/mcp/__main__.py +180 -0
  86. prograph/mcp/bootstrap.py +98 -0
  87. prograph/mcp/server.py +601 -0
  88. prograph/mcp/sparql.py +397 -0
  89. prograph/mcp/tools.py +504 -0
  90. prograph/nlp/__init__.py +79 -0
  91. prograph/nlp/client.py +305 -0
  92. prograph/nlp/databricks_tools.py +369 -0
  93. prograph/nlp/graph_context.py +313 -0
  94. prograph/nlp/interface.py +652 -0
  95. prograph/nlp/prompts/__init__.py +19 -0
  96. prograph/nlp/prompts/examples.py +258 -0
  97. prograph/nlp/prompts/system.py +239 -0
  98. prograph/nlp/providers/__init__.py +14 -0
  99. prograph/nlp/providers/anthropic.py +274 -0
  100. prograph/nlp/providers/databricks.py +312 -0
  101. prograph/nlp/providers/openai.py +203 -0
  102. prograph/nlp/schema_context.py +78 -0
  103. prograph/ontology/__init__.py +53 -0
  104. prograph/ontology/alignment.py +542 -0
  105. prograph/ontology/hierarchy.py +310 -0
  106. prograph/ontology/imports.py +587 -0
  107. prograph/ontology/layer.py +991 -0
  108. prograph/ontology/skos.py +61 -0
  109. prograph/owl/__init__.py +27 -0
  110. prograph/owl/defined_classes.py +323 -0
  111. prograph/parameters.py +242 -0
  112. prograph/parser/__init__.py +1 -0
  113. prograph/parser/cypher/CypherLexer.py +836 -0
  114. prograph/parser/cypher/CypherListener.py +966 -0
  115. prograph/parser/cypher/CypherParser.py +10854 -0
  116. prograph/parser/cypher/CypherVisitor.py +543 -0
  117. prograph/parser/cypher/__init__.py +1 -0
  118. prograph/parser/sparql/SparqlLexer.py +801 -0
  119. prograph/parser/sparql/SparqlParser.py +10146 -0
  120. prograph/parser/sparql/SparqlParserListener.py +1056 -0
  121. prograph/parser/sparql/SparqlParserVisitor.py +593 -0
  122. prograph/parser/sparql/__init__.py +8 -0
  123. prograph/plan/__init__.py +3 -0
  124. prograph/plan/ir/__init__.py +1 -0
  125. prograph/plan/ir/casts.py +338 -0
  126. prograph/plan/ir/consistency.py +397 -0
  127. prograph/plan/ir/construct.py +90 -0
  128. prograph/plan/ir/cost.py +234 -0
  129. prograph/plan/ir/cypher_answer.py +1081 -0
  130. prograph/plan/ir/cypher_apoc.py +717 -0
  131. prograph/plan/ir/cypher_apoc_convert.py +505 -0
  132. prograph/plan/ir/cypher_apoc_date.py +845 -0
  133. prograph/plan/ir/cypher_apoc_map.py +496 -0
  134. prograph/plan/ir/cypher_apoc_meta.py +384 -0
  135. prograph/plan/ir/cypher_apoc_path.py +597 -0
  136. prograph/plan/ir/cypher_apoc_procedures.py +163 -0
  137. prograph/plan/ir/cypher_apoc_text.py +785 -0
  138. prograph/plan/ir/cypher_front.py +5474 -0
  139. prograph/plan/ir/cypher_functions.py +565 -0
  140. prograph/plan/ir/cypher_lists.py +935 -0
  141. prograph/plan/ir/cypher_maps.py +370 -0
  142. prograph/plan/ir/cypher_mixed.py +604 -0
  143. prograph/plan/ir/cypher_ontology.py +226 -0
  144. prograph/plan/ir/cypher_procedures.py +191 -0
  145. prograph/plan/ir/cypher_runtime_errors.py +107 -0
  146. prograph/plan/ir/cypher_temporal.py +1357 -0
  147. prograph/plan/ir/cypher_temporal_arith.py +339 -0
  148. prograph/plan/ir/cypher_values.py +546 -0
  149. prograph/plan/ir/cypher_write.py +612 -0
  150. prograph/plan/ir/dataset.py +643 -0
  151. prograph/plan/ir/dates.py +102 -0
  152. prograph/plan/ir/entry.py +992 -0
  153. prograph/plan/ir/expr.py +260 -0
  154. prograph/plan/ir/facts.py +1171 -0
  155. prograph/plan/ir/fresh.py +291 -0
  156. prograph/plan/ir/freshness.py +625 -0
  157. prograph/plan/ir/identity.py +797 -0
  158. prograph/plan/ir/java_datetime.py +265 -0
  159. prograph/plan/ir/java_regex.py +391 -0
  160. prograph/plan/ir/join_order.py +39 -0
  161. prograph/plan/ir/key_checks.py +433 -0
  162. prograph/plan/ir/keys.py +454 -0
  163. prograph/plan/ir/lower.py +5323 -0
  164. prograph/plan/ir/ops.py +619 -0
  165. prograph/plan/ir/owl_rl.py +1119 -0
  166. prograph/plan/ir/owl_rl_rules.py +725 -0
  167. prograph/plan/ir/profiles.py +694 -0
  168. prograph/plan/ir/ql.py +987 -0
  169. prograph/plan/ir/rdfs.py +342 -0
  170. prograph/plan/ir/rewrite.py +1782 -0
  171. prograph/plan/ir/saturate.py +339 -0
  172. prograph/plan/ir/semantics.py +103 -0
  173. prograph/plan/ir/slot.py +509 -0
  174. prograph/plan/ir/sparql_front.py +3418 -0
  175. prograph/plan/ir/strings.py +534 -0
  176. prograph/plan/ir/term_functions.py +274 -0
  177. prograph/plan/ir/terms.py +84 -0
  178. prograph/plan/ir/xpath_regex.py +264 -0
  179. prograph/plan/run_record.py +65 -0
  180. prograph/plan/sql/__init__.py +21 -0
  181. prograph/plan/sql/dialect.py +3726 -0
  182. prograph/plan/sql/mysql_serializer.py +103 -0
  183. prograph/plan/sql/names.py +65 -0
  184. prograph/plan/sql/oracle_serializer.py +306 -0
  185. prograph/plan/sql/pg_serializer.py +501 -0
  186. prograph/plan/sql/rel_algebra.py +781 -0
  187. prograph/plan/sql/sql_serializer.py +1419 -0
  188. prograph/plan/sql/sqlserver_serializer.py +603 -0
  189. prograph/provenance.py +222 -0
  190. prograph/r2rml/__init__.py +48 -0
  191. prograph/r2rml/catalog.py +259 -0
  192. prograph/r2rml/compile.py +372 -0
  193. prograph/r2rml/direct.py +140 -0
  194. prograph/r2rml/export.py +495 -0
  195. prograph/r2rml/model.py +180 -0
  196. prograph/r2rml/parser.py +546 -0
  197. prograph/r2rml/schema.py +120 -0
  198. prograph/read_only.py +122 -0
  199. prograph/results.py +157 -0
  200. prograph/rules/__init__.py +168 -0
  201. prograph/rules/__main__.py +32 -0
  202. prograph/schema/__init__.py +60 -0
  203. prograph/schema/change_set.py +50 -0
  204. prograph/schema/collations.py +198 -0
  205. prograph/schema/compile_schema.py +388 -0
  206. prograph/schema/context.py +845 -0
  207. prograph/schema/examples.py +234 -0
  208. prograph/schema/iri.py +817 -0
  209. prograph/schema/literals.py +94 -0
  210. prograph/schema/lpg_view.py +617 -0
  211. prograph/schema/mapping.py +1803 -0
  212. prograph/schema/maps_schema.py +40 -0
  213. prograph/schema/naming.py +77 -0
  214. prograph/schema/query_sources.py +59 -0
  215. prograph/schema/rows.py +215 -0
  216. prograph/schema/source_map.py +1103 -0
  217. prograph/schema/store_view.py +459 -0
  218. prograph/schema/types.py +569 -0
  219. prograph/schema/xsd.py +569 -0
  220. prograph/shacl/__init__.py +30 -0
  221. prograph/shacl/dqv.py +58 -0
  222. prograph/shacl/generate.py +255 -0
  223. prograph/shacl/report.py +138 -0
  224. prograph/shacl/validator.py +164 -0
  225. prograph/store.py +1737 -0
  226. prograph/utils/__init__.py +6 -0
  227. prograph/utils/exceptions.py +308 -0
  228. prograph/utils/helpers.py +126 -0
  229. prograph/warnings.py +46 -0
  230. prograph/writes.py +369 -0
  231. prograph-1.3.3.dist-info/METADATA +281 -0
  232. prograph-1.3.3.dist-info/RECORD +237 -0
  233. prograph-1.3.3.dist-info/WHEEL +5 -0
  234. prograph-1.3.3.dist-info/entry_points.txt +3 -0
  235. prograph-1.3.3.dist-info/licenses/LICENSE +201 -0
  236. prograph-1.3.3.dist-info/licenses/NOTICE +10 -0
  237. prograph-1.3.3.dist-info/top_level.txt +1 -0
@@ -0,0 +1,1098 @@
1
+ # Turbofan Engine Predictive Maintenance Graph Configuration
2
+ #
3
+ # 10 node tables (53 labels: 51 via filter_predicate, 2 over a query), 17
4
+ # relationship tables (29 relationship mappings). Same schema as
5
+ # turbofan_schema.py.
6
+ #
7
+ # Usage with Spark, where each source's `table:` names a catalog table:
8
+ # from prograph import ProGraph
9
+ # from prograph.demos.turbofan import SCHEMA_YAML_PATH
10
+ # engine = ProGraph.from_config(str(SCHEMA_YAML_PATH), spark=spark)
11
+ #
12
+ # Without Spark, from_config cannot load `table:` sources; build the engine
13
+ # with prograph.demos.turbofan.load.build_engine() instead.
14
+
15
+ version: "1.0"
16
+
17
+ graph:
18
+ name: turbofan_engine
19
+ comment: "Turbofan engine predictive maintenance knowledge graph"
20
+
21
+ sources:
22
+ # Node sources
23
+ engines:
24
+ table: engines
25
+ comment: "Turbofan engine instances"
26
+
27
+ modules:
28
+ table: modules
29
+ comment: "Engine modules (shared table, discriminated by type)"
30
+
31
+ components:
32
+ table: components
33
+ comment: "Engine components (shared table, discriminated by type)"
34
+
35
+ high_wear_components:
36
+ query: "SELECT id FROM components WHERE wear_index >= 0.7"
37
+ comment: "HighWearComponent: the components whose wear index is 0.7 or more"
38
+
39
+ critical_path_components:
40
+ query: "SELECT start_id AS id FROM propagates_to GROUP BY start_id HAVING COUNT(DISTINCT end_id) >= 2"
41
+ comment: "CriticalPathComponent: the components that propagate degradation to two things or more"
42
+
43
+ sensors:
44
+ table: sensors
45
+ comment: "Sensors (shared table, discriminated by type)"
46
+
47
+ sensor_readings:
48
+ table: sensor_readings
49
+ comment: "Time-series sensor observations"
50
+
51
+ degradation_modes:
52
+ table: degradation_modes
53
+ comment: "Degradation modes (shared table, discriminated by type)"
54
+
55
+ maintenance_actions:
56
+ table: maintenance_actions
57
+ comment: "Maintenance actions (shared table, discriminated by type)"
58
+
59
+ fleets:
60
+ table: fleets
61
+ comment: "Fleet groupings"
62
+
63
+ aircraft:
64
+ table: aircraft
65
+ comment: "Aircraft instances"
66
+
67
+ operating_environments:
68
+ table: operating_environments
69
+ comment: "Operating environment conditions"
70
+
71
+ # Relationship sources
72
+ is_part_of:
73
+ table: is_part_of
74
+ comment: "Mereological containment (module→engine, component→module)"
75
+
76
+ downstream_of:
77
+ table: downstream_of
78
+ comment: "Gas path ordering between modules"
79
+
80
+ connected_to:
81
+ table: connected_to
82
+ comment: "Physical adjacency between modules"
83
+
84
+ drives_shaft:
85
+ table: drives_shaft
86
+ comment: "Turbine drives compressor/fan via shaft"
87
+
88
+ supplies_fluid_to:
89
+ table: supplies_fluid_to
90
+ comment: "Oil/fuel supply between modules"
91
+
92
+ monitors:
93
+ table: monitors
94
+ comment: "Sensor observes component/module"
95
+
96
+ installed_on:
97
+ table: installed_on
98
+ comment: "Sensor physical location"
99
+
100
+ has_reading:
101
+ table: has_reading
102
+ comment: "Sensor → sensor readings"
103
+
104
+ exhibits_degradation:
105
+ table: exhibits_degradation
106
+ comment: "Active degradation on component"
107
+
108
+ susceptible_to:
109
+ table: susceptible_to
110
+ comment: "Known failure mode for component"
111
+
112
+ indicated_by:
113
+ table: indicated_by
114
+ comment: "Which sensors detect degradation"
115
+
116
+ propagates_to:
117
+ table: propagates_to
118
+ comment: "Degradation propagation paths"
119
+
120
+ performed_on:
121
+ table: performed_on
122
+ comment: "Maintenance action performed on component"
123
+
124
+ addresses_degradation:
125
+ table: addresses_degradation
126
+ comment: "Maintenance action addresses degradation"
127
+
128
+ installed_on_aircraft:
129
+ table: installed_on_aircraft
130
+ comment: "Engine installed on aircraft"
131
+
132
+ belongs_to_fleet:
133
+ table: belongs_to_fleet
134
+ comment: "Aircraft belongs to fleet"
135
+
136
+ operates_in:
137
+ table: operates_in
138
+ comment: "Engine operates in environment"
139
+
140
+ # ==========================================================================
141
+ # Nodes
142
+ # ==========================================================================
143
+
144
+ nodes:
145
+ # --- Engine ---
146
+ - label: Engine
147
+ source: engines
148
+ id_column: id
149
+ mutable: true
150
+ properties:
151
+ label: label
152
+ serial_number: serial_number
153
+ total_cycles_since_new: total_cycles_since_new
154
+ total_hours_since_new: total_hours_since_new
155
+ cycles_since_last_overhaul: cycles_since_last_overhaul
156
+ hours_since_last_overhaul: hours_since_last_overhaul
157
+ wear_index: wear_index
158
+
159
+ # --- Modules (shared table) ---
160
+ # Abstract parent: no filter_predicate → covers every row.
161
+ - label: Module
162
+ source: modules
163
+ id_column: id
164
+ mutable: true
165
+ properties:
166
+ label: label
167
+ serial_number: serial_number
168
+
169
+ - label: FanModule
170
+ source: modules
171
+ id_column: id
172
+ mutable: true
173
+ filter_predicate:
174
+ type: FanModule
175
+ properties:
176
+ label: label
177
+ serial_number: serial_number
178
+
179
+ - label: LPC
180
+ source: modules
181
+ id_column: id
182
+ mutable: true
183
+ filter_predicate:
184
+ type: LPC
185
+ properties:
186
+ label: label
187
+ serial_number: serial_number
188
+
189
+ - label: HPC
190
+ source: modules
191
+ id_column: id
192
+ mutable: true
193
+ filter_predicate:
194
+ type: HPC
195
+ properties:
196
+ label: label
197
+ serial_number: serial_number
198
+
199
+ - label: CombustionChamber
200
+ source: modules
201
+ id_column: id
202
+ mutable: true
203
+ filter_predicate:
204
+ type: CombustionChamber
205
+ properties:
206
+ label: label
207
+ serial_number: serial_number
208
+
209
+ - label: HPT
210
+ source: modules
211
+ id_column: id
212
+ mutable: true
213
+ filter_predicate:
214
+ type: HPT
215
+ properties:
216
+ label: label
217
+ serial_number: serial_number
218
+
219
+ - label: LPT
220
+ source: modules
221
+ id_column: id
222
+ mutable: true
223
+ filter_predicate:
224
+ type: LPT
225
+ properties:
226
+ label: label
227
+ serial_number: serial_number
228
+
229
+ - label: ExhaustNozzle
230
+ source: modules
231
+ id_column: id
232
+ mutable: true
233
+ filter_predicate:
234
+ type: ExhaustNozzle
235
+ properties:
236
+ label: label
237
+ serial_number: serial_number
238
+
239
+ - label: AccessoryGearbox
240
+ source: modules
241
+ id_column: id
242
+ mutable: true
243
+ filter_predicate:
244
+ type: AccessoryGearbox
245
+ properties:
246
+ label: label
247
+ serial_number: serial_number
248
+
249
+ - label: OilSystem
250
+ source: modules
251
+ id_column: id
252
+ mutable: true
253
+ filter_predicate:
254
+ type: OilSystem
255
+ properties:
256
+ label: label
257
+ serial_number: serial_number
258
+
259
+ - label: FuelSystem
260
+ source: modules
261
+ id_column: id
262
+ mutable: true
263
+ filter_predicate:
264
+ type: FuelSystem
265
+ properties:
266
+ label: label
267
+ serial_number: serial_number
268
+
269
+ # --- Components (shared table) ---
270
+ # Abstract parent: covers every component regardless of subtype.
271
+ - label: Component
272
+ source: components
273
+ id_column: id
274
+ mutable: true
275
+ properties:
276
+ label: label
277
+ serial_number: serial_number
278
+ wear_index: wear_index
279
+ total_cycles_since_new: total_cycles_since_new
280
+ cycles_since_last_overhaul: cycles_since_last_overhaul
281
+ remaining_useful_life_cycles: remaining_useful_life_cycles
282
+ scheduled_interval: scheduled_interval
283
+ mean_time_between_failures: mean_time_between_failures
284
+ has_health_state: has_health_state
285
+
286
+ - label: Blade
287
+ source: components
288
+ id_column: id
289
+ mutable: true
290
+ filter_predicate:
291
+ type: Blade
292
+ properties:
293
+ label: label
294
+ serial_number: serial_number
295
+ wear_index: wear_index
296
+ total_cycles_since_new: total_cycles_since_new
297
+ cycles_since_last_overhaul: cycles_since_last_overhaul
298
+ remaining_useful_life_cycles: remaining_useful_life_cycles
299
+ scheduled_interval: scheduled_interval
300
+ mean_time_between_failures: mean_time_between_failures
301
+ has_health_state: has_health_state
302
+
303
+ - label: Disk
304
+ source: components
305
+ id_column: id
306
+ mutable: true
307
+ filter_predicate:
308
+ type: Disk
309
+ properties:
310
+ label: label
311
+ serial_number: serial_number
312
+ wear_index: wear_index
313
+ total_cycles_since_new: total_cycles_since_new
314
+ cycles_since_last_overhaul: cycles_since_last_overhaul
315
+ remaining_useful_life_cycles: remaining_useful_life_cycles
316
+ scheduled_interval: scheduled_interval
317
+ mean_time_between_failures: mean_time_between_failures
318
+ has_health_state: has_health_state
319
+
320
+ - label: Shaft
321
+ source: components
322
+ id_column: id
323
+ mutable: true
324
+ filter_predicate:
325
+ type: Shaft
326
+ properties:
327
+ label: label
328
+ serial_number: serial_number
329
+ wear_index: wear_index
330
+ total_cycles_since_new: total_cycles_since_new
331
+ cycles_since_last_overhaul: cycles_since_last_overhaul
332
+ remaining_useful_life_cycles: remaining_useful_life_cycles
333
+ scheduled_interval: scheduled_interval
334
+ mean_time_between_failures: mean_time_between_failures
335
+ has_health_state: has_health_state
336
+
337
+ - label: Bearing
338
+ source: components
339
+ id_column: id
340
+ mutable: true
341
+ filter_predicate:
342
+ type: Bearing
343
+ properties:
344
+ label: label
345
+ serial_number: serial_number
346
+ wear_index: wear_index
347
+ total_cycles_since_new: total_cycles_since_new
348
+ cycles_since_last_overhaul: cycles_since_last_overhaul
349
+ remaining_useful_life_cycles: remaining_useful_life_cycles
350
+ scheduled_interval: scheduled_interval
351
+ mean_time_between_failures: mean_time_between_failures
352
+ has_health_state: has_health_state
353
+
354
+ - label: Seal
355
+ source: components
356
+ id_column: id
357
+ mutable: true
358
+ filter_predicate:
359
+ type: Seal
360
+ properties:
361
+ label: label
362
+ serial_number: serial_number
363
+ wear_index: wear_index
364
+ total_cycles_since_new: total_cycles_since_new
365
+ cycles_since_last_overhaul: cycles_since_last_overhaul
366
+ remaining_useful_life_cycles: remaining_useful_life_cycles
367
+ scheduled_interval: scheduled_interval
368
+ mean_time_between_failures: mean_time_between_failures
369
+ has_health_state: has_health_state
370
+
371
+ - label: Combustor
372
+ source: components
373
+ id_column: id
374
+ mutable: true
375
+ filter_predicate:
376
+ type: Combustor
377
+ properties:
378
+ label: label
379
+ serial_number: serial_number
380
+ wear_index: wear_index
381
+ total_cycles_since_new: total_cycles_since_new
382
+ cycles_since_last_overhaul: cycles_since_last_overhaul
383
+ remaining_useful_life_cycles: remaining_useful_life_cycles
384
+ scheduled_interval: scheduled_interval
385
+ mean_time_between_failures: mean_time_between_failures
386
+ has_health_state: has_health_state
387
+
388
+ - label: FuelNozzle
389
+ source: components
390
+ id_column: id
391
+ mutable: true
392
+ filter_predicate:
393
+ type: FuelNozzle
394
+ properties:
395
+ label: label
396
+ serial_number: serial_number
397
+ wear_index: wear_index
398
+ total_cycles_since_new: total_cycles_since_new
399
+ cycles_since_last_overhaul: cycles_since_last_overhaul
400
+ remaining_useful_life_cycles: remaining_useful_life_cycles
401
+ scheduled_interval: scheduled_interval
402
+ mean_time_between_failures: mean_time_between_failures
403
+ has_health_state: has_health_state
404
+
405
+ - label: OilPump
406
+ source: components
407
+ id_column: id
408
+ mutable: true
409
+ filter_predicate:
410
+ type: OilPump
411
+ properties:
412
+ label: label
413
+ serial_number: serial_number
414
+ wear_index: wear_index
415
+ total_cycles_since_new: total_cycles_since_new
416
+ cycles_since_last_overhaul: cycles_since_last_overhaul
417
+ remaining_useful_life_cycles: remaining_useful_life_cycles
418
+ scheduled_interval: scheduled_interval
419
+ mean_time_between_failures: mean_time_between_failures
420
+ has_health_state: has_health_state
421
+
422
+ - label: OilFilter
423
+ source: components
424
+ id_column: id
425
+ mutable: true
426
+ filter_predicate:
427
+ type: OilFilter
428
+ properties:
429
+ label: label
430
+ serial_number: serial_number
431
+ wear_index: wear_index
432
+ total_cycles_since_new: total_cycles_since_new
433
+ cycles_since_last_overhaul: cycles_since_last_overhaul
434
+ remaining_useful_life_cycles: remaining_useful_life_cycles
435
+ scheduled_interval: scheduled_interval
436
+ mean_time_between_failures: mean_time_between_failures
437
+ has_health_state: has_health_state
438
+
439
+ - label: HeatExchanger
440
+ source: components
441
+ id_column: id
442
+ mutable: true
443
+ filter_predicate:
444
+ type: HeatExchanger
445
+ properties:
446
+ label: label
447
+ serial_number: serial_number
448
+ wear_index: wear_index
449
+ total_cycles_since_new: total_cycles_since_new
450
+ cycles_since_last_overhaul: cycles_since_last_overhaul
451
+ remaining_useful_life_cycles: remaining_useful_life_cycles
452
+ scheduled_interval: scheduled_interval
453
+ mean_time_between_failures: mean_time_between_failures
454
+ has_health_state: has_health_state
455
+
456
+ - label: FADEC
457
+ source: components
458
+ id_column: id
459
+ mutable: true
460
+ filter_predicate:
461
+ type: FADEC
462
+ properties:
463
+ label: label
464
+ serial_number: serial_number
465
+ wear_index: wear_index
466
+ total_cycles_since_new: total_cycles_since_new
467
+ cycles_since_last_overhaul: cycles_since_last_overhaul
468
+ remaining_useful_life_cycles: remaining_useful_life_cycles
469
+ scheduled_interval: scheduled_interval
470
+ mean_time_between_failures: mean_time_between_failures
471
+ has_health_state: has_health_state
472
+
473
+ - label: Vane
474
+ source: components
475
+ id_column: id
476
+ mutable: true
477
+ filter_predicate:
478
+ type: Vane
479
+ properties:
480
+ label: label
481
+ serial_number: serial_number
482
+ wear_index: wear_index
483
+ total_cycles_since_new: total_cycles_since_new
484
+ cycles_since_last_overhaul: cycles_since_last_overhaul
485
+ remaining_useful_life_cycles: remaining_useful_life_cycles
486
+ scheduled_interval: scheduled_interval
487
+ mean_time_between_failures: mean_time_between_failures
488
+ has_health_state: has_health_state
489
+
490
+ # Two classes the ontology defines by values, which no OWL profile applies:
491
+ # their members are a query's rows.
492
+ - label: HighWearComponent
493
+ source: high_wear_components
494
+ id_column: id
495
+
496
+ - label: CriticalPathComponent
497
+ source: critical_path_components
498
+ id_column: id
499
+
500
+ # --- Sensors (shared table) ---
501
+ # Abstract parent: covers every sensor regardless of subtype.
502
+ - label: Sensor
503
+ source: sensors
504
+ id_column: id
505
+ mutable: true
506
+ properties:
507
+ label: label
508
+ sensor_id: sensor_id
509
+ nominal_min: nominal_min
510
+ nominal_max: nominal_max
511
+ caution_threshold: caution_threshold
512
+ warning_threshold: warning_threshold
513
+ critical_threshold: critical_threshold
514
+
515
+ - label: VibrationSensor
516
+ source: sensors
517
+ id_column: id
518
+ mutable: true
519
+ filter_predicate:
520
+ type: VibrationSensor
521
+ properties:
522
+ label: label
523
+ sensor_id: sensor_id
524
+ nominal_min: nominal_min
525
+ nominal_max: nominal_max
526
+ caution_threshold: caution_threshold
527
+ warning_threshold: warning_threshold
528
+ critical_threshold: critical_threshold
529
+
530
+ - label: TemperatureSensor
531
+ source: sensors
532
+ id_column: id
533
+ mutable: true
534
+ filter_predicate:
535
+ type: TemperatureSensor
536
+ properties:
537
+ label: label
538
+ sensor_id: sensor_id
539
+ nominal_min: nominal_min
540
+ nominal_max: nominal_max
541
+ caution_threshold: caution_threshold
542
+ warning_threshold: warning_threshold
543
+ critical_threshold: critical_threshold
544
+
545
+ - label: PressureSensor
546
+ source: sensors
547
+ id_column: id
548
+ mutable: true
549
+ filter_predicate:
550
+ type: PressureSensor
551
+ properties:
552
+ label: label
553
+ sensor_id: sensor_id
554
+ nominal_min: nominal_min
555
+ nominal_max: nominal_max
556
+ caution_threshold: caution_threshold
557
+ warning_threshold: warning_threshold
558
+ critical_threshold: critical_threshold
559
+
560
+ - label: SpeedSensor
561
+ source: sensors
562
+ id_column: id
563
+ mutable: true
564
+ filter_predicate:
565
+ type: SpeedSensor
566
+ properties:
567
+ label: label
568
+ sensor_id: sensor_id
569
+ nominal_min: nominal_min
570
+ nominal_max: nominal_max
571
+ caution_threshold: caution_threshold
572
+ warning_threshold: warning_threshold
573
+ critical_threshold: critical_threshold
574
+
575
+ - label: OilDebrisSensor
576
+ source: sensors
577
+ id_column: id
578
+ mutable: true
579
+ filter_predicate:
580
+ type: OilDebrisSensor
581
+ properties:
582
+ label: label
583
+ sensor_id: sensor_id
584
+ nominal_min: nominal_min
585
+ nominal_max: nominal_max
586
+ caution_threshold: caution_threshold
587
+ warning_threshold: warning_threshold
588
+ critical_threshold: critical_threshold
589
+
590
+ - label: FlowSensor
591
+ source: sensors
592
+ id_column: id
593
+ mutable: true
594
+ filter_predicate:
595
+ type: FlowSensor
596
+ properties:
597
+ label: label
598
+ sensor_id: sensor_id
599
+ nominal_min: nominal_min
600
+ nominal_max: nominal_max
601
+ caution_threshold: caution_threshold
602
+ warning_threshold: warning_threshold
603
+ critical_threshold: critical_threshold
604
+
605
+ # --- Sensor Readings ---
606
+ - label: SensorReading
607
+ source: sensor_readings
608
+ id_column: id
609
+ mutable: true
610
+ properties:
611
+ reading_timestamp: reading_timestamp
612
+ reading_value: reading_value
613
+ reading_unit: reading_unit
614
+
615
+ # --- Degradation Modes (shared table) ---
616
+ # Abstract parent: covers every degradation mode regardless of subtype.
617
+ - label: DegradationMode
618
+ source: degradation_modes
619
+ id_column: id
620
+ mutable: true
621
+ properties:
622
+ label: label
623
+
624
+ - label: Erosion
625
+ source: degradation_modes
626
+ id_column: id
627
+ mutable: true
628
+ filter_predicate:
629
+ type: Erosion
630
+ properties:
631
+ label: label
632
+
633
+ - label: Corrosion
634
+ source: degradation_modes
635
+ id_column: id
636
+ mutable: true
637
+ filter_predicate:
638
+ type: Corrosion
639
+ properties:
640
+ label: label
641
+
642
+ - label: FatigueCracking
643
+ source: degradation_modes
644
+ id_column: id
645
+ mutable: true
646
+ filter_predicate:
647
+ type: FatigueCracking
648
+ properties:
649
+ label: label
650
+
651
+ - label: ThermalDegradation
652
+ source: degradation_modes
653
+ id_column: id
654
+ mutable: true
655
+ filter_predicate:
656
+ type: ThermalDegradation
657
+ properties:
658
+ label: label
659
+
660
+ - label: ForeignObjectDamage
661
+ source: degradation_modes
662
+ id_column: id
663
+ mutable: true
664
+ filter_predicate:
665
+ type: ForeignObjectDamage
666
+ properties:
667
+ label: label
668
+
669
+ - label: WearAbrasion
670
+ source: degradation_modes
671
+ id_column: id
672
+ mutable: true
673
+ filter_predicate:
674
+ type: WearAbrasion
675
+ properties:
676
+ label: label
677
+
678
+ - label: SealLeakage
679
+ source: degradation_modes
680
+ id_column: id
681
+ mutable: true
682
+ filter_predicate:
683
+ type: SealLeakage
684
+ properties:
685
+ label: label
686
+
687
+ - label: CarbonBuildup
688
+ source: degradation_modes
689
+ id_column: id
690
+ mutable: true
691
+ filter_predicate:
692
+ type: CarbonBuildup
693
+ properties:
694
+ label: label
695
+
696
+ # --- Maintenance Actions (shared table) ---
697
+ # Abstract parent: covers every maintenance action regardless of subtype.
698
+ - label: MaintenanceAction
699
+ source: maintenance_actions
700
+ id_column: id
701
+ mutable: true
702
+ properties:
703
+ label: label
704
+ comment: comment
705
+ maintenance_date: maintenance_date
706
+ maintenance_cost: maintenance_cost
707
+ maintenance_downtime_hours: maintenance_downtime_hours
708
+ finding: finding
709
+
710
+ - label: BoroscopeInspection
711
+ source: maintenance_actions
712
+ id_column: id
713
+ mutable: true
714
+ filter_predicate:
715
+ type: BoroscopeInspection
716
+ properties:
717
+ label: label
718
+ comment: comment
719
+ maintenance_date: maintenance_date
720
+ maintenance_cost: maintenance_cost
721
+ maintenance_downtime_hours: maintenance_downtime_hours
722
+ finding: finding
723
+
724
+ - label: OilAnalysis
725
+ source: maintenance_actions
726
+ id_column: id
727
+ mutable: true
728
+ filter_predicate:
729
+ type: OilAnalysis
730
+ properties:
731
+ label: label
732
+ comment: comment
733
+ maintenance_date: maintenance_date
734
+ maintenance_cost: maintenance_cost
735
+ maintenance_downtime_hours: maintenance_downtime_hours
736
+ finding: finding
737
+
738
+ - label: BlendRepair
739
+ source: maintenance_actions
740
+ id_column: id
741
+ mutable: true
742
+ filter_predicate:
743
+ type: BlendRepair
744
+ properties:
745
+ label: label
746
+ comment: comment
747
+ maintenance_date: maintenance_date
748
+ maintenance_cost: maintenance_cost
749
+ maintenance_downtime_hours: maintenance_downtime_hours
750
+ finding: finding
751
+
752
+ - label: Replacement
753
+ source: maintenance_actions
754
+ id_column: id
755
+ mutable: true
756
+ filter_predicate:
757
+ type: Replacement
758
+ properties:
759
+ label: label
760
+ comment: comment
761
+ maintenance_date: maintenance_date
762
+ maintenance_cost: maintenance_cost
763
+ maintenance_downtime_hours: maintenance_downtime_hours
764
+ finding: finding
765
+
766
+ - label: ScheduledOverhaul
767
+ source: maintenance_actions
768
+ id_column: id
769
+ mutable: true
770
+ filter_predicate:
771
+ type: ScheduledOverhaul
772
+ properties:
773
+ label: label
774
+ comment: comment
775
+ maintenance_date: maintenance_date
776
+ maintenance_cost: maintenance_cost
777
+ maintenance_downtime_hours: maintenance_downtime_hours
778
+ finding: finding
779
+
780
+ # --- Fleet, Aircraft, OperatingEnvironment ---
781
+ - label: Fleet
782
+ source: fleets
783
+ id_column: id
784
+ mutable: true
785
+ properties:
786
+ label: label
787
+
788
+ - label: Aircraft
789
+ source: aircraft
790
+ id_column: id
791
+ mutable: true
792
+ properties:
793
+ label: label
794
+
795
+ - label: OperatingEnvironment
796
+ source: operating_environments
797
+ id_column: id
798
+ mutable: true
799
+ properties:
800
+ label: label
801
+
802
+ # ==========================================================================
803
+ # Relationships
804
+ # ==========================================================================
805
+
806
+ relationships:
807
+ # One mapping per endpoint pair the instance data contains; several
808
+ # mappings of one type share that type's table.
809
+
810
+ - type: IS_PART_OF
811
+ source: is_part_of
812
+ start_node:
813
+ label: Module
814
+ column: start_id
815
+ end_node:
816
+ label: Engine
817
+ column: end_id
818
+ mutable: true
819
+
820
+ - type: IS_PART_OF
821
+ source: is_part_of
822
+ start_node:
823
+ label: Component
824
+ column: start_id
825
+ end_node:
826
+ label: Module
827
+ column: end_id
828
+ mutable: true
829
+
830
+ - type: IS_PART_OF
831
+ source: is_part_of
832
+ start_node:
833
+ label: Component
834
+ column: start_id
835
+ end_node:
836
+ label: Engine
837
+ column: end_id
838
+ mutable: true
839
+
840
+ - type: DOWNSTREAM_OF
841
+ source: downstream_of
842
+ start_node:
843
+ label: Module
844
+ column: start_id
845
+ end_node:
846
+ label: Module
847
+ column: end_id
848
+ mutable: true
849
+
850
+ - type: CONNECTED_TO
851
+ source: connected_to
852
+ start_node:
853
+ label: Module
854
+ column: start_id
855
+ end_node:
856
+ label: Module
857
+ column: end_id
858
+ mutable: true
859
+
860
+ - type: CONNECTED_TO
861
+ source: connected_to
862
+ start_node:
863
+ label: Component
864
+ column: start_id
865
+ end_node:
866
+ label: Module
867
+ column: end_id
868
+ mutable: true
869
+
870
+ - type: DRIVES_SHAFT
871
+ source: drives_shaft
872
+ start_node:
873
+ label: Module
874
+ column: start_id
875
+ end_node:
876
+ label: Module
877
+ column: end_id
878
+ mutable: true
879
+
880
+ - type: DRIVES_SHAFT
881
+ source: drives_shaft
882
+ start_node:
883
+ label: Component
884
+ column: start_id
885
+ end_node:
886
+ label: Module
887
+ column: end_id
888
+ mutable: true
889
+
890
+ - type: DRIVES_SHAFT
891
+ source: drives_shaft
892
+ start_node:
893
+ label: Module
894
+ column: start_id
895
+ end_node:
896
+ label: Component
897
+ column: end_id
898
+ mutable: true
899
+
900
+ - type: SUPPLIES_FLUID_TO
901
+ source: supplies_fluid_to
902
+ start_node:
903
+ label: Module
904
+ column: start_id
905
+ end_node:
906
+ label: Module
907
+ column: end_id
908
+ mutable: true
909
+
910
+ - type: SUPPLIES_FLUID_TO
911
+ source: supplies_fluid_to
912
+ start_node:
913
+ label: Module
914
+ column: start_id
915
+ end_node:
916
+ label: Component
917
+ column: end_id
918
+ mutable: true
919
+
920
+ - type: MONITORS
921
+ source: monitors
922
+ start_node:
923
+ label: Sensor
924
+ column: start_id
925
+ end_node:
926
+ label: Component
927
+ column: end_id
928
+ mutable: true
929
+
930
+ - type: MONITORS
931
+ source: monitors
932
+ start_node:
933
+ label: Sensor
934
+ column: start_id
935
+ end_node:
936
+ label: Module
937
+ column: end_id
938
+ mutable: true
939
+
940
+ - type: MONITORS
941
+ source: monitors
942
+ start_node:
943
+ label: Component
944
+ column: start_id
945
+ end_node:
946
+ label: Engine
947
+ column: end_id
948
+ mutable: true
949
+
950
+ - type: INSTALLED_ON
951
+ source: installed_on
952
+ start_node:
953
+ label: Sensor
954
+ column: start_id
955
+ end_node:
956
+ label: Component
957
+ column: end_id
958
+ mutable: true
959
+
960
+ - type: INSTALLED_ON
961
+ source: installed_on
962
+ start_node:
963
+ label: Sensor
964
+ column: start_id
965
+ end_node:
966
+ label: Module
967
+ column: end_id
968
+ mutable: true
969
+
970
+ - type: HAS_READING
971
+ source: has_reading
972
+ start_node:
973
+ label: Sensor
974
+ column: start_id
975
+ end_node:
976
+ label: SensorReading
977
+ column: end_id
978
+ mutable: true
979
+
980
+ - type: EXHIBITS_DEGRADATION
981
+ source: exhibits_degradation
982
+ start_node:
983
+ label: Component
984
+ column: start_id
985
+ end_node:
986
+ label: DegradationMode
987
+ column: end_id
988
+ mutable: true
989
+
990
+ - type: SUSCEPTIBLE_TO
991
+ source: susceptible_to
992
+ start_node:
993
+ label: Component
994
+ column: start_id
995
+ end_node:
996
+ label: DegradationMode
997
+ column: end_id
998
+ mutable: true
999
+
1000
+ - type: INDICATED_BY
1001
+ source: indicated_by
1002
+ start_node:
1003
+ label: DegradationMode
1004
+ column: start_id
1005
+ end_node:
1006
+ label: Sensor
1007
+ column: end_id
1008
+ mutable: true
1009
+
1010
+ - type: PROPAGATES_TO
1011
+ source: propagates_to
1012
+ start_node:
1013
+ label: Component
1014
+ column: start_id
1015
+ end_node:
1016
+ label: Component
1017
+ column: end_id
1018
+ mutable: true
1019
+
1020
+ - type: PROPAGATES_TO
1021
+ source: propagates_to
1022
+ start_node:
1023
+ label: Component
1024
+ column: start_id
1025
+ end_node:
1026
+ label: Module
1027
+ column: end_id
1028
+ mutable: true
1029
+
1030
+ - type: PERFORMED_ON
1031
+ source: performed_on
1032
+ start_node:
1033
+ label: MaintenanceAction
1034
+ column: start_id
1035
+ end_node:
1036
+ label: Component
1037
+ column: end_id
1038
+ mutable: true
1039
+
1040
+ - type: PERFORMED_ON
1041
+ source: performed_on
1042
+ start_node:
1043
+ label: MaintenanceAction
1044
+ column: start_id
1045
+ end_node:
1046
+ label: Module
1047
+ column: end_id
1048
+ mutable: true
1049
+
1050
+ - type: PERFORMED_ON
1051
+ source: performed_on
1052
+ start_node:
1053
+ label: MaintenanceAction
1054
+ column: start_id
1055
+ end_node:
1056
+ label: Engine
1057
+ column: end_id
1058
+ mutable: true
1059
+
1060
+ - type: ADDRESSES_DEGRADATION
1061
+ source: addresses_degradation
1062
+ start_node:
1063
+ label: MaintenanceAction
1064
+ column: start_id
1065
+ end_node:
1066
+ label: DegradationMode
1067
+ column: end_id
1068
+ mutable: true
1069
+
1070
+ - type: INSTALLED_ON_AIRCRAFT
1071
+ source: installed_on_aircraft
1072
+ start_node:
1073
+ label: Engine
1074
+ column: start_id
1075
+ end_node:
1076
+ label: Aircraft
1077
+ column: end_id
1078
+ mutable: true
1079
+
1080
+ - type: BELONGS_TO_FLEET
1081
+ source: belongs_to_fleet
1082
+ start_node:
1083
+ label: Aircraft
1084
+ column: start_id
1085
+ end_node:
1086
+ label: Fleet
1087
+ column: end_id
1088
+ mutable: true
1089
+
1090
+ - type: OPERATES_IN
1091
+ source: operates_in
1092
+ start_node:
1093
+ label: Engine
1094
+ column: start_id
1095
+ end_node:
1096
+ label: OperatingEnvironment
1097
+ column: end_id
1098
+ mutable: true