version 1.7

Changes log from version 1.6.2

  • replace raw context by inline (optional)
  • add and replace properties of ontology V?
    • facet refactor
    • characteristic refactor
  • focus to supplied product instead catalogItem (same ontology, just an other perspective)
  • hasType in usinees ontology and not product ontology
  • hasUnit in usinees ontology and not product ontology

GET User Data

1
{
2
"@context": [
3
"http://static.datafoodconsortium.org/ontologies/context.json",
4
{
5
"@base": "http://maPlateformeNationale/"
6
},
7
"@graph" : [
8
{
9
"@id": "person/personId",
10
"@type": "dfc-b:Person",
11
"dfc-b:familyName": "Doe",
12
"dfc-b:firtsName": "Jhon",
13
"dfc-b:hasAdress": {
14
"@type": "dfc-b:Address",
15
"dfc-b:city": "",
16
"dfc-b:country": "",
17
"dfc-b:postcode": "",
18
"dfc-b:street": ""
19
},
20
"dfc-b:affiliates": [
21
"entreprise/entrepriseId"
22
]
23
},
24
{
25
"@id": "entreprise/entrepriseId",
26
"@type": "dfc-b:Entreprise",
27
"dfc-b:description": "La ferme beausoleil",
28
"dfc-b:VATnumber": "",
29
"dfc-b:defines": [
30
"customerCategory/customerCategoryId1",
31
"customerCategory/customerCategoryId2"
32
],
33
"dfc-b:supplies": [
34
"suppliedProduct/item3",
35
"suppliedProduct/item4"
36
],
37
"dfc-b:manages": [
38
"catalogItem/catalogItemId1",
39
"catalogItem/catalogItemId2"
40
],
41
"dfc-b:owns": [
42
"brand/brand1",
43
]
44
},
45
{
46
"@id": "customerCategory/customerCategoryId1",
47
"@type": "dfc-b:CustomerCategory",
48
"dfc-b:description": "particulier"
49
},
50
{
51
"@id": "customerCategory/customerCategoryId1",
52
"@type": "dfc-b:CustomerCategory",
53
"dfc-b:description": "particulier"
54
},
55
{
56
"@id": "brand/brand1",
57
"@type": "dfc-b:Brand",
58
"dfc-b:description": "les Biau-Yaourts"
59
},
60
{
61
"@id": "suppliedProduct/item3",
62
"@type": "dfc-b:SuppliedProduct",
63
"dfc-b:description": "Magnifique lot de 6 yaourts",
64
"dfc-b:hasType": "dfc-pt:cow-dairy-product",
65
"dfc-b:referencedBy":[
66
"/catalogItem/catalogItemId1"
67
],
68
"dfc-b:hasQuantity":{
69
"@type":"dfc-b:QuantitativeValue",
70
"dfc-b:hasUnit": "dfc-u:u",
71
"dfc-b:value": "1",
72
},
73
"dfc-b:specificCondition": "Conserver au frais",
74
"dfc-b:totalTheoriticalStock": "999",
75
"dfc-b:hasBrand":"brand/brand1",
76
"dfc-b:hasCertification":[
77
"dfc-c:OrganicLabel"
78
],
79
"dfc-b:hasClaim":[
80
"dfc-a:nutriScore"
81
],
82
"dfc-b:image": "https://cdn.pixabay.com/photo/2013/07/13/09/50/yoghurt-156133_960_720.png",
83
"dfc-b:lifeTime": "supply lifeTime",
84
"dfc-b:hasAllergenCharacteristic":[
85
{
86
"@type":"dfc-b:AllergenCharacteristic",
87
"dfc-b:hasUnit": "dfc-u:Percent",
88
"dfc-b:hasAllergenDimension": "dfc-d:LactoseMilks",
89
"dfc-b:value": "90"
90
}
91
],
92
"dfc-b:hasNutrimentCharacteristic":[
93
{
94
"@type":"dfc-b:NutrimentCharacteristic",
95
"dfc-b:hasUnit": "dfc-u:Percent",
96
"dfc-b:hasNutrimentDimension": "dfc-d:Fat",
97
"dfc-b:value": "6,2"
98
}
99
],
100
"dfc-b:hasPhysicalCharacteristic":[
101
{
102
"@type":"dfc-b:PhysicalCharacteristic",
103
"dfc-b:hasUnit": "dfc-u:Gram",
104
"dfc-b:hasPhysicalDimension": "dfc-d:Weight",
105
"dfc-b:value": "300"
106
},
107
{
108
"@type":"dfc-b:PhysicalCharacteristic",
109
"dfc-b:hasUnit": "dfc-u:Centimetre",
110
"dfc-b:hasPhysicalDimension": "dfc-d:Height",
111
"dfc-b:value": "10"
112
},
113
{
114
"@type":"dfc-b:PhysicalCharacteristic",
115
"dfc-b:hasUnit": "dfc-u:Centimetre",
116
"dfc-b:hasPhysicalDimension": "dfc-d:Width",
117
"dfc-b:value": "30"
118
},
119
{
120
"@type":"dfc-b:PhysicalCharacteristic",
121
"dfc-b:hasUnit": "dfc-u:Centimetre",
122
"dfc-b:hasPhysicalDimension": "dfc-d:Depth",
123
"dfc-b:value": "20"
124
}
125
],
126
"dfc-b:hasGeographicalOrigin":"dfc-g:france"
127
},
128
{
129
"@id": "suppliedProduct/item4",
130
"@type": "dfc-b:SuppliedProduct",
131
"dfc-b:referencedBy":[
132
"/catalogItem/catalogItemId2"
133
],
134
"dfc-p:hasUnit": "dfc-u:u",
135
"dfc-b:quantity": "1",
136
"dfc-p:hasType": "dfc-pt:strawberry",
137
"dfc-b:description": "supply description 2",
138
"dfc-b:totalTheoriticalStock": "999",
139
"dfc-b:brand": "supply brand",
140
"dfc-b:claim": "supply claim",
141
"dfc-b:image": "supply image url",
142
"dfc-b:lifeTime": "supply lifeTime",
143
"dfc-b:physicalCharacterisctics": "supply physical characterisctics"
144
},
145
{
146
"@id": "catalogItem/catalogItemId1",
147
"@type": "dfc-b:CatalogItem",
148
"dfc-b:sku": "123456789",
149
"dfc-b:stockLimitation": "999",
150
"dfc-b:offeredThrough": [
151
"offer/offerId1"
152
]
153
},
154
{
155
"@id": "catalogItem/catalogItemId2",
156
"@type": "dfc-b:CatalogItem",
157
"dfc-b:sku": "catalog item gtin or sku",
158
"dfc-b:stockLimitation": "999",
159
"dfc-b:offeredThrough": [
160
"offer/offerId3",
161
"offer/offerId4"
162
]
163
},
164
{
165
"@id": "offer/offerId1",
166
"@type": "dfc-b:Offer",
167
"dfc-b:offeres": "/customerCategory/customerCategoryId1",
168
"dfc-b:price": "2",
169
"dfc-b:stockLimitation": "999"
170
},
171
{
172
"@id": "offer/offerId3",
173
"@type": "dfc-b:Offer",
174
"dfc-b:offeres": "/customerCategory/customerCategoryId1",
175
"dfc-b:price": "000",
176
"dfc-b:stockLimitation": "999"
177
},
178
{
179
"@id": "offer/offerId4",
180
"@type": "dfc-b:Offer",
181
"dfc-b:offeres": "/customerCategory/customerCategoryId2",
182
"dfc-b:price": "999",
183
"dfc-b:stockLimitation": "999"
184
}
185
]
186
}
Copied!