datafoodconsortium-connector 1.0.0.pre.alpha.9 → 1.0.0.pre.alpha.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/lib/datafoodconsortium/connector/address.rb +6 -5
  3. data/lib/datafoodconsortium/connector/agent.rb +7 -6
  4. data/lib/datafoodconsortium/connector/allergen_characteristic.rb +3 -3
  5. data/lib/datafoodconsortium/connector/catalog.rb +4 -3
  6. data/lib/datafoodconsortium/connector/catalog_item.rb +7 -6
  7. data/lib/datafoodconsortium/connector/characteristic.rb +1 -3
  8. data/lib/datafoodconsortium/connector/connector.rb +10 -9
  9. data/lib/datafoodconsortium/connector/context.rb +72 -0
  10. data/lib/datafoodconsortium/connector/customer_category.rb +3 -2
  11. data/lib/datafoodconsortium/connector/defined_product.rb +18 -17
  12. data/lib/datafoodconsortium/connector/enterprise.rb +11 -11
  13. data/lib/datafoodconsortium/connector/importer.rb +112 -0
  14. data/lib/datafoodconsortium/connector/json_ld_serializer.rb +7 -14
  15. data/lib/datafoodconsortium/connector/nutrient_characteristic.rb +2 -2
  16. data/lib/datafoodconsortium/connector/offer.rb +6 -5
  17. data/lib/datafoodconsortium/connector/order.rb +7 -6
  18. data/lib/datafoodconsortium/connector/order_line.rb +7 -6
  19. data/lib/datafoodconsortium/connector/person.rb +5 -5
  20. data/lib/datafoodconsortium/connector/phone_number.rb +4 -3
  21. data/lib/datafoodconsortium/connector/physical_characteristic.rb +3 -3
  22. data/lib/datafoodconsortium/connector/price.rb +5 -4
  23. data/lib/datafoodconsortium/connector/quantitative_value.rb +4 -3
  24. data/lib/datafoodconsortium/connector/quantity.rb +4 -3
  25. data/lib/datafoodconsortium/connector/sale_session.rb +6 -5
  26. data/lib/datafoodconsortium/connector/skos_concept.rb +10 -7
  27. data/lib/datafoodconsortium/connector/skos_helper.rb +14 -0
  28. data/lib/datafoodconsortium/connector/skos_parser.rb +122 -99
  29. data/lib/datafoodconsortium/connector/skos_parser_element.rb +72 -53
  30. data/lib/datafoodconsortium/connector/social_media.rb +4 -3
  31. data/lib/datafoodconsortium/connector/supplied_product.rb +2 -2
  32. data/lib/datafoodconsortium/connector/technical_product.rb +2 -2
  33. data/lib/datafoodconsortium/connector.rb +19 -13
  34. metadata +6 -40
  35. data/lib/datafoodconsortium/connector/allergen_dimension.rb +0 -34
  36. data/lib/datafoodconsortium/connector/certification.rb +0 -34
  37. data/lib/datafoodconsortium/connector/characteristic_dimension.rb +0 -34
  38. data/lib/datafoodconsortium/connector/geographical_origin.rb +0 -34
  39. data/lib/datafoodconsortium/connector/nature_origin.rb +0 -34
  40. data/lib/datafoodconsortium/connector/part_origin.rb +0 -34
  41. data/lib/datafoodconsortium/connector/product_type.rb +0 -34
  42. data/lib/datafoodconsortium/connector/repository.rb +0 -33
  43. data/lib/datafoodconsortium/connector/unit.rb +0 -34
@@ -24,8 +24,9 @@
24
24
  require "virtual_assembly/semantizer"
25
25
 
26
26
  class DataFoodConsortium::Connector::SocialMedia
27
+ include VirtualAssembly::Semantizer::SemanticObject
27
28
 
28
- include VirtualAssembly::Semantizer::SemanticObject
29
+ SEMANTIC_TYPE = "dfc-b:SocialMedia".freeze
29
30
 
30
31
  # @return [String]
31
32
  attr_accessor :name
@@ -41,8 +42,8 @@ class DataFoodConsortium::Connector::SocialMedia
41
42
  @name = name
42
43
  @url = url
43
44
  self.semanticType = "dfc-b:SocialMedia"
44
- registerSemanticProperty("dfc-b:name") { self.name }
45
- registerSemanticProperty("dfc-b:URL") { self.url }
45
+ registerSemanticProperty("dfc-b:name", &method("name")).valueSetter = method("name=")
46
+ registerSemanticProperty("dfc-b:URL", &method("url")).valueSetter = method("url=")
46
47
  end
47
48
 
48
49
 
@@ -32,7 +32,7 @@ require "virtual_assembly/semantizer"
32
32
 
33
33
  class DataFoodConsortium::Connector::SuppliedProduct < DataFoodConsortium::Connector::DefinedProduct
34
34
 
35
-
35
+ SEMANTIC_TYPE = "dfc-b:SuppliedProduct".freeze
36
36
 
37
37
  # @return [Real]
38
38
  attr_accessor :totalTheoreticalStock
@@ -63,7 +63,7 @@ class DataFoodConsortium::Connector::SuppliedProduct < DataFoodConsortium::Conne
63
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)
64
64
  @totalTheoreticalStock = totalTheoreticalStock
65
65
  self.semanticType = "dfc-b:SuppliedProduct"
66
- registerSemanticProperty("dfc-b:totalTheoreticalStock") { self.totalTheoreticalStock }
66
+ registerSemanticProperty("dfc-b:totalTheoreticalStock", &method("totalTheoreticalStock")).valueSetter = method("totalTheoreticalStock=")
67
67
  end
68
68
 
69
69
 
@@ -20,14 +20,14 @@
20
20
  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  # SOFTWARE.
22
22
 
23
+ require "datafoodconsortium/connector/defined_product"
23
24
 
24
25
 
25
- require "datafoodconsortium/connector/defined_product"
26
26
  require "virtual_assembly/semantizer"
27
27
 
28
28
  class DataFoodConsortium::Connector::TechnicalProduct < DataFoodConsortium::Connector::DefinedProduct
29
29
 
30
-
30
+ SEMANTIC_TYPE = "dfc-b:TechnicalProduct".freeze
31
31
 
32
32
 
33
33
  # @param semanticId [String]
@@ -4,29 +4,35 @@ module DataFoodConsortium
4
4
  require 'datafoodconsortium/connector/json_ld_serializer'
5
5
  require 'datafoodconsortium/connector/skos_parser_element'
6
6
  require 'datafoodconsortium/connector/skos_parser'
7
- require 'datafoodconsortium/connector/social_media.rb'
8
7
  require 'datafoodconsortium/connector/agent.rb'
9
- require 'datafoodconsortium/connector/person.rb'
10
- require 'datafoodconsortium/connector/phone_number.rb'
11
8
  require 'datafoodconsortium/connector/customer_category.rb'
12
9
  require 'datafoodconsortium/connector/enterprise.rb'
13
- require 'datafoodconsortium/connector/technical_product.rb'
14
- require 'datafoodconsortium/connector/defined_product.rb'
15
- require 'datafoodconsortium/connector/supplied_product.rb'
16
- require 'datafoodconsortium/connector/physical_characteristic.rb'
17
- require 'datafoodconsortium/connector/nutrient_characteristic.rb'
18
- require 'datafoodconsortium/connector/characteristic.rb'
19
- require 'datafoodconsortium/connector/quantity.rb'
20
- require 'datafoodconsortium/connector/allergen_characteristic.rb'
10
+ require 'datafoodconsortium/connector/person.rb'
11
+ require 'datafoodconsortium/connector/phone_number.rb'
12
+ require 'datafoodconsortium/connector/social_media.rb'
21
13
  require 'datafoodconsortium/connector/address.rb'
14
+ require 'datafoodconsortium/connector/allergen_characteristic.rb'
15
+ require 'datafoodconsortium/connector/characteristic.rb'
16
+ require 'datafoodconsortium/connector/nutrient_characteristic.rb'
17
+ require 'datafoodconsortium/connector/physical_characteristic.rb'
22
18
  require 'datafoodconsortium/connector/quantitative_value.rb'
19
+ require 'datafoodconsortium/connector/quantity.rb'
20
+ require 'datafoodconsortium/connector/defined_product.rb'
21
+ require 'datafoodconsortium/connector/supplied_product.rb'
22
+ require 'datafoodconsortium/connector/technical_product.rb'
23
23
  require 'datafoodconsortium/connector/catalog.rb'
24
+ require 'datafoodconsortium/connector/catalog_item.rb'
25
+ require 'datafoodconsortium/connector/offer.rb'
24
26
  require 'datafoodconsortium/connector/order.rb'
25
27
  require 'datafoodconsortium/connector/order_line.rb'
26
- require 'datafoodconsortium/connector/offer.rb'
27
- require 'datafoodconsortium/connector/catalog_item.rb'
28
28
  require 'datafoodconsortium/connector/price.rb'
29
29
  require 'datafoodconsortium/connector/sale_session.rb'
30
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
31
37
  end
32
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.9
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: 2023-11-06 00:00:00.000000000 Z
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,40 +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/allergen_dimension.rb
72
43
  - lib/datafoodconsortium/connector/catalog.rb
73
44
  - lib/datafoodconsortium/connector/catalog_item.rb
74
- - lib/datafoodconsortium/connector/certification.rb
75
45
  - lib/datafoodconsortium/connector/characteristic.rb
76
- - lib/datafoodconsortium/connector/characteristic_dimension.rb
77
46
  - lib/datafoodconsortium/connector/connector.rb
47
+ - lib/datafoodconsortium/connector/context.rb
78
48
  - lib/datafoodconsortium/connector/customer_category.rb
79
49
  - lib/datafoodconsortium/connector/defined_product.rb
80
50
  - lib/datafoodconsortium/connector/enterprise.rb
81
- - lib/datafoodconsortium/connector/geographical_origin.rb
51
+ - lib/datafoodconsortium/connector/importer.rb
82
52
  - lib/datafoodconsortium/connector/json_ld_serializer.rb
83
- - lib/datafoodconsortium/connector/nature_origin.rb
84
53
  - lib/datafoodconsortium/connector/nutrient_characteristic.rb
85
54
  - lib/datafoodconsortium/connector/offer.rb
86
55
  - lib/datafoodconsortium/connector/order.rb
87
56
  - lib/datafoodconsortium/connector/order_line.rb
88
- - lib/datafoodconsortium/connector/part_origin.rb
89
57
  - lib/datafoodconsortium/connector/person.rb
90
58
  - lib/datafoodconsortium/connector/phone_number.rb
91
59
  - lib/datafoodconsortium/connector/physical_characteristic.rb
92
60
  - lib/datafoodconsortium/connector/price.rb
93
- - lib/datafoodconsortium/connector/product_type.rb
94
61
  - lib/datafoodconsortium/connector/quantitative_value.rb
95
62
  - lib/datafoodconsortium/connector/quantity.rb
96
- - lib/datafoodconsortium/connector/repository.rb
97
63
  - lib/datafoodconsortium/connector/sale_session.rb
98
64
  - lib/datafoodconsortium/connector/skos_concept.rb
65
+ - lib/datafoodconsortium/connector/skos_helper.rb
99
66
  - lib/datafoodconsortium/connector/skos_parser.rb
100
67
  - lib/datafoodconsortium/connector/skos_parser_element.rb
101
68
  - lib/datafoodconsortium/connector/social_media.rb
102
69
  - lib/datafoodconsortium/connector/supplied_product.rb
103
70
  - lib/datafoodconsortium/connector/technical_product.rb
104
- - lib/datafoodconsortium/connector/unit.rb
105
71
  homepage: https://github.com/datafoodconsortium/connector-ruby/
106
72
  licenses:
107
73
  - MIT
@@ -121,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
87
  - !ruby/object:Gem::Version
122
88
  version: 1.3.1
123
89
  requirements: []
124
- rubygems_version: 3.3.25
90
+ rubygems_version: 3.3.26
125
91
  signing_key:
126
92
  specification_version: 4
127
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/characteristic_dimension"
24
-
25
- require "virtual_assembly/semantizer"
26
-
27
- class DataFoodConsortium::Connector::AllergenDimension < DataFoodConsortium::Connector::CharacteristicDimension
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::Certification < 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::CharacteristicDimension < 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::GeographicalOrigin < 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::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