Skip to content

Commit d426461

Browse files
updated model.yaml - support subproperties
1 parent 49709d3 commit d426461

File tree

1 file changed

+127
-0
lines changed

1 file changed

+127
-0
lines changed

AIPrediction/model.yaml

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
AIPrediction:
2+
description: Represent an AI forecasted needed maintenance intervention
3+
properties:
4+
anomalyType:
5+
description: Class and Grade of anomaly (Classification referred to the maintenance).
6+
type: string
7+
x-ngsi:
8+
type: Property
9+
computedParameters:
10+
description: ListProperty. List of computed parameters.
11+
items:
12+
description: The computed parameter with its value.
13+
properties:
14+
name:
15+
description: The parameter's name.
16+
type: string
17+
x-ngsi:
18+
type: Property
19+
value:
20+
description: The value of the parameter.
21+
type: number
22+
x-ngsi:
23+
type: Property
24+
type: object
25+
x-ngsi:
26+
type: Property
27+
type: array
28+
country:
29+
description: The country where the prediction is relevant.
30+
type: string
31+
x-ngsi:
32+
type: Property
33+
date:
34+
description: The date of the prediction.
35+
format: date
36+
type: string
37+
x-ngsi:
38+
type: Property
39+
exceededThreshold:
40+
description: ListProperty. List of thresholds that have been exceeded.
41+
items:
42+
description: The parameter whose threshold has been exceeded.
43+
type: string
44+
x-ngsi:
45+
type: Property
46+
type: array
47+
head:
48+
description: Head-related information.
49+
type: string
50+
x-ngsi:
51+
type: Property
52+
interventionDuration:
53+
description: Duration of the intervention in minutes
54+
type: integer
55+
x-ngsi:
56+
type: Property
57+
laser:
58+
description: Laser-related information.
59+
type: string
60+
x-ngsi:
61+
type: Property
62+
maintenanceTypeBin:
63+
description: Binary representation of the maintenance type.
64+
type: string
65+
x-ngsi:
66+
type: Property
67+
maintenanceTypeDec:
68+
description: Decimal representation of the maintenance type.
69+
type: integer
70+
x-ngsi:
71+
type: Property
72+
requiresComponent:
73+
description: ListProperty. List of machine components required for the maintenance.
74+
items:
75+
description: Required machine components.
76+
format: uri
77+
type: string
78+
x-ngsi:
79+
type: Relationship
80+
type: array
81+
requiresSkill:
82+
description: ListProperty. Experience and tools required.
83+
items:
84+
description: Technical skill description.
85+
format: uri
86+
type: string
87+
x-ngsi:
88+
type: Relationship
89+
type: array
90+
runningTime:
91+
description: Running time in minutes.
92+
type: integer
93+
x-ngsi:
94+
type: Property
95+
type:
96+
description: The type of the entity (InventoryItem).
97+
type: string
98+
x-ngsi:
99+
type: Property
100+
weeksForIntervention:
101+
description: Deadline for intervention, in weeks (if anomalyClas is 'Perfect' and this is 52, no intervention is actually required).
102+
type: integer
103+
x-ngsi:
104+
type: Property
105+
required:
106+
- id
107+
- type
108+
- date
109+
- laser
110+
- head
111+
- runningTime
112+
- computedParameters
113+
- anomalyType
114+
- weeksForIntervention
115+
- exceededThreshold
116+
- maintenanceTypeBin
117+
- maintenanceTypeDec
118+
- requiresSkill
119+
- requiresComponent
120+
- interventionDuration
121+
type: object
122+
x-derived-from: ''
123+
x-disclaimer: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the license conditions are met. Copyleft (c) 2025 Contributors to Smart Data Models Program
124+
x-license-url: https://github.com/smart-data-models/dataModel.PredictiveMaintenance/blob/master/AIPrediction/LICENSE.md
125+
x-model-schema: https://smart-data-models.github.io/dataModel.PredictiveMaintenance/AIPrediction/schema.json
126+
x-model-tags: maintenance
127+
x-version: 0.0.1

0 commit comments

Comments
 (0)