Skip to content

Commit 6deafe7

Browse files
Merge pull request #34 from OwnYourData/create-object-generalization-example
Example for object genealization for flat json and json-ld created
2 parents 9344955 + 992fec6 commit 6deafe7

2 files changed

Lines changed: 190 additions & 18 deletions

File tree

src/main/resources/static/examples/anonymization-request-flat-object.json

Lines changed: 67 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,79 @@
2222
},
2323
"type": "AnonymisationDemo"
2424
},
25+
{
26+
"adresse": {
27+
"detail": "Hauptplatz 1",
28+
"city": "Vienna",
29+
"zip": "1050",
30+
"state": "Vienna",
31+
"country": "Austria"
32+
},
33+
"type": "AnonymisationDemo"
34+
},
35+
{
36+
"adresse": {
37+
"detail": "Meidlingergasse 7",
38+
"city": "Vienna",
39+
"zip": "1140",
40+
"state": "Vienna",
41+
"country": "Austria"
42+
},
43+
"type": "AnonymisationDemo"
44+
},
45+
{
46+
"adresse": {
47+
"detail": "Musterstrasse 6",
48+
"city": "Vienna",
49+
"zip": "1110",
50+
"state": "Vienna",
51+
"country": "Austria"
52+
},
53+
"type": "AnonymisationDemo"
54+
},
55+
{
56+
"adresse": {
57+
"detail": "Willhelmweg 1",
58+
"city": "Vienna",
59+
"zip": "1220",
60+
"state": "Vienna",
61+
"country": "Austria"
62+
},
63+
"type": "AnonymisationDemo"
64+
},
65+
{
66+
"adresse": {
67+
"detail": "Hauptplatz 11",
68+
"city": "Vienna",
69+
"zip": "1050",
70+
"state": "Vienna",
71+
"country": "Austria"
72+
},
73+
"type": "AnonymisationDemo"
74+
},
75+
{
76+
"adresse": {
77+
"detail": "Bahnhofstrasse 3",
78+
"city": "Saalfelden",
79+
"zip": "5050",
80+
"state": "Salzburg",
81+
"country": "Austria"
82+
},
83+
"type": "AnonymisationDemo"
84+
},
2585
{
2686
"adresse": {
2787
"detail": "Vogerlweg 5",
28-
"city": "Krems",
29-
"zip": "2020",
30-
"state": "Lower Austria",
88+
"city": "St Johann im Pongau",
89+
"zip": "5031",
90+
"state": "Salzburg",
3191
"country": "Austria"
3292
},
3393
"type": "AnonymisationDemo"
3494
},
3595
{
3696
"adresse": {
37-
"detail": "Hauptstrasse 1",
97+
"detail": "Hauptstrasse 10",
3898
"city": "Salzburg",
3999
"zip": "5020",
40100
"state": "Salzburg",
@@ -44,10 +104,10 @@
44104
},
45105
{
46106
"adresse": {
47-
"detail": "Bahnhofstrasse 3",
48-
"city": "Innsbruck",
107+
"detail": "Hauptstrasse 9",
108+
"city": "Salzburg",
49109
"zip": "5020",
50-
"state": "Tyrol",
110+
"state": "Salzburg",
51111
"country": "Austria"
52112
},
53113
"type": "AnonymisationDemo"

src/main/resources/static/examples/anonymization-request-object.json

Lines changed: 123 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@
4747
{
4848
"@id": "oyd:address3",
4949
"@type": "oyd:Address",
50-
"oyd:detail": "Vogerlweg 5",
51-
"oyd:city": "Krems",
52-
"oyd:zip": "2020",
53-
"oyd:state": "Krems",
50+
"oyd:detail": "Hauptplatz 1",
51+
"oyd:city": "Vienna",
52+
"oyd:zip": "1050",
53+
"oyd:state": "Vienna",
5454
"oyd:country": "Austria"
5555
},
5656
{
@@ -63,10 +63,10 @@
6363
{
6464
"@id": "oyd:address4",
6565
"@type": "oyd:Address",
66-
"oyd:detail": "Hauptstrasse 10",
67-
"oyd:city": "Salzburg",
68-
"oyd:zip": "5020",
69-
"oyd:state": "Salzburg",
66+
"oyd:detail": "Meidlingergasse 7",
67+
"oyd:city": "Vienna",
68+
"oyd:zip": "1140",
69+
"oyd:state": "Vienna",
7070
"oyd:country": "Austria"
7171
},
7272
{
@@ -79,10 +79,122 @@
7979
{
8080
"@id": "oyd:address5",
8181
"@type": "oyd:Address",
82+
"oyd:detail": "Musterstrasse 6",
83+
"oyd:city": "Vienna",
84+
"oyd:zip": "1110",
85+
"oyd:state": "Vienna",
86+
"oyd:country": "Austria"
87+
},
88+
{
89+
"@id": "oyd:test6",
90+
"@type": "oyd:AnonymisationDemo",
91+
"oyd:adresse": {
92+
"@id": "oyd:address6"
93+
}
94+
},
95+
{
96+
"@id": "oyd:address6",
97+
"@type": "oyd:Address",
98+
"oyd:detail": "Willhelmweg 1",
99+
"oyd:city": "Vienna",
100+
"oyd:zip": "1220",
101+
"oyd:state": "Vienna",
102+
"oyd:country": "Austria"
103+
},
104+
{
105+
"@id": "oyd:test7",
106+
"@type": "oyd:AnonymisationDemo",
107+
"oyd:adresse": {
108+
"@id": "oyd:address7"
109+
}
110+
},
111+
{
112+
"@id": "oyd:address7",
113+
"@type": "oyd:Address",
114+
"oyd:detail": "Hauptplatz 11",
115+
"oyd:city": "Vienna",
116+
"oyd:zip": "1050",
117+
"oyd:state": "Vienna",
118+
"oyd:country": "Austria"
119+
},
120+
{
121+
"@id": "oyd:test8",
122+
"@type": "oyd:AnonymisationDemo",
123+
"oyd:adresse": {
124+
"@id": "oyd:address8"
125+
}
126+
},
127+
{
128+
"@id": "oyd:address8",
129+
"@type": "oyd:Address",
82130
"oyd:detail": "Bahnhofstrasse 3",
83-
"oyd:city": "Innsbruck",
84-
"oyd:zip": "6020",
85-
"oyd:state": "Innsbruck",
131+
"oyd:city": "Saalfelden",
132+
"oyd:zip": "5050",
133+
"oyd:state": "Salzburg",
134+
"oyd:country": "Austria"
135+
},
136+
{
137+
"@id": "oyd:test9",
138+
"@type": "oyd:AnonymisationDemo",
139+
"oyd:adresse": {
140+
"@id": "oyd:address9"
141+
}
142+
},
143+
{
144+
"@id": "oyd:address9",
145+
"@type": "oyd:Address",
146+
"oyd:detail": "Vogerlweg 5",
147+
"oyd:city": "St Johann im Pongau",
148+
"oyd:zip": "5031",
149+
"oyd:state": "Salzburg",
150+
"oyd:country": "Austria"
151+
},
152+
{
153+
"@id": "oyd:test10",
154+
"@type": "oyd:AnonymisationDemo",
155+
"oyd:adresse": {
156+
"@id": "oyd:address10"
157+
}
158+
},
159+
{
160+
"@id": "oyd:address10",
161+
"@type": "oyd:Address",
162+
"oyd:detail": "Hauptstrasse 10",
163+
"oyd:city": "Salzburg",
164+
"oyd:zip": "5020",
165+
"oyd:state": "Salzburg",
166+
"oyd:country": "Austria"
167+
},
168+
{
169+
"@id": "oyd:test11",
170+
"@type": "oyd:AnonymisationDemo",
171+
"oyd:adresse": {
172+
"@id": "oyd:address11"
173+
}
174+
},
175+
{
176+
"@id": "oyd:address11",
177+
"@type": "oyd:Address",
178+
"oyd:detail": "Hauptstrasse 9",
179+
"oyd:city": "Salzburg",
180+
"oyd:zip": "5020",
181+
"oyd:state": "Salzburg",
182+
"oyd:country": "Austria"
183+
},
184+
{
185+
"@id": "oyd:test12",
186+
"@type": "oyd:AnonymisationDemo",
187+
"oyd:adresse": {
188+
"@id": "oyd:address12"
189+
}
190+
},
191+
{
192+
"@id": "oyd:address12",
193+
"@type": "oyd:Address",
194+
"oyd:detail": "Schlossallee 14",
195+
"oyd:city": "Salzburg",
196+
"oyd:zip": "5020",
197+
"oyd:state": "Salzburg",
86198
"oyd:country": "Austria"
87199
}
88200
]

0 commit comments

Comments
 (0)