datafoodconsortium-connector-v1 1.4.0.pre.beta5 → 1.4.0.pre.beta6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/datafoodconsortium/connector_v1/address.rb +2 -2
- data/lib/datafoodconsortium/connector_v1/customer_category.rb +7 -1
- data/lib/datafoodconsortium/connector_v1/{quantity.rb → opening_hours_specification.rb} +25 -19
- data/lib/datafoodconsortium/connector_v1/order.rb +8 -1
- data/lib/datafoodconsortium/connector_v1/physical_place.rb +9 -9
- data/lib/datafoodconsortium/connector_v1/planned_consumption_flow.rb +1 -1
- data/lib/datafoodconsortium/connector_v1/planned_local_consumption_flow.rb +1 -1
- data/lib/datafoodconsortium/connector_v1/planned_local_production_flow.rb +1 -1
- data/lib/datafoodconsortium/connector_v1/planned_local_transformation.rb +2 -2
- data/lib/datafoodconsortium/connector_v1/planned_production_flow.rb +1 -1
- data/lib/datafoodconsortium/connector_v1/planned_transformation.rb +2 -2
- data/lib/datafoodconsortium/connector_v1/realized_consumption_flow.rb +1 -1
- data/lib/datafoodconsortium/connector_v1/realized_production_flow.rb +1 -1
- data/lib/datafoodconsortium/connector_v1/realized_transformation.rb +2 -2
- data/lib/datafoodconsortium/connector_v1/supplied_product.rb +8 -1
- data/lib/datafoodconsortium/connector_v1.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8dbb736da92bf2f5df51d9052b426ec6ca17ed972dc08aead5be138319fe33bb
|
|
4
|
+
data.tar.gz: edb49f84b8d22c32803235db0d37b365974d7e0cc2cb4f0e811478a4ae359a09
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2531bc7d5f6dd36cb52f033552ed37f13c1b4b909680d22217f1e2e71a1f22d317c15dd7539493ba3dae7c2101f6c836b233b0edfc7c94165444a39c0451d9b4
|
|
7
|
+
data.tar.gz: acbaa96688dd80a166ae3797e8fe8a63937648e446aabec7c3b6ed57839fc67d91f61883de0dc160247604310ed3b5e0e67c42a8c290cb41ec6f0b26f329c564
|
|
@@ -37,7 +37,7 @@ class DataFoodConsortium::ConnectorV1::Address
|
|
|
37
37
|
# @return [String]
|
|
38
38
|
attr_accessor :city
|
|
39
39
|
|
|
40
|
-
# @return [
|
|
40
|
+
# @return [ISKOSConcept]
|
|
41
41
|
attr_accessor :country
|
|
42
42
|
|
|
43
43
|
# @return [Real]
|
|
@@ -53,7 +53,7 @@ class DataFoodConsortium::ConnectorV1::Address
|
|
|
53
53
|
# @param street [String]
|
|
54
54
|
# @param postalCode [String]
|
|
55
55
|
# @param city [String]
|
|
56
|
-
# @param country [
|
|
56
|
+
# @param country [ISKOSConcept]
|
|
57
57
|
# @param latitude [Real]
|
|
58
58
|
# @param longitude [Real]
|
|
59
59
|
# @param region [String]
|
|
@@ -28,15 +28,21 @@ class DataFoodConsortium::ConnectorV1::CustomerCategory
|
|
|
28
28
|
|
|
29
29
|
SEMANTIC_TYPE = "dfc-b:CustomerCategory".freeze
|
|
30
30
|
|
|
31
|
+
# @return [String]
|
|
32
|
+
attr_accessor :name
|
|
33
|
+
|
|
31
34
|
# @return [String]
|
|
32
35
|
attr_accessor :description
|
|
33
36
|
|
|
34
37
|
# @param semanticId [String]
|
|
38
|
+
# @param name [String]
|
|
35
39
|
# @param description [String]
|
|
36
|
-
def initialize(semanticId, description: nil)
|
|
40
|
+
def initialize(semanticId, name: nil, description: nil)
|
|
37
41
|
super(semanticId)
|
|
42
|
+
@name = name
|
|
38
43
|
@description = description
|
|
39
44
|
self.semanticType = "dfc-b:CustomerCategory"
|
|
45
|
+
registerSemanticProperty("dfc-b:name", &method("name")).valueSetter = method("name=")
|
|
40
46
|
registerSemanticProperty("dfc-b:description", &method("description")).valueSetter = method("description=")
|
|
41
47
|
end
|
|
42
48
|
|
|
@@ -21,29 +21,35 @@
|
|
|
21
21
|
# SOFTWARE.
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
|
|
25
24
|
require "virtual_assembly/semantizer"
|
|
26
25
|
|
|
27
|
-
class DataFoodConsortium::ConnectorV1::
|
|
26
|
+
class DataFoodConsortium::ConnectorV1::OpeningHoursSpecification
|
|
28
27
|
include VirtualAssembly::Semantizer::SemanticObject
|
|
29
28
|
|
|
30
|
-
SEMANTIC_TYPE = "
|
|
31
|
-
|
|
32
|
-
# @return [
|
|
33
|
-
attr_accessor :
|
|
34
|
-
|
|
35
|
-
# @return [
|
|
36
|
-
attr_accessor :
|
|
37
|
-
|
|
38
|
-
# @
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
29
|
+
SEMANTIC_TYPE = "https://schema.org/OpeningHoursSpecification".freeze
|
|
30
|
+
|
|
31
|
+
# @return [String]
|
|
32
|
+
attr_accessor :dayOfWeek
|
|
33
|
+
|
|
34
|
+
# @return [Time]
|
|
35
|
+
attr_accessor :opens
|
|
36
|
+
|
|
37
|
+
# @return [Time]
|
|
38
|
+
attr_accessor :closes
|
|
39
|
+
|
|
40
|
+
# @param semanticId [String]
|
|
41
|
+
# @param dayOfWeek [String]
|
|
42
|
+
# @param opens [Time]
|
|
43
|
+
# @param closes [Time]
|
|
44
|
+
def initialize(semanticId, dayOfWeek: nil, opens: nil, closes: nil)
|
|
45
|
+
super(semanticId)
|
|
46
|
+
@dayOfWeek = dayOfWeek
|
|
47
|
+
@opens = opens
|
|
48
|
+
@closes = closes
|
|
49
|
+
self.semanticType = "https://schema.org/OpeningHoursSpecification"
|
|
50
|
+
registerSemanticProperty("https://schema.org/dayOfWeek", &method("dayOfWeek")).valueSetter = method("dayOfWeek=")
|
|
51
|
+
registerSemanticProperty("https://schema.org/opens", &method("opens")).valueSetter = method("opens=")
|
|
52
|
+
registerSemanticProperty("https://schema.org/closes", &method("closes")).valueSetter = method("closes=")
|
|
47
53
|
end
|
|
48
54
|
|
|
49
55
|
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
+
|
|
27
28
|
require "virtual_assembly/semantizer"
|
|
28
29
|
|
|
29
30
|
class DataFoodConsortium::ConnectorV1::Order
|
|
@@ -58,6 +59,9 @@ class DataFoodConsortium::ConnectorV1::Order
|
|
|
58
59
|
# @return [ISKOSConcept]
|
|
59
60
|
attr_accessor :paymentStatus
|
|
60
61
|
|
|
62
|
+
# @return [IPaymentMethod]
|
|
63
|
+
attr_accessor :paymentMethod
|
|
64
|
+
|
|
61
65
|
# @param semanticId [String]
|
|
62
66
|
# @param number [String]
|
|
63
67
|
# @param date [String]
|
|
@@ -68,7 +72,8 @@ class DataFoodConsortium::ConnectorV1::Order
|
|
|
68
72
|
# @param fulfilmentStatus [ISKOSConcept]
|
|
69
73
|
# @param orderStatus [ISKOSConcept]
|
|
70
74
|
# @param paymentStatus [ISKOSConcept]
|
|
71
|
-
|
|
75
|
+
# @param paymentMethod [IPaymentMethod]
|
|
76
|
+
def initialize(semanticId, number: nil, date: nil, saleSession: nil, lines: [], client: nil, soldBy: nil, fulfilmentStatus: nil, orderStatus: nil, paymentStatus: nil, paymentMethod: nil)
|
|
72
77
|
super(semanticId)
|
|
73
78
|
@number = number
|
|
74
79
|
@date = date
|
|
@@ -79,6 +84,7 @@ class DataFoodConsortium::ConnectorV1::Order
|
|
|
79
84
|
@fulfilmentStatus = fulfilmentStatus
|
|
80
85
|
@orderStatus = orderStatus
|
|
81
86
|
@paymentStatus = paymentStatus
|
|
87
|
+
@paymentMethod = paymentMethod
|
|
82
88
|
self.semanticType = "dfc-b:Order"
|
|
83
89
|
registerSemanticProperty("dfc-b:orderNumber", &method("number")).valueSetter = method("number=")
|
|
84
90
|
registerSemanticProperty("dfc-b:date", &method("date")).valueSetter = method("date=")
|
|
@@ -89,6 +95,7 @@ class DataFoodConsortium::ConnectorV1::Order
|
|
|
89
95
|
registerSemanticProperty("dfc-b:hasFulfilmentStatus", &method("fulfilmentStatus")).valueSetter = method("fulfilmentStatus=")
|
|
90
96
|
registerSemanticProperty("dfc-b:hasOrderStatus", &method("orderStatus")).valueSetter = method("orderStatus=")
|
|
91
97
|
registerSemanticProperty("dfc-b:hasPaymentStatus", &method("paymentStatus")).valueSetter = method("paymentStatus=")
|
|
98
|
+
registerSemanticProperty("dfc-b:hasPaymentMethod", &method("paymentMethod")).valueSetter = method("paymentMethod=")
|
|
92
99
|
end
|
|
93
100
|
|
|
94
101
|
|
|
@@ -45,10 +45,10 @@ class DataFoodConsortium::ConnectorV1::PhysicalPlace
|
|
|
45
45
|
attr_accessor :openingHours
|
|
46
46
|
|
|
47
47
|
# @return [IAddress]
|
|
48
|
-
attr_accessor :
|
|
48
|
+
attr_accessor :address
|
|
49
49
|
|
|
50
50
|
# @return [IPerson]
|
|
51
|
-
attr_accessor :
|
|
51
|
+
attr_accessor :mainContacts
|
|
52
52
|
|
|
53
53
|
# @return [ITheoreticalStock]
|
|
54
54
|
attr_accessor :theoreticalStocks
|
|
@@ -62,19 +62,19 @@ class DataFoodConsortium::ConnectorV1::PhysicalPlace
|
|
|
62
62
|
# @param hostedSaleSessions [ISaleSession]
|
|
63
63
|
# @param phoneNumbers [IPhoneNumber]
|
|
64
64
|
# @param openingHours [IOpeningHoursSpecification]
|
|
65
|
-
# @param
|
|
66
|
-
# @param
|
|
65
|
+
# @param address [IAddress]
|
|
66
|
+
# @param mainContacts [IPerson]
|
|
67
67
|
# @param theoreticalStocks [ITheoreticalStock]
|
|
68
68
|
# @param realStocks [IRealStock]
|
|
69
|
-
def initialize(semanticId, name: nil, description: nil, hostedSaleSessions: [], phoneNumbers: [], openingHours: [],
|
|
69
|
+
def initialize(semanticId, name: nil, description: nil, hostedSaleSessions: [], phoneNumbers: [], openingHours: [], address: nil, mainContacts: [], theoreticalStocks: [], realStocks: [])
|
|
70
70
|
super(semanticId)
|
|
71
71
|
@name = name
|
|
72
72
|
@description = description
|
|
73
73
|
@hostedSaleSessions = hostedSaleSessions
|
|
74
74
|
@phoneNumbers = phoneNumbers
|
|
75
75
|
@openingHours = openingHours
|
|
76
|
-
@
|
|
77
|
-
@
|
|
76
|
+
@address = address
|
|
77
|
+
@mainContacts = mainContacts
|
|
78
78
|
@theoreticalStocks = theoreticalStocks
|
|
79
79
|
@realStocks = realStocks
|
|
80
80
|
self.semanticType = "dfc-b:PhysicalPlace"
|
|
@@ -83,8 +83,8 @@ class DataFoodConsortium::ConnectorV1::PhysicalPlace
|
|
|
83
83
|
registerSemanticProperty("dfc-b:hosts", &method("hostedSaleSessions")).valueSetter = method("hostedSaleSessions=")
|
|
84
84
|
registerSemanticProperty("dfc-b:hasPhoneNumber", &method("phoneNumbers")).valueSetter = method("phoneNumbers=")
|
|
85
85
|
registerSemanticProperty("dfc-b:hasOpeningHours", &method("openingHours")).valueSetter = method("openingHours=")
|
|
86
|
-
registerSemanticProperty("dfc-b:hasAddress", &method("
|
|
87
|
-
registerSemanticProperty("dfc-b:hasMainContact", &method("
|
|
86
|
+
registerSemanticProperty("dfc-b:hasAddress", &method("address")).valueSetter = method("address=")
|
|
87
|
+
registerSemanticProperty("dfc-b:hasMainContact", &method("mainContacts")).valueSetter = method("mainContacts=")
|
|
88
88
|
registerSemanticProperty("dfc-b:localizes", &method("theoreticalStocks")).valueSetter = method("theoreticalStocks=")
|
|
89
89
|
registerSemanticProperty("dfc-b:stores", &method("realStocks")).valueSetter = method("realStocks=")
|
|
90
90
|
end
|
|
@@ -47,7 +47,7 @@ class DataFoodConsortium::ConnectorV1::PlannedConsumptionFlow < DataFoodConsorti
|
|
|
47
47
|
@transformation = transformation
|
|
48
48
|
@product = product
|
|
49
49
|
self.semanticType = "dfc-b:AsPlannedConsumptionFlow"
|
|
50
|
-
registerSemanticProperty("dfc-b:
|
|
50
|
+
registerSemanticProperty("dfc-b:inputOf", &method("transformation")).valueSetter = method("transformation=")
|
|
51
51
|
registerSemanticProperty("dfc-b:consumes", &method("product")).valueSetter = method("product=")
|
|
52
52
|
end
|
|
53
53
|
|
|
@@ -47,7 +47,7 @@ class DataFoodConsortium::ConnectorV1::PlannedLocalConsumptionFlow < DataFoodCon
|
|
|
47
47
|
@transformation = transformation
|
|
48
48
|
@product = product
|
|
49
49
|
self.semanticType = "dfc-b:AsPlannedLocalConsumptionFlow"
|
|
50
|
-
registerSemanticProperty("dfc-b:
|
|
50
|
+
registerSemanticProperty("dfc-b:inputOf", &method("transformation")).valueSetter = method("transformation=")
|
|
51
51
|
registerSemanticProperty("dfc-b:consumes", &method("product")).valueSetter = method("product=")
|
|
52
52
|
end
|
|
53
53
|
|
|
@@ -47,7 +47,7 @@ class DataFoodConsortium::ConnectorV1::PlannedLocalProductionFlow < DataFoodCons
|
|
|
47
47
|
@transformation = transformation
|
|
48
48
|
@product = product
|
|
49
49
|
self.semanticType = "dfc-b:AsPlannedLocalProductionFlow"
|
|
50
|
-
registerSemanticProperty("dfc-b:
|
|
50
|
+
registerSemanticProperty("dfc-b:outputOf", &method("transformation")).valueSetter = method("transformation=")
|
|
51
51
|
registerSemanticProperty("dfc-b:produces", &method("product")).valueSetter = method("product=")
|
|
52
52
|
end
|
|
53
53
|
|
|
@@ -70,8 +70,8 @@ class DataFoodConsortium::ConnectorV1::PlannedLocalTransformation
|
|
|
70
70
|
registerSemanticProperty("dfc-b:cost", &method("cost")).valueSetter = method("cost=")
|
|
71
71
|
registerSemanticProperty("dfc-b:startDate", &method("startDate")).valueSetter = method("startDate=")
|
|
72
72
|
registerSemanticProperty("dfc-b:endDate", &method("endDate")).valueSetter = method("endDate=")
|
|
73
|
-
registerSemanticProperty("dfc-b:
|
|
74
|
-
registerSemanticProperty("dfc-b:
|
|
73
|
+
registerSemanticProperty("dfc-b:hasInput", &method("consumptionFlow")).valueSetter = method("consumptionFlow=")
|
|
74
|
+
registerSemanticProperty("dfc-b:hasOutput", &method("productionFlow")).valueSetter = method("productionFlow=")
|
|
75
75
|
end
|
|
76
76
|
|
|
77
77
|
|
|
@@ -47,7 +47,7 @@ class DataFoodConsortium::ConnectorV1::PlannedProductionFlow < DataFoodConsortiu
|
|
|
47
47
|
@transformation = transformation
|
|
48
48
|
@product = product
|
|
49
49
|
self.semanticType = "dfc-b:AsPlannedProductionFlow"
|
|
50
|
-
registerSemanticProperty("dfc-b:
|
|
50
|
+
registerSemanticProperty("dfc-b:outputOf", &method("transformation")).valueSetter = method("transformation=")
|
|
51
51
|
registerSemanticProperty("dfc-b:produces", &method("product")).valueSetter = method("product=")
|
|
52
52
|
end
|
|
53
53
|
|
|
@@ -51,8 +51,8 @@ class DataFoodConsortium::ConnectorV1::PlannedTransformation
|
|
|
51
51
|
@productionFlow = productionFlow
|
|
52
52
|
self.semanticType = "dfc-b:AsPlannedTransformation"
|
|
53
53
|
registerSemanticProperty("dfc-b:hasTransformationType", &method("transformationType")).valueSetter = method("transformationType=")
|
|
54
|
-
registerSemanticProperty("dfc-b:
|
|
55
|
-
registerSemanticProperty("dfc-b:
|
|
54
|
+
registerSemanticProperty("dfc-b:hasInput", &method("consumptionFlow")).valueSetter = method("consumptionFlow=")
|
|
55
|
+
registerSemanticProperty("dfc-b:hasOutput", &method("productionFlow")).valueSetter = method("productionFlow=")
|
|
56
56
|
end
|
|
57
57
|
|
|
58
58
|
|
|
@@ -47,7 +47,7 @@ class DataFoodConsortium::ConnectorV1::RealizedConsumptionFlow < DataFoodConsort
|
|
|
47
47
|
@transformation = transformation
|
|
48
48
|
@product = product
|
|
49
49
|
self.semanticType = "dfc-b:AsRealizedConsumptionFlow"
|
|
50
|
-
registerSemanticProperty("dfc-b:
|
|
50
|
+
registerSemanticProperty("dfc-b:inputOf", &method("transformation")).valueSetter = method("transformation=")
|
|
51
51
|
registerSemanticProperty("dfc-b:consumes", &method("product")).valueSetter = method("product=")
|
|
52
52
|
end
|
|
53
53
|
|
|
@@ -47,7 +47,7 @@ class DataFoodConsortium::ConnectorV1::RealizedProductionFlow < DataFoodConsorti
|
|
|
47
47
|
@transformation = transformation
|
|
48
48
|
@product = product
|
|
49
49
|
self.semanticType = "dfc-b:AsRealizedProductionFlow"
|
|
50
|
-
registerSemanticProperty("dfc-b:
|
|
50
|
+
registerSemanticProperty("dfc-b:outputOf", &method("transformation")).valueSetter = method("transformation=")
|
|
51
51
|
registerSemanticProperty("dfc-b:produces", &method("product")).valueSetter = method("product=")
|
|
52
52
|
end
|
|
53
53
|
|
|
@@ -64,8 +64,8 @@ class DataFoodConsortium::ConnectorV1::RealizedTransformation
|
|
|
64
64
|
registerSemanticProperty("dfc-b:hasTransformationType", &method("transformationType")).valueSetter = method("transformationType=")
|
|
65
65
|
registerSemanticProperty("dfc-b:startDate", &method("startDate")).valueSetter = method("startDate=")
|
|
66
66
|
registerSemanticProperty("dfc-b:endDate", &method("endDate")).valueSetter = method("endDate=")
|
|
67
|
-
registerSemanticProperty("dfc-b:
|
|
68
|
-
registerSemanticProperty("dfc-b:
|
|
67
|
+
registerSemanticProperty("dfc-b:hasInput", &method("consumptionFlow")).valueSetter = method("consumptionFlow=")
|
|
68
|
+
registerSemanticProperty("dfc-b:hasOutput", &method("productionFlow")).valueSetter = method("productionFlow=")
|
|
69
69
|
end
|
|
70
70
|
|
|
71
71
|
|
|
@@ -28,6 +28,7 @@ require "datafoodconsortium/connector_v1/defined_product"
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
+
|
|
31
32
|
require "virtual_assembly/semantizer"
|
|
32
33
|
|
|
33
34
|
class DataFoodConsortium::ConnectorV1::SuppliedProduct < DataFoodConsortium::ConnectorV1::DefinedProduct
|
|
@@ -37,12 +38,16 @@ class DataFoodConsortium::ConnectorV1::SuppliedProduct < DataFoodConsortium::Con
|
|
|
37
38
|
# @return [Real]
|
|
38
39
|
attr_accessor :totalTheoreticalStock
|
|
39
40
|
|
|
41
|
+
# @return [ILocalizedProduct]
|
|
42
|
+
attr_accessor :localizedProducts
|
|
43
|
+
|
|
40
44
|
|
|
41
45
|
|
|
42
46
|
|
|
43
47
|
|
|
44
48
|
# @param semanticId [String]
|
|
45
49
|
# @param totalTheoreticalStock [Real]
|
|
50
|
+
# @param localizedProducts [ILocalizedProduct]
|
|
46
51
|
# @param name [String]
|
|
47
52
|
# @param description [String]
|
|
48
53
|
# @param productType [ISKOSConcept]
|
|
@@ -62,11 +67,13 @@ class DataFoodConsortium::ConnectorV1::SuppliedProduct < DataFoodConsortium::Con
|
|
|
62
67
|
# @param images [String]
|
|
63
68
|
# @param variants [IDefinedProduct]
|
|
64
69
|
# @param isVariantOf [IDefinedProduct]
|
|
65
|
-
def initialize(semanticId, totalTheoreticalStock: nil, name: nil, description: nil, productType: nil, quantity: nil, alcoholPercentage: nil, lifetime: nil, claims: [], usageOrStorageConditions: nil, allergenCharacteristics: [], nutrientCharacteristics: [], physicalCharacteristics: [], geographicalOrigin: nil, catalogItems: [], certifications: [], natureOrigin: [], partOrigin: [], images: [], variants: [], isVariantOf: [])
|
|
70
|
+
def initialize(semanticId, totalTheoreticalStock: nil, localizedProducts: [], name: nil, description: nil, productType: nil, quantity: nil, alcoholPercentage: nil, lifetime: nil, claims: [], usageOrStorageConditions: nil, allergenCharacteristics: [], nutrientCharacteristics: [], physicalCharacteristics: [], geographicalOrigin: nil, catalogItems: [], certifications: [], natureOrigin: [], partOrigin: [], images: [], variants: [], isVariantOf: [])
|
|
66
71
|
super(semanticId, name: name, description: description, productType: productType, quantity: quantity, alcoholPercentage: alcoholPercentage, lifetime: lifetime, claims: claims, usageOrStorageConditions: usageOrStorageConditions, allergenCharacteristics: allergenCharacteristics, nutrientCharacteristics: nutrientCharacteristics, physicalCharacteristics: physicalCharacteristics, geographicalOrigin: geographicalOrigin, catalogItems: catalogItems, certifications: certifications, natureOrigin: natureOrigin, partOrigin: partOrigin, images: images, variants: variants, isVariantOf: isVariantOf)
|
|
67
72
|
@totalTheoreticalStock = totalTheoreticalStock
|
|
73
|
+
@localizedProducts = localizedProducts
|
|
68
74
|
self.semanticType = "dfc-b:SuppliedProduct"
|
|
69
75
|
registerSemanticProperty("dfc-b:totalTheoreticalStock", &method("totalTheoreticalStock")).valueSetter = method("totalTheoreticalStock=")
|
|
76
|
+
registerSemanticProperty("dfc-b:referenceOf", &method("localizedProducts")).valueSetter = method("localizedProducts=")
|
|
70
77
|
end
|
|
71
78
|
|
|
72
79
|
|
|
@@ -14,9 +14,9 @@ module DataFoodConsortium
|
|
|
14
14
|
require 'datafoodconsortium/connector_v1/allergen_characteristic.rb'
|
|
15
15
|
require 'datafoodconsortium/connector_v1/characteristic.rb'
|
|
16
16
|
require 'datafoodconsortium/connector_v1/nutrient_characteristic.rb'
|
|
17
|
+
require 'datafoodconsortium/connector_v1/opening_hours_specification.rb'
|
|
17
18
|
require 'datafoodconsortium/connector_v1/physical_characteristic.rb'
|
|
18
19
|
require 'datafoodconsortium/connector_v1/quantitative_value.rb'
|
|
19
|
-
require 'datafoodconsortium/connector_v1/quantity.rb'
|
|
20
20
|
require 'datafoodconsortium/connector_v1/defined_product.rb'
|
|
21
21
|
require 'datafoodconsortium/connector_v1/flow.rb'
|
|
22
22
|
require 'datafoodconsortium/connector_v1/localized_product.rb'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: datafoodconsortium-connector-v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.4.0.pre.
|
|
4
|
+
version: 1.4.0.pre.beta6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Maxime Lecoq
|
|
@@ -56,6 +56,7 @@ files:
|
|
|
56
56
|
- lib/datafoodconsortium/connector_v1/localized_product.rb
|
|
57
57
|
- lib/datafoodconsortium/connector_v1/nutrient_characteristic.rb
|
|
58
58
|
- lib/datafoodconsortium/connector_v1/offer.rb
|
|
59
|
+
- lib/datafoodconsortium/connector_v1/opening_hours_specification.rb
|
|
59
60
|
- lib/datafoodconsortium/connector_v1/order.rb
|
|
60
61
|
- lib/datafoodconsortium/connector_v1/order_line.rb
|
|
61
62
|
- lib/datafoodconsortium/connector_v1/payment_method.rb
|
|
@@ -74,7 +75,6 @@ files:
|
|
|
74
75
|
- lib/datafoodconsortium/connector_v1/price.rb
|
|
75
76
|
- lib/datafoodconsortium/connector_v1/product_batch.rb
|
|
76
77
|
- lib/datafoodconsortium/connector_v1/quantitative_value.rb
|
|
77
|
-
- lib/datafoodconsortium/connector_v1/quantity.rb
|
|
78
78
|
- lib/datafoodconsortium/connector_v1/real_stock.rb
|
|
79
79
|
- lib/datafoodconsortium/connector_v1/realized_consumption_flow.rb
|
|
80
80
|
- lib/datafoodconsortium/connector_v1/realized_production_flow.rb
|