-
-
Notifications
You must be signed in to change notification settings - Fork 729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Match product taxons to DFC product types #10809
Comments
From @kirstenalarsen
|
From Olivier
|
From @RaggedStaff
|
For a start I have been trying to just match the root Product type (Baker, Drink, Dairy product etc..) but I am running into issue with the connector. DfcLoader.connector.PRODUCT_TYPES.DRINK.class.name
"DataFoodConsortium::Connector::SKOSInstance"
DfcLoader.connector.PRODUCT_TYPES.DRINK.SOFT_DRINK.LEMONADE.class.name
"DataFoodConsortium::Connector::SKOSConcept" Unfortunately the I think it's related to this issue: datafoodconsortium/connector-ruby#13 @mkllnk I am not sure what's the next step , should I try monkey patch the connector so we can move forward (and raise a PR for the connector) ? or wait for the connector to be fixed ? |
I wonder if the next version of the connector will solve this problem. I think that it's getting rid of the product type class and everything is just an skos concept. I can't remember properly but it's worth waiting for the next version. Unfortunately, the next version of the connector has a bug that prevents even the loading of product types... That may be fixed though: I haven't tried that branch yet. |
I had a quick look at the branch but it only seems to fix your issue, it doesn't look like they fixed anything else in the parser. |
@gracejam just checking you have found your way to this issue, just re. the analysis of OFN Aus product categories and how we might handle migration |
Great work, @rioug. Shall we patch the connector to fix this? I don't think that Maxime has much time for this. |
👍 we can chat about it tomorrow. |
Noting for future work of changing OFN categories to align with DFC: |
I open a PR to fix the |
ℹ️ This is a funded feature. Please use the Clockify project with the following name when working on this, including review and test:
#9170 OFN DFC Products
Description
Related to:
Within OFN the instance admin can set up the list of product categories (taxons). A product has a list of taxons and one primary taxon. When we export to another DFC app or import from another DFC app, we want to map these taxons to DFC product types. They are defined in:
The DFC Connector provides these in a tree through methods that look like constants. For example:
Acceptance Criteria & Tests
Solution ideas
We could try to match by name. This would currently fail in most cases. We can rename categories in OFN to match the DFC name but the DFC standard currently contains only English and French. Other languages would, at least currently, not work.Spree::Taxon
to link to the DFC category. Once instance managers copied the links to DFC categories into OFN then it can be used in the DFC export and import.I think that the last option would be the best long-term but it also requires a mapping of current categories to DFC categories for the migration. So solution 2 could be a good intermediate step to achieve the mapping and see if we can map everything to the DFC.
The text was updated successfully, but these errors were encountered: