mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
SKOS parser, user shorten version for product types URI
This commit is contained in:
@@ -90,8 +90,13 @@ module DataFoodConsortium
|
||||
prefLabels: element.label
|
||||
)
|
||||
skosConcept.semanticType = element.type
|
||||
# Gaetan's fix for productTypes
|
||||
id = element.id.sub(
|
||||
"https://github.com/datafoodconsortium/taxonomies/releases/latest/download/productTypes.rdf#",
|
||||
"dfc-pt:"
|
||||
)
|
||||
# Maikel's patch
|
||||
self.class.concepts[element.id] = skosConcept
|
||||
self.class.concepts[id] = skosConcept
|
||||
skosConcept
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user