Parse this person name:

Joseph G. (Joseph Gregory) Obrien, 1814-1882
user
first_name: Joseph
last_name: Obrien
middle_names:
- Gregory
temporal:
- start: 1814
  end: 1882
  type: life_span
titles: []
extra_info: []
assistant