-
Notifications
You must be signed in to change notification settings - Fork 149
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
Prefer default language values for some Literal nodes #143
Prefer default language values for some Literal nodes #143
Conversation
* dct:title (dataset and distribution) * dct:description (dataset and distribution) * foaf:name in dct:publisher * vcard:fn in dcat:contactPoint
Thanks @seitenbau-govdata. I wonder if this behavior (picking the default language) should be the default for all fields, not just the 4 you included here (so not having to pass |
@amercader We thought about that as well. It would make parsing more reproducible as no more random values would be picked in case of multiple languages. But as we weren't sure about the effects of picking the default language for all In case we use it for all elements, we would drop the whole |
@amercader I think it would make sense to have this as the default for all fields, since the We currently use a similar mechanism in #124 to get some values as multilingual dict. But I think it's a bit different there, as we actually change the returned value ( |
The language handling is used for all Regarding the fallback behavior, assume two nodes exist in the graph:
What do you think about that behavior @amercader @metaodi ? |
@seitenbau-govdata I think this is fine. Why does this only apply to |
@metaodi The reason is that the class |
@amercader and @metaodi Happy New Year! Do you have any comments about our latest comment? We would like to update ckanext-dcat in our installation to the latest version. And these are the last changes that should be included in the new version. So we are able to remove the patched files and close the issue in our repo GovDataOfficial/ckanext-dcatde#6. 😉 |
@seitenbau-govdata I still think it would be more pythonic to not use |
@metaodi Thanks for merging it. Now it would be perfect if we could have a new version from the master. Maybe you could release a new version? |
@seitenbau-govdata I just released 0.0.9, have fun! 😄 |
@metaodi Thanks a lot! |
If a graph contains multiple languages for a node, a random node is currently used when parsing.
This introduces the option to prefer the configured default language for some nodes:
The changes are related to #51 and #124.