I had thought there was one trial with one or more crimes, but in fact each crime is tried separately and then the overall file covering all the trial results is treated for respite and outcome.
We're trying to represent and distinguish two things:
1) the overall legal process involving the criminal, one or more charges, respite(s), outcome(s)
2) the legal process specific to one charge
and then figure which of each of our fields of information belongs with each of those two processes.
Met with SimonD and had email exchange. As of right now, it appears that:
Here's the XML structure I have now, which isn't sophisticated enough:
<case>
<trial>
<judge>Buller-F</judge>
<jury>
<jury_type>M</jury_type>
<jury_subtype>1</jury_subtype>
</jury>
<criminal>
<surname>Hetherington</surname>
<given_names>John</given_names>
<aliases>
<alias>John Lewis Brown</alias>
</aliases>
<age></age>
<gender>Male</gender>
</criminal>
<crimes>
<crime>
<crime_text>Housebreak</crime_text>
<crime_normalized>Housebreak</crime_normalized>
<crime_group>StealInDwelling</crime_group>
</crime>
<crime>
<crime_text>Returning</crime_text>
<crime_normalized>ReturnFromTransportation</crime_normalized>
<crime_group>Miscellaneous</crime_group>
</crime>
</crimes>
<respites>
<respite>
<respite_text>To Die (RR)</respite_text>
<respite_normalized>SpecifiedPunishment</respite_normalized>
<respite_delay></respite_delay>
<respite_punishment>ToDie</respite_punishment>
</respite>
</respites>
<mercy_appeals>
</mercy_appeals>
<outcomes>
<outcome>
<outcome_text>Executed</outcome_text>
<outcome_normalized>Executed</outcome_normalized>
<outcome_group>Executed</outcome_group>
<outcome_duration>Death</outcome_duration>
<outcome_date>1791Feb23</outcome_date>
<execution_mode>SimpleHanging</execution_mode>
<outcome_location></outcome_location>
<outcome_exceptional></outcome_exceptional>
<outcome_ref>HO 13/8, pp.173-4</outcome_ref>
</outcome>
</outcomes>
<trial_ref>OBSP 1790-1, pp.9-10 (1.7), 10-12 (1.9)</trial_ref>
<trial_printed_sources></trial_printed_sources>
<trial_other_documents></trial_other_documents>
<trial_notes></trial_notes>
</trial>
</case>
Structure based on Simon's email of 100924 2:07pm
<case>
<trial_group>
<criminal>
<surname>Hetherington</surname>
<given_names>John</given_names>
<aliases>
<alias>John Lewis Brown</alias>
</aliases>
<age></age>
<gender>Male</gender>
</criminal>
<trial>
<judge>Buller-F</judge>
<jury>
<jury_type>M</jury_type>
<jury_subtype>1</jury_subtype>
</jury>
<crime>
<crime_text>Housebreak</crime_text>
<crime_normalized>Housebreak</crime_normalized>
<crime_group>StealInDwelling</crime_group>
</crime>
<mercy_appeals>
</mercy_appeals>
<!-- <trial_ref>OBSP 1790-1, pp.9-10 (1.7), 10-12 (1.9)</trial_ref> -->
<trial_ref>OBSP 1790-1, pp.9-10</trial_ref>
</trial>
<trial>
<judge>Buller-F</judge>
<jury>
<jury_type>M</jury_type>
<jury_subtype>1</jury_subtype>
</jury>
<crime>
<crime_text>Returning</crime_text>
<crime_normalized>ReturnFromTransportation</crime_normalized>
<crime_group>Miscellaneous</crime_group>
</crime>
<mercy_appeals>
</mercy_appeals>
<!-- <trial_ref>OBSP 1790-1, pp.9-10 (1.7), 10-12 (1.9)</trial_ref> -->
<trial_ref>OBSP 1790-1, pp.10-12</trial_ref>
</trial>
<respites>
<respite>
<respite_text>To Die (RR)</respite_text>
<respite_normalized>SpecifiedPunishment</respite_normalized>
<respite_delay></respite_delay>
<respite_punishment>ToDie</respite_punishment>
</respite>
</respites>
<outcomes>
<outcome>
<outcome_text>Executed</outcome_text>
<outcome_normalized>Executed</outcome_normalized>
<outcome_group>Executed</outcome_group>
<outcome_duration>Death</outcome_duration>
<outcome_date>1791Feb23</outcome_date>
<execution_mode>SimpleHanging</execution_mode>
<outcome_location></outcome_location>
<outcome_exceptional></outcome_exceptional>
<outcome_ref>HO 13/8, pp.173-4</outcome_ref>
</outcome>
</outcomes>
<trial_group_printed_sources></trial_printed_sources>
<trial_group_other_documents></trial_other_documents>
<trial_group_notes></trial_notes>
</trial_group>
</case>
Here's the table modifications I'm going to need:
[ ] = obsolete field, remove from table
* * = new field or table, add to table
trials
trial_id
[case_id_fk]
trial_reference
[trial_notes]
jury_id_fk
[criminal_id_fk]
[recorder_report_id_fk]
judge_id_fk
*trial_file_id_fk* integer
*trial_files*
*trial_file_id (integer, primary key, generated by xslt)
*case_id_fk (was in trial table)
*criminal_id_fk (was in trial table)
*recorder_report_id_fk (was in trial table)
*trial_file_printed_source (renamed, was in trial table)
*trial_file_other_document (renamed, was in trial table)
*trial_file_notes (renamed, was in trial table)
respites
*trial_file_id_fk*
[trial_id_fk]
outcomes
*trial_file_id_fk*
[trial_id_fk]
Trial-oriented presentation:
- each trial appears as a record in the display with fields
criminal_name |
crime_text |
judge_name |
jury_code |
>1 trials in file |
>0 mercy appeals |
respiteFINAL_text |
outcomeFINAL_text
- details shows
criminal_name | aliases | criminal_gender | criminal_age
[1...n trials in trial_file]
crime_text | crime_normalized
[0...n] mercy_appeal_who | mercy_appeal_why
trial_reference
[1...n] respite_text | respite_normalized
[1...n] outome_normalized | outcome_date | outcome_reference, outcome_location | outcome_exceptional | execution_mode
trial_file_printed_sources | trial_file_other_documents
trial_file_notes
- alternate row colours based on trial_file value (i.e. all trials in a file share same bg colour)
Trial_file-oriented presentation
- each trial_file appears as record in display with fields
criminal_name |
[1...n] crime_normalized for each trial in this trial_file |
[1...n] respite_text |
[1...n] outcome_text
- details shows
criminal_name | aliases | criminal_gender | criminal_age
[1...n trials in this trial_file]
crime_text | crime_normalized | judge_name | jury_code
[0...n] mercy_appeal_who | mercy_appeal_why
trial_reference
[1...n] respite_text | respite_normalized
[1...n] outcome_normalized, outcome_date, outcome_reference, outcome_location, outcome_exceptional, execution_mode
trial_file_printed_sources
trial_file_other_documents
trial_file_notes