datafoodconsortium-connector 1.0.0.pre.alpha.7 → 1.0.0.pre.alpha.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/datafoodconsortium/connector/address.rb +5 -5
- data/lib/datafoodconsortium/connector/agent.rb +2 -2
- data/lib/datafoodconsortium/connector/allergen_characteristic.rb +2 -2
- data/lib/datafoodconsortium/connector/catalog_item.rb +5 -5
- data/lib/datafoodconsortium/connector/connector.rb +1 -1
- data/lib/datafoodconsortium/connector/customer_category.rb +2 -2
- data/lib/datafoodconsortium/connector/defined_product.rb +17 -17
- data/lib/datafoodconsortium/connector/enterprise.rb +7 -7
- data/lib/datafoodconsortium/connector/nutrient_characteristic.rb +2 -2
- data/lib/datafoodconsortium/connector/offer.rb +5 -5
- data/lib/datafoodconsortium/connector/person.rb +4 -4
- data/lib/datafoodconsortium/connector/physical_characteristic.rb +2 -2
- data/lib/datafoodconsortium/connector/price.rb +4 -4
- data/lib/datafoodconsortium/connector/quantitative_value.rb +3 -3
- data/lib/datafoodconsortium/connector/supplied_product.rb +2 -2
- 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: 10cef79dc3231070626e77a12f301c6c1d931b3e9aa00455355001622f163d79
|
4
|
+
data.tar.gz: d3ace7b1a70fa76a2770758dd70604a2581b90db81599927adddb783f8b3cec8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a43218d24441bd3f9983b2998ae7ebd5e9745723df8e991ee6d087b0ef0d2c8213e99e3ef5c054e34acb761f8e7e2c429a4f9943ccfef3f74e1be5082881577
|
7
|
+
data.tar.gz: 1920c7915626aea13bcd63119ad35476b5d83c1afccebe9c05b31e0475598fe846efacfddb38632d7467e52833083c11baca289377f235a67e3b0bf3356d12d0
|
@@ -50,11 +50,11 @@ class DataFoodConsortium::Connector::Address
|
|
50
50
|
@postalCode = postalCode
|
51
51
|
@city = city
|
52
52
|
@country = country
|
53
|
-
self.semanticType = "https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
54
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
55
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
56
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
57
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
53
|
+
self.semanticType = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#Address"
|
54
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasStreet") { self.street }
|
55
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasPostalCode") { self.postalCode }
|
56
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasCity") { self.city }
|
57
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasCountry") { self.country }
|
58
58
|
end
|
59
59
|
|
60
60
|
|
@@ -42,8 +42,8 @@ class DataFoodConsortium::Connector::Agent
|
|
42
42
|
super(semanticId)
|
43
43
|
@contacts = contacts
|
44
44
|
@localizations = localizations
|
45
|
-
self.semanticType = "https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
46
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
45
|
+
self.semanticType = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#Agent"
|
46
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasAddress") { self.localizations }
|
47
47
|
end
|
48
48
|
|
49
49
|
|
@@ -39,8 +39,8 @@ class DataFoodConsortium::Connector::AllergenCharacteristic < DataFoodConsortium
|
|
39
39
|
def initialize(allergenDimension: nil, unit: nil, value: 0.0)
|
40
40
|
super(unit: unit, value: value)
|
41
41
|
@allergenDimension = allergenDimension
|
42
|
-
self.semanticType = "https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
43
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
42
|
+
self.semanticType = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#AllergenCharacteristic"
|
43
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasAllergenDimension") { self.allergenDimension }
|
44
44
|
end
|
45
45
|
|
46
46
|
|
@@ -52,11 +52,11 @@ class DataFoodConsortium::Connector::CatalogItem
|
|
52
52
|
@sku = sku
|
53
53
|
@stockLimitation = stockLimitation
|
54
54
|
@offers = offers
|
55
|
-
self.semanticType = "https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
56
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
57
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
58
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
59
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
55
|
+
self.semanticType = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#CatalogItem"
|
56
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#references") { self.product }
|
57
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#sku") { self.sku }
|
58
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#stockLimitation") { self.stockLimitation }
|
59
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#offeredThrough") { self.offers }
|
60
60
|
end
|
61
61
|
|
62
62
|
|
@@ -58,7 +58,7 @@ class DataFoodConsortium::Connector::Connector
|
|
58
58
|
# so the DFC's context can be used.
|
59
59
|
# See https://github.com/datafoodconsortium/connector-ruby/issues/11.
|
60
60
|
inputContext = {
|
61
|
-
"dfc-b" => "https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
61
|
+
"dfc-b" => "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#",
|
62
62
|
#"dfc-p" => "http://static.datafoodconsortium.org/ontologies/DFC_ProductOntology.owl#",
|
63
63
|
#"dfc-t" => "http://static.datafoodconsortium.org/ontologies/DFC_TechnicalOntology.owl#",
|
64
64
|
"dfc-m" => "https://github.com/datafoodconsortium/taxonomies/releases/latest/download/measures.rdf#",
|
@@ -35,8 +35,8 @@ class DataFoodConsortium::Connector::CustomerCategory
|
|
35
35
|
def initialize(semanticId, description: "")
|
36
36
|
super(semanticId)
|
37
37
|
@description = description
|
38
|
-
self.semanticType = "https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
39
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
38
|
+
self.semanticType = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#CustomerCategory"
|
39
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#description") { self.description }
|
40
40
|
end
|
41
41
|
|
42
42
|
|
@@ -121,23 +121,23 @@ class DataFoodConsortium::Connector::DefinedProduct
|
|
121
121
|
@certifications = certifications
|
122
122
|
@natureOrigin = natureOrigin
|
123
123
|
@partOrigin = partOrigin
|
124
|
-
self.semanticType = "https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
125
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
126
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
127
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
128
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
129
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
130
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
131
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
132
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
133
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
134
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
135
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
136
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
137
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
138
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
139
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
140
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
124
|
+
self.semanticType = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#DefinedProduct"
|
125
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#name") { self.name }
|
126
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#description") { self.description }
|
127
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasType") { self.productType }
|
128
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasQuantity") { self.quantity }
|
129
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#alcoholPercentage") { self.alcoholPercentage }
|
130
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#lifetime") { self.lifetime }
|
131
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasClaim") { self.claims }
|
132
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#usageOrStorageCondition") { self.usageOrStorageConditions }
|
133
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasAllergenCharacteristic") { self.allergenCharacteristics }
|
134
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasNutrientCharacteristic") { self.nutrientCharacteristics }
|
135
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasPhysicalCharacteristic") { self.physicalCharacteristics }
|
136
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasGeographicalOrigin") { self.geographicalOrigin }
|
137
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#referencedBy") { self.catalogItems }
|
138
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasCertification") { self.certifications }
|
139
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasNatureOrigin") { self.natureOrigin }
|
140
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasPartOrigin") { self.partOrigin }
|
141
141
|
end
|
142
142
|
|
143
143
|
|
@@ -68,13 +68,13 @@ class DataFoodConsortium::Connector::Enterprise < DataFoodConsortium::Connector:
|
|
68
68
|
@customerCategories = customerCategories
|
69
69
|
@suppliedProducts = suppliedProducts
|
70
70
|
@catalogItems = catalogItems
|
71
|
-
self.semanticType = "https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
72
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
73
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
74
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
75
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
76
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
77
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
71
|
+
self.semanticType = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#Enterprise"
|
72
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasName") { self.name }
|
73
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasDescription") { self.description }
|
74
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#VATnumber") { self.vatNumber }
|
75
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#defines") { self.customerCategories }
|
76
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#supplies") { self.suppliedProducts }
|
77
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#manages") { self.catalogItems }
|
78
78
|
end
|
79
79
|
|
80
80
|
|
@@ -39,8 +39,8 @@ class DataFoodConsortium::Connector::NutrientCharacteristic < DataFoodConsortium
|
|
39
39
|
def initialize(nutrientDimension: nil, unit: nil, value: 0.0)
|
40
40
|
super(unit: unit, value: value)
|
41
41
|
@nutrientDimension = nutrientDimension
|
42
|
-
self.semanticType = "https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
43
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
42
|
+
self.semanticType = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#NutrientCharacteristic"
|
43
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasNutrientDimension") { self.nutrientDimension }
|
44
44
|
end
|
45
45
|
|
46
46
|
|
@@ -52,11 +52,11 @@ class DataFoodConsortium::Connector::Offer
|
|
52
52
|
@stockLimitation = stockLimitation
|
53
53
|
@offeredItem = offeredItem
|
54
54
|
@offeredTo = offeredTo
|
55
|
-
self.semanticType = "https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
56
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
57
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
58
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
59
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
55
|
+
self.semanticType = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#Offer"
|
56
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#price") { self.price }
|
57
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#stockLimitation") { self.stockLimitation }
|
58
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#offeredItem") { self.offeredItem }
|
59
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#offeredTo") { self.offeredTo }
|
60
60
|
end
|
61
61
|
|
62
62
|
|
@@ -49,10 +49,10 @@ class DataFoodConsortium::Connector::Person < DataFoodConsortium::Connector::Age
|
|
49
49
|
@firstName = firstName
|
50
50
|
@lastName = lastName
|
51
51
|
@affiliatedOrganizations = affiliatedOrganizations
|
52
|
-
self.semanticType = "https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
53
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
54
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
55
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
52
|
+
self.semanticType = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#Person"
|
53
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#firstName") { self.firstName }
|
54
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#familyName") { self.lastName }
|
55
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#affiliates") { self.affiliatedOrganizations }
|
56
56
|
end
|
57
57
|
|
58
58
|
|
@@ -39,8 +39,8 @@ class DataFoodConsortium::Connector::PhysicalCharacteristic < DataFoodConsortium
|
|
39
39
|
def initialize(physicalDimension: nil, unit: nil, value: 0.0)
|
40
40
|
super(unit: unit, value: value)
|
41
41
|
@physicalDimension = physicalDimension
|
42
|
-
self.semanticType = "https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
43
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
42
|
+
self.semanticType = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#PhysicalCharacteristic"
|
43
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasPhysicalDimension") { self.physicalDimension }
|
44
44
|
end
|
45
45
|
|
46
46
|
|
@@ -44,10 +44,10 @@ class DataFoodConsortium::Connector::Price
|
|
44
44
|
@value = value
|
45
45
|
@vatRate = vatRate
|
46
46
|
@unit = unit
|
47
|
-
self.semanticType = "https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
48
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
49
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
50
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
47
|
+
self.semanticType = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#Price"
|
48
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#value") { self.value }
|
49
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#VATrate") { self.vatRate }
|
50
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasUnit") { self.unit }
|
51
51
|
end
|
52
52
|
|
53
53
|
|
@@ -40,9 +40,9 @@ class DataFoodConsortium::Connector::QuantitativeValue
|
|
40
40
|
super()
|
41
41
|
@unit = unit
|
42
42
|
@value = value
|
43
|
-
self.semanticType = "https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
44
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
45
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
43
|
+
self.semanticType = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#QuantitativeValue"
|
44
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#hasUnit") { self.unit }
|
45
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#value") { self.value }
|
46
46
|
end
|
47
47
|
|
48
48
|
|
@@ -51,8 +51,8 @@ class DataFoodConsortium::Connector::SuppliedProduct < DataFoodConsortium::Conne
|
|
51
51
|
def initialize(semanticId, totalTheoreticalStock: 0.0, name: "", description: "", productType: nil, quantity: nil, alcoholPercentage: 0.0, lifetime: "", claims: [], usageOrStorageConditions: "", allergenCharacteristics: [], nutrientCharacteristics: [], physicalCharacteristics: [], geographicalOrigin: nil, catalogItems: [], certifications: [], natureOrigin: [], partOrigin: [])
|
52
52
|
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)
|
53
53
|
@totalTheoreticalStock = totalTheoreticalStock
|
54
|
-
self.semanticType = "https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
55
|
-
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/
|
54
|
+
self.semanticType = "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#SuppliedProduct"
|
55
|
+
registerSemanticProperty("https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#totalTheoreticalStock") { self.totalTheoreticalStock }
|
56
56
|
end
|
57
57
|
|
58
58
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: datafoodconsortium-connector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.pre.alpha.
|
4
|
+
version: 1.0.0.pre.alpha.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maxime Lecoq
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: virtual_assembly-semantizer
|