-
Notifications
You must be signed in to change notification settings - Fork 26
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
Person model, add "name" attribute [Was: [Bug]: Unable to put initials only for identifiedBy when using DwC-A import] #4063
Comments
Looks the name is parsable as-is: 3.3.4 :001 > DwcAgent.parse("P., A.V.")
=> [#<struct Namae::Name family="P.", given="A.V.", suffix=nil, particle=nil, dropping_particle=nil, nick=nil, appellation=nil, title=nil>]
3.3.4 :002 > DwcAgent.parse("D., C.J.")
=> [#<struct Namae::Name family="D.", given="C.J.", suffix=nil, particle=nil, dropping_particle=nil, nick=nil, appellation=nil, title=nil>]
3.3.4 :003 > Maybe |
Completely unparsable text result is field be interpreted as blank. Not sure if we wan to change that at the expense of more frequent errored records? I couldn't reproduce the problem with |
Sorry, I can actually reproduce the problem! The importer after parsing the name it also cleans it with this third-party code: https://github.com/bionomia/dwc_agent/blob/6c87e49ff877afdf9fddffd21c0794e9acec719c/lib/dwc_agent/cleaner.rb#L27 # Cleans the passed-in namae object from the parse method and
# re-organizes it to better match expected Darwin Core output.
#
# @param parsed_namae [Namae::Name] a Namae object
# @return Namae::Name [Object] a new Namae object I don't feel confident just removing this cleaner (@mjy?). The minimum requirement for parsed names is that the family name be complete, given names can be just initials. |
@LocoDelAssembly Right, there is much more benefit to keep dwc_agent in the loop. The real long-term solution is to include a |
Should it help, a newer version of
|
There are many consequences of adding
|
Indeed, there's a delicate balancing act to accommodate storage, rendering, and search while not confusing users when all three may have competing needs or rules. For what it's worth, it appears Wikidata has also grappled with this while they also layer on the challenge of localization and language. See https://www.wikidata.org/wiki/Help:Default_values_for_labels_and_aliases as their proposal to use |
You may not need any more rationale for a "name" attribute in your Person model, but here is an ORCID profile that was just recently added to Bionomia, https://orcid.org/0000-0002-5373-2585. It looks as if the journals in which they and their colleagues have published their work have attempted various gymnastics to accommodate monomynous names. |
Steps to reproduce the bug
Screenshot
Expected behavior
No response
Additional Screenshots
No response
Environment
Production
Sandbox Used
No response
Version
v0.44.0
Browser Used
firefox
The text was updated successfully, but these errors were encountered: