Parse this person name:

Niccolò S. (Niccolò Sophia) Castelli, 1840-1896
user
first_name: Niccolò
last_name: Castelli
middle_names:
- Sophia
temporal:
- start: 1840
  end: 1896
  type: life_span
titles: []
extra_info: []
assistant