-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanifest.toml
37 lines (35 loc) · 2.29 KB
/
manifest.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# ========== HAZOP2RDF2 Manifest ============
[application]
author = "Dmytro Kostiuk <dmytro.kostiuk@mailbox.tu-dresden.de>"
name = "HAZOP2RDF2"
description = "Hazop parser and modeling tool"
version = "1.0.0"
[roots]
hazop_dir = "hazop"
hazop_ext = ".xlsx"
report_dir = "report"
report_ext = ".txt"
graph_dir = "graph"
graph_ext = ".ttl"
base_uri = "https://tu-dresden.de/ing/elektrotechnik/ifa/plt/"
graph_template = "pkg/exporter/graph_template.txt"
report_template_long = "pkg/exporter/report_template_long.txt"
report_template_short = "pkg/exporter/report_template_short.txt"
[hazop]
elements = [
# { id = 0, name = "Label", regex = "^(?i)(name|label|parameter)", data_type = 0, min_len = 1, max_len = 40 },
# { id = 1, name = "Description", regex = "^(?i)(description)", data_type = 0, min_len = 1, max_len = 160 },
{ id = 2, name = "Reference", regex = "^(?i)(ref.?|no.?)", data_type = 1, min_len = 1, max_len = 320 },
{ id = 3, name = "GuideWord", regex = "^(?i)(guide\\s?word)", data_type = 0, min_len = 1, max_len = 40 },
{ id = 4, name = "Parameter", regex = "^(?i)(parameter)", data_type = 0, min_len = 1, max_len = 40 },
{ id = 5, name = "Deviation", regex = "^(?i)(deviation)", data_type = 0, min_len = 1, max_len = 80 },
{ id = 6, name = "Cause", regex = "^(?i)(cause)", data_type = 0, min_len = 1, max_len = 160 },
{ id = 7, name = "Consequence", regex = "^(?i)(consequence|effect)", data_type = 0, min_len = 1, max_len = 160 },
{ id = 8, name = "Safeguard", regex = "^(?i)(safeguard|protect(ion|ive)|systems?)", data_type = 0, min_len = 1, max_len = 160 },
{ id = 9, name = "ActionReference", regex = "^(?i)(action|recommendation)\\s?(ref.?|no.?)$", data_type = 1, min_len = 1, max_len = 1000 },
{ id = 10, name = "Action", regex = "^(?i)(action|recommendation)$", data_type = 0, min_len = 1, max_len = 160 },
{ id = 11, name = "ActionOn", regex = "^(?i)(action|recommendation)\\s?on.?$", data_type = 0, min_len = 1, max_len = 40 },
{ id = 12, name = "Severity", regex = "^(?i)(severity)", data_type = 1, min_len = 1, max_len = 100 },
{ id = 13, name = "Probability", regex = "^(?i)(likehood|probability)", data_type = 2, min_len = 1, max_len = 100 },
{ id = 14, name = "RiskPriority", regex = "^(?i)(risk\\s?priority)", data_type = 0, min_len = 1, max_len = 40 },
]