datafoodconsortium-connector 2.0.0.pre.beta7 → 2.0.0.pre.beta8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6f5b061c92d1587c70f6e3dc657a1537d2bc96adfb4a8d92db56a5c07d1de812
4
- data.tar.gz: '0728e0d48e9a2b891328e7407423874c59b2435b95abc163fafe44a78657036b'
3
+ metadata.gz: 40d13c9e4e3d0853c5c03a24ce6ecbda52e8e629e968f6dd488a3ca35b9c2cb9
4
+ data.tar.gz: f5e93df5029cd0ba0648b18940dc39b4ff18d2d6e3197f2d22857fcf6f0094a1
5
5
  SHA512:
6
- metadata.gz: 3c4c69ff07e1d4e0d084c4f7d41b5371c41a6486284eb4cae1c409fef7b5224523f3802fa42ff89d578f2a0dbc8b385e087ecafc163ad81c9c1b23d4bdb19344
7
- data.tar.gz: 230b2682c15c487c17929b0efc5432df25bbd7197d3210d0196b74d03c3473d8dba5fa0414e24cf504142ae7ceee1edbbbb4a04da8761c56af9faa5e1d1aaf56
6
+ metadata.gz: f1f7c5d229b4222887ed65710302bcedcb102911e1f53ea28d66960ecef7bea19d2e109610793b8e73b1d94a2737504bcb81b44796d2eda7202fd1c59747dd29
7
+ data.tar.gz: c12e0eb6737ed301a0354ba6ab3eb9faea4eb0b77cc2e331675e2bec76535ab2bf9fe2652446b177b30a088e6fbad45efdcd96d83db892eff1b60bdcda236566
@@ -31,10 +31,8 @@ module DataFoodConsortium
31
31
  URL_NORMALISED
32
32
  )
33
33
 
34
- # This is the old URL that's not online anymore.
35
- # Keep it for compatiblity with all versions before 1.8.
36
34
  alias_preloaded(
37
- "http://static.datafoodconsortium.org/ontologies/context.json",
35
+ "https://cdn.jsdelivr.net/gh/datafoodconsortium/ontology/context/context_2.0.0.json",
38
36
  URL_NORMALISED
39
37
  )
40
38
 
@@ -100,9 +100,9 @@ module DataFoodConsortium
100
100
  return unless object.uri?
101
101
 
102
102
  id = object.value.sub(
103
- "http://static.datafoodconsortium.org/data/measures.rdf#", "dfc-m:"
103
+ "http://w3id.org/dfc/taxonomies/v2.0.0/measures.rdf#", "dfc-m:"
104
104
  ).sub(
105
- "https://github.com/datafoodconsortium/taxonomies/releases/latest/download/measures.rdf#",
105
+ "http://w3id.org/dfc/taxonomies/measures.rdf#",
106
106
  "dfc-m:"
107
107
  )
108
108
  SKOSParser.concepts[id]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datafoodconsortium-connector
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.pre.beta7
4
+ version: 2.0.0.pre.beta8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maxime Lecoq