There are quite a few interactive editions of Ulysses out there:
- The Joyce Project
- Infinite Ulysses - machine-readable data is available as PHP objects exported from Drupal
- This older edition at Columbia - an unfinished student project?
At least the first two are licenced under some form of CC license, so aggregating the data would probably work, so long as we maintain attribution.