-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstructure.js
117 lines (101 loc) · 2.58 KB
/
structure.js
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
"use strict";
/**
* structure definition of the SPARQL results for the extraction of individuals
*/
module.exports = {
// Field of application
'appField': {
'appField': REQUIRED,
'label': REQUIRED,
'labelLang':REQUIRED
},
// Relation between Field of application and Kind of quantity
'appFieldQuantKind': {
'appField': REQUIRED,
'quantKind': REQUIRED
},
// Relation between Field of application and Measurement unit
'appFieldUnit': {
'appField': REQUIRED,
'unit': REQUIRED
},
// Conversion
'conversion': {
'unit1': REQUIRED,
'unit2': REQUIRED,
'convFactor': OPTIONAL,
'convOffset': OPTIONAL
},
// Dimension
'dimension': {
'dimension': REQUIRED,
'label': REQUIRED,
'labelLang': REQUIRED,
'dimLength': OPTIONAL,
'dimMass': OPTIONAL,
'dimTime': OPTIONAL,
'dimElec': OPTIONAL,
'dimThermo': OPTIONAL,
'dimAmount': OPTIONAL,
'dimLum': OPTIONAL
},
// Relation between Dimension and Unit of Measurement
'dimensionUnit': {
'dimension': REQUIRED,
'unit': REQUIRED
},
// Prefix
'prefix': {
'prefix': REQUIRED,
'label': REQUIRED,
'labelLang': REQUIRED,
'factor': OPTIONAL
},
// Relation between Prefix and Unit
'prefixUnit': {
'unit': REQUIRED,
'prefix': REQUIRED,
'baseUnit': OPTIONAL
},
// Kind of quantity
'quantKind': {
'quantKind': REQUIRED,
'label': REQUIRED,
'labelLang': REQUIRED,
'parent': OPTIONAL
},
// Relation between Kind of quantity and Measurement unit
'quantKindUnit': {
'quantKind': REQUIRED,
'unit': REQUIRED
},
// sameAs relations
'sameAs': {
'object': REQUIRED,
'sameAs': REQUIRED
},
// System of units
'system': {
'system': REQUIRED,
'label': REQUIRED,
'labelLang': REQUIRED,
},
// Relation between System of units and Measurement unit
'systemUnit': {
'system': REQUIRED,
'unit': REQUIRED
},
// Measurement unit
'unit': {
'unit': REQUIRED,
'label': REQUIRED,
'labelLang': REQUIRED,
'symbol': OPTIONAL,
'definition': OPTIONAL
},
// used for classification
'OPTIONAL': OPTIONAL,
'REQUIRED': REQUIRED
};
function OPTIONAL(){}
function REQUIRED(){}