Parse this person name:

Riley, Megan P. (Megan Patricia), 1856-1914
user
first_name: Megan
last_name: Riley
middle_names:
- Patricia
temporal:
- start: 1856
  end: 1914
  type: life_span
titles: []
extra_info: []
assistant