Skip to content

Commit 537e5c3

Browse files
authored
[back-end] Add test data (#24)
1 parent 3f363c9 commit 537e5c3

File tree

9 files changed

+210
-4
lines changed

9 files changed

+210
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,156 @@
1+
{
2+
"prefixes": {
3+
"https://dev.lod.coop/essglobal/2.1/standard/activities-ica/": "aci",
4+
"https://dev.lod.coop/essglobal/2.1/standard/base-membership-type/": "bmt",
5+
"https://dev.lod.coop/essglobal/2.1/standard/organisational-structure/": "os"
6+
},
7+
"languages": ["en", "fr"],
8+
"fields": {
9+
"uid": "value",
10+
"name": "value",
11+
"description": "value",
12+
"website": {
13+
"type": "multi",
14+
"of": {
15+
"type": "value"
16+
}
17+
},
18+
"dc_domains": {
19+
"type": "multi",
20+
"of": { "type": "value" }
21+
},
22+
"country_id": {
23+
"type": "vocab",
24+
"uri": "coun"
25+
},
26+
"primary_activity": {
27+
"type": "vocab",
28+
"uri": "aci",
29+
"titleUri": "ui:primary_activity"
30+
},
31+
"organisational_structure": {
32+
"type": "vocab",
33+
"uri": "os",
34+
"titleUri": "ui:organisational_structure"
35+
},
36+
"typology": {
37+
"type": "vocab",
38+
"uri": "bmt",
39+
"titleUri": "ui:typology"
40+
},
41+
"latitude": "value",
42+
"longitude": "value",
43+
"geocontainer_lat": "value",
44+
"geocontainer_lon": "value",
45+
"geocoded_addr": "value",
46+
"data_sources": {
47+
"type": "multi",
48+
"of": { "type": "vocab", "uri": "dso" }
49+
}
50+
},
51+
"vocabs": {
52+
"aci": {
53+
"en": {
54+
"title": "Economic Activity",
55+
"terms": {
56+
"ICA210": "Housing",
57+
"ICA220": "Transport",
58+
"ICA230": "Utilities"
59+
}
60+
},
61+
"fr": {
62+
"title": "Secteur économique",
63+
"terms": {
64+
"ICA210": "Logement",
65+
"ICA220": "Transports",
66+
"ICA230": "Services publics"
67+
}
68+
}
69+
},
70+
"bmt": {
71+
"en": {
72+
"title": "Typology",
73+
"terms": {
74+
"BMT10": "Consumer/Users",
75+
"BMT20": "Producers",
76+
"BMT30": "Workers"
77+
}
78+
},
79+
"fr": {
80+
"title": "Typologie",
81+
"terms": {
82+
"BMT10": "Consommateurs/usagers",
83+
"BMT20": "Producteurs",
84+
"BMT30": "Travailleurs"
85+
}
86+
}
87+
},
88+
"os": {
89+
"en": {
90+
"title": "Structure Type",
91+
"terms": {
92+
"OS60": "Workers cooperative",
93+
"OS80": "Consumer/User coops",
94+
"OS90": "Producer cooperative"
95+
}
96+
},
97+
"fr": {
98+
"title": "Type de structure",
99+
"terms": {
100+
"OS50": "Entreprise (autre)",
101+
"OS60": "Coopératives de travail associé",
102+
"OS80": "Coopératives de consommateurs",
103+
"OS90": "Coopératives de producteurs"
104+
}
105+
}
106+
},
107+
"coun": {
108+
"en": {
109+
"title": "Country",
110+
"terms": {
111+
"GB": "United Kingdom",
112+
"FR": "France"
113+
}
114+
},
115+
"fr": {
116+
"title": "Pays",
117+
"terms": {
118+
"GB": "Royaume-Uni",
119+
"FR": "France"
120+
}
121+
}
122+
},
123+
"dso": {
124+
"en": {
125+
"title": "Data Source",
126+
"terms": {
127+
"CUK": "Co-operatives UK",
128+
"DC": "DotCoop",
129+
"ICA": "International Cooperative Alliance",
130+
"NCBA": "National Cooperative Business Association (USA)"
131+
}
132+
},
133+
"fr": {
134+
"title": "Source de données",
135+
"terms": {
136+
"CUK": "Co-operatives UK",
137+
"DC": "DotCoop",
138+
"ICA": "Alliance coopérative internationale",
139+
"NCBA": "National Cooperative Business Association (USA)"
140+
}
141+
}
142+
},
143+
"ui": {
144+
"en": {
145+
"primary_activity": "Primary Activity",
146+
"organisational_structure": "Organisational Structure",
147+
"typology": "Typology"
148+
},
149+
"fr": {
150+
"primary_activity": "Activité principale",
151+
"organisational_structure": "Structure organisationnelle",
152+
"typology": "Typologie"
153+
}
154+
}
155+
}
156+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"uid": "test/cuk/R000001",
3+
"name": "Apples Co-op",
4+
"description": "We sell apples",
5+
"website": "https://apples.coop",
6+
"dc_domains": ["apples.coop", "orchards.coop"],
7+
"country_id": "coun:GB",
8+
"primary_activity": "aci:ICA210",
9+
"organisational_structure": "os:OS60",
10+
"typology": "bmt:BMT20",
11+
"latitude": 51.507476,
12+
"longitude": -0.127825,
13+
"geocontainer_lat": 51.50747643,
14+
"geocontainer_lon": -0.12782464,
15+
"geocoded_addr": "1 West Street, Sheffield, S1 2AB, UK",
16+
"data_sources": ["dso:DC", "dso:CUK"]
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"uid": "test/cuk/R000002",
3+
"name": "Pears United",
4+
"description": "We sell pears",
5+
"website": "https://pears.coop",
6+
"dc_domains": ["pears.coop", "pearsunited.coop"],
7+
"country_id": "coun:FR",
8+
"primary_activity": "aci:ICA230",
9+
"organisational_structure": "os:OS90",
10+
"typology": "bmt:BMT30",
11+
"latitude": 50.850452,
12+
"longitude": 0.924728,
13+
"geocontainer_lat": 50.85045216,
14+
"geocontainer_lon": 0.92472819,
15+
"geocoded_addr": "79 rue de la Mare aux Carats, 34090 Montpellier, France",
16+
"data_sources": ["dso:DC"]
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[
2+
[-0.12783, 51.50748],
3+
[0.92473, 50.85045]
4+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[
2+
{
3+
"country_id": "coun:GB",
4+
"primary_activity": "aci:ICA210",
5+
"organisational_structure": "os:OS60",
6+
"typology": "bmt:BMT20",
7+
"searchString": "test co-op 1 west street sheffield s1 2ab uk test.coop"
8+
},
9+
{
10+
"country_id": "coun:FR",
11+
"primary_activity": "aci:ICA230",
12+
"organisational_structure": "os:OS90",
13+
"typology": "bmt:BMT30",
14+
"searchString": "pears united 79 rue de la mare aux carats 34090 montpellier france pears.coop"
15+
}
16+
]

apps/back-end/test/data/datasets/test-A.json

-1
This file was deleted.

apps/back-end/test/data/datasets/test-A/items/0.json

-1
This file was deleted.

apps/back-end/test/data/datasets/test-A/search/a:foo/b:bar/text.json

-1
This file was deleted.

apps/back-end/test/data/datasets/test-A/search/a:foo/text.json

-1
This file was deleted.

0 commit comments

Comments
 (0)