Skip to content
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

Abbreviation recasing: use all abbreviations #153

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from

Conversation

joeflack4
Copy link
Contributor

@joeflack4 joeflack4 commented Sep 23, 2024

resolves #129

Changes

Abbreviation recasing: use all abbrevs

  • Update: Now considering all abbreviations when checking a title and uppercasing them. Previously was only looking at the first preferred symbol.
  • Update: Refactored, added comments and todos, simplified code.
  • Bug fix: Was not actually uppercasing previously. The .replace() usage was incorrect.

Results:
diff.diff.zip (also w/ .owls on google drive)

- Update: Now adding synonyms for alt & included symbols, w/ type of mondo#abbreviation.
- Misc updates: Todo comments. Renamed variables/methods for consistency and accuracy. Refactored some things.
- In previous commits, stated that this would also include 'included' symbols, but for now we have decided not to proceed with that.
- Update: Now adding synonyms for alternative symbols, w/ type of mondo#abbreviation.
- Update: Now stripping the text ', INCLUDED' from symbols. Previously was only doing for titles.
- Update: For included & alternative titles/symbols ending in ', FORMERLY', these are being added as relatedSynonyms, and also being marked as owl:deprecated.
- Misc updates: Updated some comments and codestyle.
- Bug fix: mondo#ABBREVIATION URI
- Update: Typo and codestyle of cleanup_label()
- Update: Docstring to make clearer
- Update: Typo fix
- Update: Now "former" included titles/symbols are also being processed
- Update: Refactor: Cleaned some redundancy in how this was being called. Simplified code. Modularized other parts of code.
@joeflack4 joeflack4 changed the base branch from main to title-cleaning-updates September 23, 2024 04:25
@joeflack4 joeflack4 self-assigned this Sep 23, 2024
@joeflack4 joeflack4 added the bug Something isn't working label Sep 23, 2024
- Update: Now considering all abbreviations when checking a title and uppercasing them. Previously was only looking at the first preferred symbol.
- Update: Refactored, added comments and todos, simplified code.
- Bug fix: Was not actually uppercasing previously. The .replace() usage was incorrect.
@joeflack4 joeflack4 changed the base branch from title-cleaning-updates to develop November 6, 2024 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Capitalization of detected symbols in "Alternative title(s)" and "Included title(s)" may be incorrect
1 participant