mapping-commons / sssom-py

Python toolkit for SSSOM mapping format
https://mapping-commons.github.io/sssom-py/index.html#
MIT License
49 stars 12 forks source link

Refactor OBO Graph JSON parser #474

Closed cthoyt closed 9 months ago

cthoyt commented 9 months ago

This PR does the following:

  1. massively reduces indentation
  2. renames variables in a nice way
  3. refactors out shared code into a helper function
  4. It also changes so it doesn't add an empty string for subject or object label, and instead doesn't add anything
hrshdhgd commented 9 months ago

Just ran it and the differences aren't major.