top of page

Prosopography of Harry Potter Characters

Xianzhang & Xueying
Apr 4, 2020
5 min read

Updated: Apr 22, 2020

Edited by: Xianzhang Wang and Xueying Wang


Please download and open the HTML file with Safari or Chrome for a better display:


Harry Potter is a series of fantasy novels written by British author J. K. Rowling. The main character is Harry Potter. At the age of eleven, he attends the Hogwarts School of Witchcraft and Wizardry where he meets his best friends, Hermione Granger and Ron Weasley, and also his rival Draco Malfoy. The headmaster of the school, also as Harry Potter’s mentor, is Albus Dumbledore. Professors in this school include Minerva McGonagall, Rubeus Hagrid and Severus Snape. The main story concerns Harry Potter’s struggle against Lord Voldemort and his followers called Death Eaters. Bellatrix Lestrange is one of Voldemort's most devoted Death Eaters. There are four houses in Hogwarts, and the characters mentioned above are all from Gryffindor and Slytherin. In the other two houses, the main character is Luna Lovegood from Ravenclaw and Cedric Diggory from Hufflepuff.

In this project, we seek to explore the prosopography of these characters by developing a digital project framework. Our project includes an OpenRefine file, an HTML file, a TEI-XML version prosopography with XSLT transformation, an RDF file, and also some tables and visualizations. By building our project on Harry Potter, we hope to learn the aspects and process of creating digital humanities projects.

Preparation

In the first stage of our project, we considered what information we want to include and how we want to display the information.


The characters we chose to explore from Harry Potter series include:

  • Four main young wizard characters: Harry Potter, Ron Weasley, Hermione Granger and Draco Malfoy;

  • Four main adult wizard characters: Albus Dumbledore, Rubeus Hagrid, Lord Voldemort, and Severus Snape;

  • Four supporting characters: Minerva McGonagall, Bellatrix Lestrange, Luna Lovegood, and Cedric Diggory.

To decide what specific information about the characters we want to cover in the digital project, we did some research on the Wikidata pages of these characters to find the interesting properties. We decided to cover ten properties in the project: character name, sex or gender, member of, date of birth, place of birth, date of death, place of death, father, mother, and spouse.


OpenRefine Project


We uploaded the excel file with the names of the characters that we seek to explore. In the OpenRefine, we reconciled the names from Wikidata and added columns from the reconciled values based on the ten properties we chose as the original file (Figure 1). When reconciling the “member of” column, we configured the column in order to make sure that only the first information (the House name) could be kept. For some characters whose House name is not the first information in “member of”, we manually edited the cells by adding the correct House information.


Figure 1: Part of the original OpenRefine file


After reconciling, we adjusted some other information. For the dates in “date of birth” column and “date of death” column, we changed the format of dates to a normal format of DD/MM/YYYY. For other blank cells, we tried to fill some of them by searching for the information from websites including Wikipedia, Harry Potter Wiki by Fandom, and also Wizzarding World which is the official website of Harry Potter. Finally, we got the adjusted OpenRefine file (Figure 2).


Figure 2: Adjusted OpenRefine file


HTML File

For the HTML file, we exported the HTML table from the OpenRefine project to include all the information about these characters. The original HTML table exported from OpenRefine (Figure 3) is simple and displayed in a horizontal way. Since most of the web pages require users to scroll up and scroll down the page, we transposed the table to a vertical way and separated the table into three tables for a better display. To do this, we found a solution of JavaScript on the internet and adjusted it for our HTML.


Figure 3: Original HTML table exported from OpenRefine


In order to decorate our web page, we also chose a background picture and a title picture which both have the theme of Harry Potter. This picture selecting process seems easy but was actually time-consuming since the main content of the background picture needs to be on the two sides of the picture for a better display on our web page. Also, we needed to consider the color palette and picture style to make sure the pictures fit our web page.

We then applied a white table background to make the text in the tables readable on the background picture. The alignment, position, and cell background color of the tables were also taken into consideration when using the CSS to adjust the tables.

At the beginning of the page, in order to balance the page, we also added a navigation bar and put the hyperlinks of the websites where we collected the information about these characters. Some other adjustments were also employed for the final HTML file (Figure 4), including the font, the font size, color palette of all elements and hyperlinks.


Figure 4: Part of the final HTML file


Visualization File

Apart from using tables to exhibit the prosopography of these characters, we also seek to find how many times these characters appear in the Harry Potter series and visualize it.


We used Voyant to analyze the text of each book in the Harry Potter series and export the frequency of each word to the excel file (Figure 5). Then, we added the frequency of surname and given name of each character together (Figure 6). The method of adding is not entirely appropriate since the surname could refer to the character and also this character’s other family members. However, we believe when this character’s family member is mentioned in a part of the novel, this part would also be related to the character’s story. Also, for Lord Voldemort, we added the frequency of words “Tom” and “Riddle” because “Tom Riddle” is the name Lord Voldemort once used.


Figure 5: Part of the frequency of each word excel file exported from Voyant

(Harry Potter and the Philosopher’s Stone)

Figure 6: Frequency of each character excel file


After calculating the frequency these characters appear in each book, we used the visualization tool Tableau and created a rank chart to visualize it (Figure 7). We believe the rank chart is a right choice since the lines would be much overlapped if using line chart.


Figure 7: Visualization of the frequency of characters in each book of the series

TEI-XML File

For the TEI-XML file, we did some research on the main elements we may cover in the TEI. We have the TEI Guidelines as our instructions, and we found out that there is no element for parents and spouse of the characters, so we did not include that part in the TEI project. The reason why we not just only created the HTML file but also the TEI file is that the TEI has more specific elements than HTML, so that we could describe a term more specifically and we could cover more details of what something is.

For example, as the character’s name, we described it as both given name and surname in the TEI file as well as their specific marital status. We also include a special teiHeader and title introducing the project in the TEI file. Overall, we created a simple structured TEI project document (Figure 8), and we have learned to begin at a very basic level, then make the several parts together, and finally build a full TEI document gradually.

Figure 8: Part of the TEI File

RDF File

For the RDF project, we adopted the method introduced in the course slides and added the extension to OpenRefine. To edit the RDF skeleton, we uploaded the schema.nt file and added the prefixes to each column index of our project (Figure 9). We consulted the schema documentation to decide the right prefix. Finally, we exported the file as RDF/XML (Figure 10).


Figure 9: RDF Schema skeleton


Figure 10: Part of the RDF file

 
 
 

Comments


© 2023 by Salt & Pepper. Proudly created with Wix.com

bottom of page