Skip to content

Commit b6ea7a7

Browse files
committed
Add complex property generator expansion test
This addresses #142, #160.
1 parent b1090c9 commit b6ea7a7

File tree

3 files changed

+662
-0
lines changed

3 files changed

+662
-0
lines changed
Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
{
2+
"@context": {
3+
"vocab": "http://example.com/vocab/",
4+
"sharedTerm": "http://www.example.org/shared/term",
5+
"@language": "de",
6+
"propGenA": {
7+
"@id": [ "vocab:propGenA", "sharedTerm" ]
8+
},
9+
"propGenB": {
10+
"@id": [ "sharedTerm", "vocab:propGenB", "http://example.com/somethingElse" ],
11+
"@type": "http://datatype.example.org/type",
12+
"@container": "@list"
13+
},
14+
"propGenC": {
15+
"@id": [ "sharedTerm", "vocab:propGenB", "http://example.com/somethingElse" ],
16+
"@language": "en"
17+
}
18+
},
19+
"@id": "http://ex.com/root",
20+
"propGenA": [
21+
{
22+
"@id": "http://ex.com/propA.1"
23+
},
24+
{
25+
"vocab:term": "http://ex.com/propA.2"
26+
},
27+
"propA.3",
28+
{
29+
"@id": "http://ex.com/propA.4"
30+
},
31+
{
32+
"vocab:term": "http://ex.com/propA.5",
33+
"vocab:nested": [
34+
{
35+
"vocab:term": "http://ex.com/propA.5.1",
36+
"vocab:nested": [
37+
10510,
38+
"propA.5.1.1",
39+
{
40+
"@id": "http://ex.com/propA.5.1.2"
41+
},
42+
{
43+
"vocab:term": "http://ex.com/propA.5.1.3"
44+
}
45+
]
46+
},
47+
{
48+
"@id": "http://ex.com/propA.5.2",
49+
"vocab:nested": [
50+
"propA.5.2.1",
51+
{
52+
"vocab:term": "http://ex.com/propA.5.2.2"
53+
},
54+
{
55+
"@id": "http://ex.com/propA.5.2.3"
56+
},
57+
10524
58+
]
59+
}
60+
]
61+
},
62+
10600,
63+
{
64+
"vocab:term": "collission"
65+
}
66+
],
67+
"propGenB": [
68+
20000,
69+
"propB.1",
70+
{
71+
"vocab:term": "collission"
72+
},
73+
{
74+
"@id": "http://ex.com/propB.2",
75+
"vocab:nested": [
76+
{
77+
"vocab:term": "http://ex.com/propB.2.1",
78+
"vocab:nested": [
79+
20110,
80+
"propB.2.1.1",
81+
{
82+
"@id": "http://ex.com/propB.2.1.2"
83+
},
84+
{
85+
"vocab:term": "http://ex.com/propB.2.1.3"
86+
}
87+
]
88+
},
89+
{
90+
"@id": "http://ex.com/propB.2.2",
91+
"vocab:nested": [
92+
"propB.2.2.1",
93+
{
94+
"vocab:term": "http://ex.com/propB.2.2.2"
95+
},
96+
{
97+
"@id": "http://ex.com/propB.2.2.3"
98+
},
99+
20224
100+
]
101+
}
102+
]
103+
},
104+
{
105+
"vocab:term": "http://ex.com/propB.3"
106+
}
107+
],
108+
"propGenC": [
109+
{
110+
"vocab:term": "collission"
111+
},
112+
"propC.2",
113+
30300,
114+
{
115+
"@id": "http://ex.com/propC.4"
116+
},
117+
{
118+
"vocab:term": "http://ex.com/propC.5",
119+
"vocab:nested": [
120+
{
121+
"vocab:term": "http://ex.com/propC.5.1",
122+
"vocab:nested": [
123+
10510,
124+
"propC.5.1.1",
125+
{
126+
"@id": "http://ex.com/propC.5.1.2"
127+
},
128+
{
129+
"vocab:term": "http://ex.com/propC.5.1.3"
130+
}
131+
]
132+
},
133+
{
134+
"@id": "http://ex.com/propC.5.2",
135+
"vocab:nested": [
136+
"propC.5.2.1",
137+
{
138+
"vocab:term": "http://ex.com/propC.5.2.2"
139+
},
140+
{
141+
"@id": "http://ex.com/propC.5.2.3"
142+
},
143+
10524
144+
]
145+
}
146+
]
147+
}
148+
],
149+
"http://example.com/vocab/propGenA": [
150+
"propGenA.coll.1",
151+
{
152+
"vocab:term": "collission"
153+
}
154+
],
155+
"http://example.com/vocab/propGenB": [
156+
"propGenB.coll.1",
157+
{
158+
"vocab:term": "collission"
159+
}
160+
]
161+
}

0 commit comments

Comments
 (0)