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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/lib/datafoodconsortium/connector/address.rb +25 -6
  3. data/lib/datafoodconsortium/connector/agent.rb +14 -7
  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 +25 -18
  12. data/lib/datafoodconsortium/connector/enterprise.rb +14 -13
  13. data/lib/datafoodconsortium/connector/{allergen_dimension.rb → flow.rb} +15 -3
  14. data/lib/datafoodconsortium/connector/importer.rb +112 -0
  15. data/lib/datafoodconsortium/connector/json_ld_serializer.rb +7 -14
  16. data/lib/datafoodconsortium/connector/nutrient_characteristic.rb +2 -2
  17. data/lib/datafoodconsortium/connector/offer.rb +6 -5
  18. data/lib/datafoodconsortium/connector/order.rb +26 -7
  19. data/lib/datafoodconsortium/connector/order_line.rb +7 -6
  20. data/lib/datafoodconsortium/connector/person.rb +8 -7
  21. data/lib/datafoodconsortium/connector/phone_number.rb +4 -3
  22. data/lib/datafoodconsortium/connector/physical_characteristic.rb +3 -3
  23. data/lib/datafoodconsortium/connector/{certification.rb → planned_consumption_flow.rb} +25 -3
  24. data/lib/datafoodconsortium/connector/{characteristic_dimension.rb → planned_production_flow.rb} +25 -3
  25. data/lib/datafoodconsortium/connector/planned_transformation.rb +59 -0
  26. data/lib/datafoodconsortium/connector/price.rb +5 -4
  27. data/lib/datafoodconsortium/connector/quantitative_value.rb +4 -3
  28. data/lib/datafoodconsortium/connector/quantity.rb +4 -3
  29. data/lib/datafoodconsortium/connector/sale_session.rb +6 -5
  30. data/lib/datafoodconsortium/connector/skos_concept.rb +10 -7
  31. data/lib/datafoodconsortium/connector/skos_helper.rb +14 -0
  32. data/lib/datafoodconsortium/connector/skos_parser.rb +122 -99
  33. data/lib/datafoodconsortium/connector/skos_parser_element.rb +72 -53
  34. data/lib/datafoodconsortium/connector/social_media.rb +4 -7
  35. data/lib/datafoodconsortium/connector/supplied_product.rb +5 -4
  36. data/lib/datafoodconsortium/connector/technical_product.rb +5 -4
  37. data/lib/datafoodconsortium/connector.rb +23 -13
  38. metadata +13 -41
  39. data/lib/datafoodconsortium/connector/geographical_origin.rb +0 -34
  40. data/lib/datafoodconsortium/connector/nature_origin.rb +0 -34
  41. data/lib/datafoodconsortium/connector/part_origin.rb +0 -34
  42. data/lib/datafoodconsortium/connector/product_type.rb +0 -34
  43. data/lib/datafoodconsortium/connector/repository.rb +0 -33
  44. data/lib/datafoodconsortium/connector/unit.rb +0 -34
@@ -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