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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 40d13c9e4e3d0853c5c03a24ce6ecbda52e8e629e968f6dd488a3ca35b9c2cb9
|
|
4
|
+
data.tar.gz: f5e93df5029cd0ba0648b18940dc39b4ff18d2d6e3197f2d22857fcf6f0094a1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
"
|
|
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://
|
|
103
|
+
"http://w3id.org/dfc/taxonomies/v2.0.0/measures.rdf#", "dfc-m:"
|
|
104
104
|
).sub(
|
|
105
|
-
"
|
|
105
|
+
"http://w3id.org/dfc/taxonomies/measures.rdf#",
|
|
106
106
|
"dfc-m:"
|
|
107
107
|
)
|
|
108
108
|
SKOSParser.concepts[id]
|