datafoodconsortium-connector 1.0.0.pre.alpha.8 → 1.0.0.pre.alpha.10
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 +7 -6
- data/lib/datafoodconsortium/connector/agent.rb +31 -32
- data/lib/datafoodconsortium/connector/allergen_characteristic.rb +6 -7
- data/lib/datafoodconsortium/connector/{characteristic_dimension.rb → catalog.rb} +23 -3
- data/lib/datafoodconsortium/connector/catalog_item.rb +15 -11
- data/lib/datafoodconsortium/connector/characteristic.rb +1 -4
- data/lib/datafoodconsortium/connector/connector.rb +10 -9
- data/lib/datafoodconsortium/connector/context.rb +72 -0
- data/lib/datafoodconsortium/connector/customer_category.rb +4 -3
- data/lib/datafoodconsortium/connector/defined_product.rb +33 -112
- data/lib/datafoodconsortium/connector/enterprise.rb +43 -23
- data/lib/datafoodconsortium/connector/importer.rb +112 -0
- data/lib/datafoodconsortium/connector/json_ld_serializer.rb +7 -14
- data/lib/datafoodconsortium/connector/nutrient_characteristic.rb +7 -8
- data/lib/datafoodconsortium/connector/offer.rb +8 -7
- data/lib/datafoodconsortium/connector/order.rb +40 -1
- data/lib/datafoodconsortium/connector/order_line.rb +40 -1
- data/lib/datafoodconsortium/connector/person.rb +16 -22
- data/lib/datafoodconsortium/connector/{geographical_origin.rb → phone_number.rb} +20 -3
- data/lib/datafoodconsortium/connector/physical_characteristic.rb +6 -7
- data/lib/datafoodconsortium/connector/price.rb +9 -7
- data/lib/datafoodconsortium/connector/quantitative_value.rb +7 -6
- data/lib/datafoodconsortium/connector/{allergen_dimension.rb → quantity.rb} +20 -3
- data/lib/datafoodconsortium/connector/sale_session.rb +64 -0
- data/lib/datafoodconsortium/connector/skos_concept.rb +14 -34
- data/lib/datafoodconsortium/connector/skos_helper.rb +14 -0
- data/lib/datafoodconsortium/connector/skos_parser.rb +122 -100
- data/lib/datafoodconsortium/connector/skos_parser_element.rb +72 -53
- data/lib/datafoodconsortium/connector/{certification.rb → social_media.rb} +23 -2
- data/lib/datafoodconsortium/connector/supplied_product.rb +21 -14
- data/lib/datafoodconsortium/connector/technical_product.rb +59 -0
- data/lib/datafoodconsortium/connector.rb +21 -18
- metadata +12 -40
- data/lib/datafoodconsortium/connector/nature_origin.rb +0 -34
- data/lib/datafoodconsortium/connector/part_origin.rb +0 -34
- data/lib/datafoodconsortium/connector/product_type.rb +0 -34
- data/lib/datafoodconsortium/connector/repository.rb +0 -33
- data/lib/datafoodconsortium/connector/unit.rb +0 -34
@@ -21,44 +21,51 @@
|
|
21
21
|
# SOFTWARE.
|
22
22
|
|
23
23
|
require "datafoodconsortium/connector/defined_product"
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
|
24
31
|
require "virtual_assembly/semantizer"
|
25
32
|
|
26
33
|
class DataFoodConsortium::Connector::SuppliedProduct < DataFoodConsortium::Connector::DefinedProduct
|
27
34
|
|
28
|
-
|
35
|
+
SEMANTIC_TYPE = "dfc-b:SuppliedProduct".freeze
|
29
36
|
|
30
37
|
# @return [Real]
|
31
38
|
attr_accessor :totalTheoreticalStock
|
32
39
|
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
|
33
44
|
# @param semanticId [String]
|
34
45
|
# @param totalTheoreticalStock [Real]
|
35
46
|
# @param name [String]
|
36
47
|
# @param description [String]
|
37
|
-
# @param productType [
|
38
|
-
# @param quantity [
|
48
|
+
# @param productType [ISKOSConcept]
|
49
|
+
# @param quantity [IQuantity]
|
39
50
|
# @param alcoholPercentage [Real]
|
40
51
|
# @param lifetime [String]
|
41
|
-
# @param claims [
|
52
|
+
# @param claims [ISKOSConcept]
|
42
53
|
# @param usageOrStorageConditions [String]
|
43
54
|
# @param allergenCharacteristics [IAllergenCharacteristic]
|
44
55
|
# @param nutrientCharacteristics [INutrientCharacteristic]
|
45
56
|
# @param physicalCharacteristics [IPhysicalCharacteristic]
|
46
|
-
# @param geographicalOrigin [
|
57
|
+
# @param geographicalOrigin [ISKOSConcept]
|
47
58
|
# @param catalogItems [ICatalogItem]
|
48
|
-
# @param certifications [
|
49
|
-
# @param natureOrigin [
|
50
|
-
# @param partOrigin [
|
59
|
+
# @param certifications [ISKOSConcept]
|
60
|
+
# @param natureOrigin [ISKOSConcept]
|
61
|
+
# @param partOrigin [ISKOSConcept]
|
51
62
|
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
63
|
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
64
|
@totalTheoreticalStock = totalTheoreticalStock
|
54
|
-
self.semanticType = "
|
55
|
-
registerSemanticProperty("
|
65
|
+
self.semanticType = "dfc-b:SuppliedProduct"
|
66
|
+
registerSemanticProperty("dfc-b:totalTheoreticalStock", &method("totalTheoreticalStock")).valueSetter = method("totalTheoreticalStock=")
|
56
67
|
end
|
57
68
|
|
58
69
|
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
70
|
|
64
71
|
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# MIT License
|
2
|
+
#
|
3
|
+
# Copyright (c) 2023 Maxime Lecoq <maxime@lecoqlibre.fr>
|
4
|
+
#
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
10
|
+
# furnished to do so, subject to the following conditions:
|
11
|
+
#
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
13
|
+
# copies or substantial portions of the Software.
|
14
|
+
#
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
# SOFTWARE.
|
22
|
+
|
23
|
+
require "datafoodconsortium/connector/defined_product"
|
24
|
+
|
25
|
+
|
26
|
+
require "virtual_assembly/semantizer"
|
27
|
+
|
28
|
+
class DataFoodConsortium::Connector::TechnicalProduct < DataFoodConsortium::Connector::DefinedProduct
|
29
|
+
|
30
|
+
SEMANTIC_TYPE = "dfc-b:TechnicalProduct".freeze
|
31
|
+
|
32
|
+
|
33
|
+
# @param semanticId [String]
|
34
|
+
# @param name [String]
|
35
|
+
# @param description [String]
|
36
|
+
# @param productType [ISKOSConcept]
|
37
|
+
# @param quantity [IQuantity]
|
38
|
+
# @param alcoholPercentage [Real]
|
39
|
+
# @param lifetime [String]
|
40
|
+
# @param claims [ISKOSConcept]
|
41
|
+
# @param usageOrStorageConditions [String]
|
42
|
+
# @param allergenCharacteristics [IAllergenCharacteristic]
|
43
|
+
# @param nutrientCharacteristics [INutrientCharacteristic]
|
44
|
+
# @param physicalCharacteristics [IPhysicalCharacteristic]
|
45
|
+
# @param geographicalOrigin [ISKOSConcept]
|
46
|
+
# @param catalogItems [ICatalogItem]
|
47
|
+
# @param certifications [ISKOSConcept]
|
48
|
+
# @param natureOrigin [ISKOSConcept]
|
49
|
+
# @param partOrigin [ISKOSConcept]
|
50
|
+
def initialize(semanticId, name: "", description: "", productType: nil, quantity: nil, alcoholPercentage: 0.0, lifetime: "", claims: [], usageOrStorageConditions: "", allergenCharacteristics: [], nutrientCharacteristics: [], physicalCharacteristics: [], geographicalOrigin: nil, catalogItems: [], certifications: [], natureOrigin: [], partOrigin: [])
|
51
|
+
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)
|
52
|
+
|
53
|
+
self.semanticType = "dfc-b:TechnicalProduct"
|
54
|
+
|
55
|
+
end
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
end
|
@@ -5,31 +5,34 @@ module DataFoodConsortium
|
|
5
5
|
require 'datafoodconsortium/connector/skos_parser_element'
|
6
6
|
require 'datafoodconsortium/connector/skos_parser'
|
7
7
|
require 'datafoodconsortium/connector/agent.rb'
|
8
|
+
require 'datafoodconsortium/connector/customer_category.rb'
|
8
9
|
require 'datafoodconsortium/connector/enterprise.rb'
|
9
10
|
require 'datafoodconsortium/connector/person.rb'
|
10
|
-
require 'datafoodconsortium/connector/
|
11
|
-
require 'datafoodconsortium/connector/
|
12
|
-
require 'datafoodconsortium/connector/repository.rb'
|
13
|
-
require 'datafoodconsortium/connector/price.rb'
|
14
|
-
require 'datafoodconsortium/connector/order.rb'
|
15
|
-
require 'datafoodconsortium/connector/catalog_item.rb'
|
16
|
-
require 'datafoodconsortium/connector/order_line.rb'
|
17
|
-
require 'datafoodconsortium/connector/allergen_dimension.rb'
|
18
|
-
require 'datafoodconsortium/connector/characteristic.rb'
|
11
|
+
require 'datafoodconsortium/connector/phone_number.rb'
|
12
|
+
require 'datafoodconsortium/connector/social_media.rb'
|
19
13
|
require 'datafoodconsortium/connector/address.rb'
|
20
|
-
require 'datafoodconsortium/connector/
|
14
|
+
require 'datafoodconsortium/connector/allergen_characteristic.rb'
|
15
|
+
require 'datafoodconsortium/connector/characteristic.rb'
|
21
16
|
require 'datafoodconsortium/connector/nutrient_characteristic.rb'
|
22
|
-
require 'datafoodconsortium/connector/part_origin.rb'
|
23
|
-
require 'datafoodconsortium/connector/unit.rb'
|
24
|
-
require 'datafoodconsortium/connector/quantitative_value.rb'
|
25
|
-
require 'datafoodconsortium/connector/certification.rb'
|
26
|
-
require 'datafoodconsortium/connector/product_type.rb'
|
27
17
|
require 'datafoodconsortium/connector/physical_characteristic.rb'
|
28
|
-
require 'datafoodconsortium/connector/
|
29
|
-
require 'datafoodconsortium/connector/
|
30
|
-
require 'datafoodconsortium/connector/nature_origin.rb'
|
18
|
+
require 'datafoodconsortium/connector/quantitative_value.rb'
|
19
|
+
require 'datafoodconsortium/connector/quantity.rb'
|
31
20
|
require 'datafoodconsortium/connector/defined_product.rb'
|
32
21
|
require 'datafoodconsortium/connector/supplied_product.rb'
|
22
|
+
require 'datafoodconsortium/connector/technical_product.rb'
|
23
|
+
require 'datafoodconsortium/connector/catalog.rb'
|
24
|
+
require 'datafoodconsortium/connector/catalog_item.rb'
|
25
|
+
require 'datafoodconsortium/connector/offer.rb'
|
26
|
+
require 'datafoodconsortium/connector/order.rb'
|
27
|
+
require 'datafoodconsortium/connector/order_line.rb'
|
28
|
+
require 'datafoodconsortium/connector/price.rb'
|
29
|
+
require 'datafoodconsortium/connector/sale_session.rb'
|
33
30
|
require 'datafoodconsortium/connector/skos_concept.rb'
|
31
|
+
|
32
|
+
def self.semantic_types
|
33
|
+
constants.map(&method(:const_get)).select do |c|
|
34
|
+
c.constants.include?(:SEMANTIC_TYPE)
|
35
|
+
end
|
36
|
+
end
|
34
37
|
end
|
35
38
|
end
|
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.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maxime Lecoq
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: virtual_assembly-semantizer
|
@@ -30,34 +30,6 @@ dependencies:
|
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 1.0.5
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: minitest
|
35
|
-
requirement: !ruby/object:Gem::Requirement
|
36
|
-
requirements:
|
37
|
-
- - ">="
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '0'
|
40
|
-
type: :development
|
41
|
-
prerelease: false
|
42
|
-
version_requirements: !ruby/object:Gem::Requirement
|
43
|
-
requirements:
|
44
|
-
- - ">="
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: '0'
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
name: rake
|
49
|
-
requirement: !ruby/object:Gem::Requirement
|
50
|
-
requirements:
|
51
|
-
- - ">="
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: '0'
|
54
|
-
type: :development
|
55
|
-
prerelease: false
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
requirements:
|
58
|
-
- - ">="
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
version: '0'
|
61
33
|
description: A library to easily integrate the DFC standard within your application.
|
62
34
|
email: maxime@lecoqlibre.fr
|
63
35
|
executables: []
|
@@ -68,34 +40,34 @@ files:
|
|
68
40
|
- lib/datafoodconsortium/connector/address.rb
|
69
41
|
- lib/datafoodconsortium/connector/agent.rb
|
70
42
|
- lib/datafoodconsortium/connector/allergen_characteristic.rb
|
71
|
-
- lib/datafoodconsortium/connector/
|
43
|
+
- lib/datafoodconsortium/connector/catalog.rb
|
72
44
|
- lib/datafoodconsortium/connector/catalog_item.rb
|
73
|
-
- lib/datafoodconsortium/connector/certification.rb
|
74
45
|
- lib/datafoodconsortium/connector/characteristic.rb
|
75
|
-
- lib/datafoodconsortium/connector/characteristic_dimension.rb
|
76
46
|
- lib/datafoodconsortium/connector/connector.rb
|
47
|
+
- lib/datafoodconsortium/connector/context.rb
|
77
48
|
- lib/datafoodconsortium/connector/customer_category.rb
|
78
49
|
- lib/datafoodconsortium/connector/defined_product.rb
|
79
50
|
- lib/datafoodconsortium/connector/enterprise.rb
|
80
|
-
- lib/datafoodconsortium/connector/
|
51
|
+
- lib/datafoodconsortium/connector/importer.rb
|
81
52
|
- lib/datafoodconsortium/connector/json_ld_serializer.rb
|
82
|
-
- lib/datafoodconsortium/connector/nature_origin.rb
|
83
53
|
- lib/datafoodconsortium/connector/nutrient_characteristic.rb
|
84
54
|
- lib/datafoodconsortium/connector/offer.rb
|
85
55
|
- lib/datafoodconsortium/connector/order.rb
|
86
56
|
- lib/datafoodconsortium/connector/order_line.rb
|
87
|
-
- lib/datafoodconsortium/connector/part_origin.rb
|
88
57
|
- lib/datafoodconsortium/connector/person.rb
|
58
|
+
- lib/datafoodconsortium/connector/phone_number.rb
|
89
59
|
- lib/datafoodconsortium/connector/physical_characteristic.rb
|
90
60
|
- lib/datafoodconsortium/connector/price.rb
|
91
|
-
- lib/datafoodconsortium/connector/product_type.rb
|
92
61
|
- lib/datafoodconsortium/connector/quantitative_value.rb
|
93
|
-
- lib/datafoodconsortium/connector/
|
62
|
+
- lib/datafoodconsortium/connector/quantity.rb
|
63
|
+
- lib/datafoodconsortium/connector/sale_session.rb
|
94
64
|
- lib/datafoodconsortium/connector/skos_concept.rb
|
65
|
+
- lib/datafoodconsortium/connector/skos_helper.rb
|
95
66
|
- lib/datafoodconsortium/connector/skos_parser.rb
|
96
67
|
- lib/datafoodconsortium/connector/skos_parser_element.rb
|
68
|
+
- lib/datafoodconsortium/connector/social_media.rb
|
97
69
|
- lib/datafoodconsortium/connector/supplied_product.rb
|
98
|
-
- lib/datafoodconsortium/connector/
|
70
|
+
- lib/datafoodconsortium/connector/technical_product.rb
|
99
71
|
homepage: https://github.com/datafoodconsortium/connector-ruby/
|
100
72
|
licenses:
|
101
73
|
- MIT
|
@@ -115,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
87
|
- !ruby/object:Gem::Version
|
116
88
|
version: 1.3.1
|
117
89
|
requirements: []
|
118
|
-
rubygems_version: 3.3.
|
90
|
+
rubygems_version: 3.3.26
|
119
91
|
signing_key:
|
120
92
|
specification_version: 4
|
121
93
|
summary: Data Food Consortium connector
|
@@ -1,34 +0,0 @@
|
|
1
|
-
# MIT License
|
2
|
-
#
|
3
|
-
# Copyright (c) 2023 Maxime Lecoq <maxime@lecoqlibre.fr>
|
4
|
-
#
|
5
|
-
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
# of this software and associated documentation files (the "Software"), to deal
|
7
|
-
# in the Software without restriction, including without limitation the rights
|
8
|
-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
# copies of the Software, and to permit persons to whom the Software is
|
10
|
-
# furnished to do so, subject to the following conditions:
|
11
|
-
#
|
12
|
-
# The above copyright notice and this permission notice shall be included in all
|
13
|
-
# copies or substantial portions of the Software.
|
14
|
-
#
|
15
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
-
# SOFTWARE.
|
22
|
-
|
23
|
-
require "datafoodconsortium/connector/skos_concept"
|
24
|
-
|
25
|
-
require "virtual_assembly/semantizer"
|
26
|
-
|
27
|
-
class DataFoodConsortium::Connector::NatureOrigin < DataFoodConsortium::Connector::SKOSConcept
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
end
|
@@ -1,34 +0,0 @@
|
|
1
|
-
# MIT License
|
2
|
-
#
|
3
|
-
# Copyright (c) 2023 Maxime Lecoq <maxime@lecoqlibre.fr>
|
4
|
-
#
|
5
|
-
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
# of this software and associated documentation files (the "Software"), to deal
|
7
|
-
# in the Software without restriction, including without limitation the rights
|
8
|
-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
# copies of the Software, and to permit persons to whom the Software is
|
10
|
-
# furnished to do so, subject to the following conditions:
|
11
|
-
#
|
12
|
-
# The above copyright notice and this permission notice shall be included in all
|
13
|
-
# copies or substantial portions of the Software.
|
14
|
-
#
|
15
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
-
# SOFTWARE.
|
22
|
-
|
23
|
-
require "datafoodconsortium/connector/skos_concept"
|
24
|
-
|
25
|
-
require "virtual_assembly/semantizer"
|
26
|
-
|
27
|
-
class DataFoodConsortium::Connector::PartOrigin < DataFoodConsortium::Connector::SKOSConcept
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
end
|
@@ -1,34 +0,0 @@
|
|
1
|
-
# MIT License
|
2
|
-
#
|
3
|
-
# Copyright (c) 2023 Maxime Lecoq <maxime@lecoqlibre.fr>
|
4
|
-
#
|
5
|
-
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
# of this software and associated documentation files (the "Software"), to deal
|
7
|
-
# in the Software without restriction, including without limitation the rights
|
8
|
-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
# copies of the Software, and to permit persons to whom the Software is
|
10
|
-
# furnished to do so, subject to the following conditions:
|
11
|
-
#
|
12
|
-
# The above copyright notice and this permission notice shall be included in all
|
13
|
-
# copies or substantial portions of the Software.
|
14
|
-
#
|
15
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
-
# SOFTWARE.
|
22
|
-
|
23
|
-
|
24
|
-
require "datafoodconsortium/connector/skos_concept"
|
25
|
-
require "virtual_assembly/semantizer"
|
26
|
-
|
27
|
-
class DataFoodConsortium::Connector::ProductType < DataFoodConsortium::Connector::SKOSConcept
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
end
|
@@ -1,33 +0,0 @@
|
|
1
|
-
# MIT License
|
2
|
-
#
|
3
|
-
# Copyright (c) 2023 Maxime Lecoq <maxime@lecoqlibre.fr>
|
4
|
-
#
|
5
|
-
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
# of this software and associated documentation files (the "Software"), to deal
|
7
|
-
# in the Software without restriction, including without limitation the rights
|
8
|
-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
# copies of the Software, and to permit persons to whom the Software is
|
10
|
-
# furnished to do so, subject to the following conditions:
|
11
|
-
#
|
12
|
-
# The above copyright notice and this permission notice shall be included in all
|
13
|
-
# copies or substantial portions of the Software.
|
14
|
-
#
|
15
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
-
# SOFTWARE.
|
22
|
-
|
23
|
-
|
24
|
-
require "virtual_assembly/semantizer"
|
25
|
-
|
26
|
-
class DataFoodConsortium::Connector::Repository
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
end
|
@@ -1,34 +0,0 @@
|
|
1
|
-
# MIT License
|
2
|
-
#
|
3
|
-
# Copyright (c) 2023 Maxime Lecoq <maxime@lecoqlibre.fr>
|
4
|
-
#
|
5
|
-
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
# of this software and associated documentation files (the "Software"), to deal
|
7
|
-
# in the Software without restriction, including without limitation the rights
|
8
|
-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
# copies of the Software, and to permit persons to whom the Software is
|
10
|
-
# furnished to do so, subject to the following conditions:
|
11
|
-
#
|
12
|
-
# The above copyright notice and this permission notice shall be included in all
|
13
|
-
# copies or substantial portions of the Software.
|
14
|
-
#
|
15
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
-
# SOFTWARE.
|
22
|
-
|
23
|
-
require "datafoodconsortium/connector/skos_concept"
|
24
|
-
|
25
|
-
require "virtual_assembly/semantizer"
|
26
|
-
|
27
|
-
class DataFoodConsortium::Connector::Unit < DataFoodConsortium::Connector::SKOSConcept
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
end
|