You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like your help in translating rules from a JSON format to a SHACL format. I have done this transformation once manually and would like you to apply the same pattern to more JSON rules. However, to interpret this correctly, I need to supply you with a definition file of the data fields in use. I uploaded it together with this message.
100
+
101
+
This is the example transformation:
102
+
103
+
JSON:
104
+
105
+
[
106
+
{
107
+
"questionKey": "Aufenthaltsort",
108
+
"type": "singleSelect",
109
+
"operator": "equals",
110
+
"expectedValue": "innerhalb",
111
+
"rules": []
112
+
},
113
+
{
114
+
"questionKey": "Aufenthaltsort",
115
+
"type": "singleSelect",
116
+
"operator": "equalsNot",
117
+
"expectedValue": "außerhalb",
118
+
"rules": []
119
+
},
120
+
{
121
+
"questionKey": "Geburtsdatum",
122
+
"type": "date",
123
+
"modifier": "Pensionable",
124
+
"operator": "equals",
125
+
"expectedValue": "false",
126
+
"rules": []
127
+
},
128
+
{
129
+
"questionKey": "Erwerbsfähig_neu",
130
+
"type": "singleOption",
131
+
"operator": "equalsNot",
132
+
"expectedValue": "nein >6 Monate",
133
+
"rules": []
134
+
},
135
+
{
136
+
"questionKey": "Erwerbsfähig_neu",
137
+
"type": "singleOption",
138
+
"operator": "equals",
139
+
"expectedValue": "nein <6 Monate",
140
+
"rules": []
141
+
},
142
+
{
143
+
"questionKey": "Beruf_neu",
144
+
"type": "singleOption",
145
+
"operator": "equalsNot",
146
+
"expectedValue": "ALG",
147
+
"rules": []
148
+
},
149
+
{
150
+
"questionKey": "Einkommen_neu",
151
+
"type": "multiOption",
152
+
"operator": "containsNot",
153
+
"expectedValue": "ALG",
154
+
"rules": []
155
+
},
156
+
{
157
+
"questionKey": "Einkommen_neu",
158
+
"type": "multiOption",
159
+
"operator": "containsNot",
160
+
"expectedValue": "ALG II",
161
+
"rules": []
162
+
}
163
+
]
164
+
165
+
---
166
+
167
+
SHACL:
168
+
169
+
ff:MainPersonShape a sh:NodeShape, ff:EligibilityConstraint ;
0 commit comments