{"id":1284,"date":"2020-01-28T13:56:30","date_gmt":"2020-01-28T13:56:30","guid":{"rendered":"http:\/\/persiababylonia.org\/archives\/?page_id=1284"},"modified":"2020-02-04T16:14:25","modified_gmt":"2020-02-04T16:14:25","slug":"gephi-guidelines-for-cuneiform-archives-part-2-cleaning-your-dataset","status":"publish","type":"page","link":"http:\/\/persiababylonia.org\/archives\/methods\/gephi-guidelines-for-cuneiform-archives-part-2-cleaning-your-dataset\/","title":{"rendered":"Gephi Guidelines for Cuneiform Archives. Part 2: Cleaning your Dataset"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p><em>This is Part 2 in a series of blog posts that describe how to use Gephi for <span class='tooltipsall tooltipsincontent classtoolTips4'>social network analysis<\/span> (SNA) when using cuneiform sources. This blog post describes how to clean up a dataset acquired from Prosobab (<\/em><a href=\"https:\/\/prosobab.leidenuniv.nl\/\"><em>https:\/\/prosobab.leidenuniv.nl<\/em><\/a><em>), but it can also be helpful for other datasets.<\/em><\/p>\n<p><a href=\"http:\/\/persiababylonia.org\/archives\/?page_id=1255&amp;preview=true\" target=\"_blank\" rel=\"noopener noreferrer\"><em>Part 1: Acquiring a Dataset via Prosobab<\/em><\/a><em><br \/>\n<\/em><em>Part 2: Cleaning your Dataset<br \/>\n<\/em><a href=\"http:\/\/persiababylonia.org\/archives\/?page_id=1293&amp;preview=true\" target=\"_blank\" rel=\"noopener noreferrer\"><em>Part 3: Data Preparation for Gephi<\/em><em><br \/>\n<\/em><\/a><a href=\"http:\/\/persiababylonia.org\/archives\/?page_id=1311&amp;preview=true\" target=\"_blank\" rel=\"noopener noreferrer\"><em>Part 4: Data Import for a 2-mode Network<\/em><em><br \/>\n<\/em><\/a><em><a href=\"http:\/\/persiababylonia.org\/archives\/?page_id=1319&amp;preview=true\" target=\"_blank\" rel=\"noopener noreferrer\">Part 5: Transforming a 2-mode Network into a 1-mode Network<\/a><\/em><\/p>\n<p><em>See also the theoretical guide that describes how Assyriologists can apply SNA to cuneiform sources \u2014 <\/em><a href=\"http:\/\/persiababylonia.org\/archives\/methods\/social-network-analysis-and-cuneiform-archives\/\" target=\"_blank\" rel=\"noopener noreferrer\"><em>Social Network Analysis and Cuneiform Archives<\/em><\/a><em>. <\/em><\/p>\n<p><strong>Introduction<\/strong><\/p>\n<p>By following the steps described in the box below, you will end up with a clean standard dataset that forms the basis of Social Network Analysis data. In case you work with another program than Gephi (e.g. Vizone or UCINET), then this might be all you need to do with your data in terms of cleaning it up and preparation for import. If you choose to use Gephi, then you need additional data preparation that is described in <a href=\"http:\/\/persiababylonia.org\/archives\/?page_id=1293&amp;preview=true\" target=\"_blank\" rel=\"noopener noreferrer\">Part 3: Data Preparation for Gephi<\/a>.<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"532\"><strong>Tips for cleaning up Prosobab data in Excel:<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"532\"><strong>1. Filter your data<\/strong><\/p>\n<p>By using the filter, you will not mess up your data.<\/p>\n<p>There are two ways to filter your data:<\/p>\n<p>a) Select all tables and rows (Ctrl+A) and select the tab <em>Home &gt; Sort<\/em>&amp;<em>Filter &gt; Filter<\/em>.<\/p>\n<p><em><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-1301\" src=\"http:\/\/persiababylonia.org\/archives\/wp-content\/uploads\/2019\/12\/Filter-a.png\" alt=\"\" width=\"1676\" height=\"767\" srcset=\"http:\/\/persiababylonia.org\/archives\/wp-content\/uploads\/2019\/12\/Filter-a.png 1676w, http:\/\/persiababylonia.org\/archives\/wp-content\/uploads\/2019\/12\/Filter-a-300x137.png 300w, http:\/\/persiababylonia.org\/archives\/wp-content\/uploads\/2019\/12\/Filter-a-768x351.png 768w, http:\/\/persiababylonia.org\/archives\/wp-content\/uploads\/2019\/12\/Filter-a-1024x469.png 1024w\" sizes=\"(max-width: 1676px) 100vw, 1676px\" \/><\/em><\/p>\n<p>b) From the menu bar of the program, select the tab <em>Data &gt; Autofilter<\/em>.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-1302\" src=\"http:\/\/persiababylonia.org\/archives\/wp-content\/uploads\/2019\/12\/Filter-b.png\" alt=\"\" width=\"1662\" height=\"766\" srcset=\"http:\/\/persiababylonia.org\/archives\/wp-content\/uploads\/2019\/12\/Filter-b.png 1662w, http:\/\/persiababylonia.org\/archives\/wp-content\/uploads\/2019\/12\/Filter-b-300x138.png 300w, http:\/\/persiababylonia.org\/archives\/wp-content\/uploads\/2019\/12\/Filter-b-768x354.png 768w, http:\/\/persiababylonia.org\/archives\/wp-content\/uploads\/2019\/12\/Filter-b-1024x472.png 1024w\" sizes=\"(max-width: 1662px) 100vw, 1662px\" \/><\/p>\n<p>Filtered data columns get little buttons with arrows next to their heading and they will keep the information in one row together when any of the columns is reordered.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-1303\" src=\"http:\/\/persiababylonia.org\/archives\/wp-content\/uploads\/2019\/12\/Filter-options.png\" alt=\"\" width=\"1676\" height=\"781\" srcset=\"http:\/\/persiababylonia.org\/archives\/wp-content\/uploads\/2019\/12\/Filter-options.png 1676w, http:\/\/persiababylonia.org\/archives\/wp-content\/uploads\/2019\/12\/Filter-options-300x140.png 300w, http:\/\/persiababylonia.org\/archives\/wp-content\/uploads\/2019\/12\/Filter-options-768x358.png 768w, http:\/\/persiababylonia.org\/archives\/wp-content\/uploads\/2019\/12\/Filter-options-1024x477.png 1024w\" sizes=\"(max-width: 1676px) 100vw, 1676px\" \/><\/td>\n<\/tr>\n<tr>\n<td width=\"532\"><strong>2. Delete the duplicates of the documents<\/strong><\/p>\n<p>Your data might contain documents which are written on two or more cuneiform tablets (i.e. copies). If you downloaded the data from Prosobab, then the duplicates are found in those rows which contain no name attestations and therefore no individuals, and are marked with a \u201c-\u201d for <em>Personal name<\/em>, <em>Patronym<\/em> and <em>Family name<\/em>. Such duplicate tablets without name attestations should automatically be the first rows of your data unless you have reordered it. It is better to delete them now as they will not add to your network but might complicate the results you will see.<\/td>\n<\/tr>\n<tr>\n<td width=\"532\"><strong>3. Clean up the <em>Type and objects<\/em> column<\/strong><\/p>\n<p>In the search screen of Prosobab, the Type and objects are combined. That is why the word \u201cSubtype\u201d finds itself before the document subtype, i.e. \u201csubtypepromissory note\u201d or \u201csubtypeoath\u201d. If you were to display the subtype of the document in Gephi as an edge, the lengthy descriptions can make the graph crowded. You can skip this step if that does not concern you.<\/p>\n<p>1) Select the whole column of <em>Type and objects<\/em>.<\/p>\n<p>2) Click on the tab <em>Edit<\/em> &gt; <em>Find<\/em> &gt; <em>Replace<\/em>\u2026<\/p>\n<p>3) Type in \u201cSubtype\u201d (without quotation marks) and replace it with nothing by using the \u201cReplace All\u201d button.<\/td>\n<\/tr>\n<tr>\n<td width=\"532\"><strong>4. Delete <em>Probability<\/em> column<\/strong><\/p>\n<p>This column will be exported from Prosobab automatically with the <em>PID\u00a0<\/em>column, but you will not need it.<\/td>\n<\/tr>\n<tr>\n<td width=\"532\"><strong>5. Delete the kings<\/strong><\/p>\n<p>These are not individuals who actually interact within the document \u2014 they are merely mentioned as part of the date formulae or in the oaths.<\/p>\n<p>1) Reorder the column <em>Role <\/em>alphabetically.<\/p>\n<p>2) Delete all rows that contain roles \u201cking in date\u201d or \u201cking in oath\u201d.<\/td>\n<\/tr>\n<tr>\n<td width=\"532\"><strong>6. Check the PID numbers<\/strong><\/p>\n<p>In principle, the public data in Prosobab has all the name attestations identified as individuals. However, you should check if all your name attestations have an entry (i.e. a number) in the <em>PID<\/em> column.<\/p>\n<p>1) Reorder <em>PID<\/em> column and check what is the highest number used.<\/p>\n<p>2) Give even a higher unique number to those individuals who do not have a PID number.<\/td>\n<\/tr>\n<tr>\n<td width=\"532\"><strong>7. Merging the columns with names<\/strong><\/p>\n<p>If you downloaded your data from Prosobab, you will have the names of the individuals in three columns (<em>Name<\/em>, <em>Patronym<\/em>, <em>Family name<\/em>). These should be merged into one. According to Assyriological convention, a person\u2019s full name is e.g. written as B\u0113l-r\u0113manni\/Mu\u0161eb\u0161i-Marduk\/\/\u0160ang\u00fb-<span class='tooltipsall tooltipsincontent classtoolTips114'>\u0160ama\u0161<\/span>, which is read as B\u0113l-r\u0113manni, son of Mu\u0161eb\u0161i-Marduk, descendant of \u0160ang\u00fb-\u0160ama\u0161 (family).<\/p>\n<p>Excel can combine the data from several columns with a formula. To do this, follow the steps below that describe how to use the ampersand symbol (&amp;) for merging cells:<strong>\u00a0<\/strong><\/p>\n<p><strong>1) Create another column as the first column of the sheet.<\/strong><\/p>\n<p><strong>2) Use the formula to merge cells.<\/strong><\/p>\n<p>&gt; Select the cell A1 in the empty column you created.<\/p>\n<p>&gt; In this cell, type = and select personal name from this row.<\/p>\n<p>&gt; Type &amp;\u201d\/\u201d&amp; and select patronym from this row.<\/p>\n<p>&gt; Type &amp;\u201d\/\/\u201d&amp; and select family name from this row.<\/p>\n<p>Your full formula should look like this: =B2&amp;&#8221;\/&#8221;&amp;C2&amp;&#8221;\/\/&#8221;&amp;D2.<strong>\u00a0<\/strong><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-1296\" src=\"http:\/\/persiababylonia.org\/archives\/wp-content\/uploads\/2019\/12\/1-Formula-merge.png\" alt=\"\" width=\"874\" height=\"293\" srcset=\"http:\/\/persiababylonia.org\/archives\/wp-content\/uploads\/2019\/12\/1-Formula-merge.png 874w, http:\/\/persiababylonia.org\/archives\/wp-content\/uploads\/2019\/12\/1-Formula-merge-300x101.png 300w, http:\/\/persiababylonia.org\/archives\/wp-content\/uploads\/2019\/12\/1-Formula-merge-768x257.png 768w\" sizes=\"(max-width: 874px) 100vw, 874px\" \/><\/p>\n<p>&gt; Press \u201center\u201d. Now the three columns should be combined in the column in which you entered the formula.<strong>\u00a0<\/strong><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-1297\" src=\"http:\/\/persiababylonia.org\/archives\/wp-content\/uploads\/2019\/12\/2-Formula-merge.png\" alt=\"\" width=\"877\" height=\"290\" srcset=\"http:\/\/persiababylonia.org\/archives\/wp-content\/uploads\/2019\/12\/2-Formula-merge.png 877w, http:\/\/persiababylonia.org\/archives\/wp-content\/uploads\/2019\/12\/2-Formula-merge-300x99.png 300w, http:\/\/persiababylonia.org\/archives\/wp-content\/uploads\/2019\/12\/2-Formula-merge-768x254.png 768w\" sizes=\"(max-width: 877px) 100vw, 877px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>3) Apply the formula to the rest of the column<\/strong>. Click on the cell which now holds a successful combination of names, and drag the cell down to fill the whole column with merged values.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-1300\" src=\"http:\/\/persiababylonia.org\/archives\/wp-content\/uploads\/2019\/12\/5-Formula-paste.png\" alt=\"\" width=\"726\" height=\"295\" srcset=\"http:\/\/persiababylonia.org\/archives\/wp-content\/uploads\/2019\/12\/5-Formula-paste.png 726w, http:\/\/persiababylonia.org\/archives\/wp-content\/uploads\/2019\/12\/5-Formula-paste-300x122.png 300w\" sizes=\"(max-width: 726px) 100vw, 726px\" \/><\/p>\n<p><strong>4) Copy the columns as values not formulas.<\/strong> The merged column might cause problems because it relies on formulas. Create another column to copy this data into. Note that you have to copy the values, not the formulas, into this new column. To do this, select all the rows containing formulas, and click on the newly created empty column. Then go to the main menu and select <em>Edit<\/em> &gt; <em>Paste<\/em><em>Special<\/em>\u2026 &gt; a new window will open. From there, click on the button <em>Values<\/em>. This pastes the values of the merged columns into a newly created column. By this point, you are ready to delete both the column with the formulas and the original columns which you used to merge your data.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-1299\" src=\"http:\/\/persiababylonia.org\/archives\/wp-content\/uploads\/2019\/12\/4-Formula-paste.png\" alt=\"\" width=\"724\" height=\"438\" srcset=\"http:\/\/persiababylonia.org\/archives\/wp-content\/uploads\/2019\/12\/4-Formula-paste.png 724w, http:\/\/persiababylonia.org\/archives\/wp-content\/uploads\/2019\/12\/4-Formula-paste-300x181.png 300w\" sizes=\"(max-width: 724px) 100vw, 724px\" \/><\/p>\n<p><strong>5) Select all data (Ctrl + A) and put a <em>Filter<\/em> on it again!<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Now that the initial cleaning of your data is done, you can continue with data preparation for Gephi in <a href=\"http:\/\/persiababylonia.org\/archives\/?page_id=1293&amp;preview=true\" target=\"_blank\" rel=\"noopener noreferrer\">Part 3<\/a>.<\/p>\n<p><em>If you encounter any problems or find information that needs to be updated, you can let me know via email: m.seire[at]hum.leidenuniv.nl.<\/em><\/p>\n<p><em>Author: Maarja Seire<br \/>\n<\/em><em>Published\u00a0on\u00a028 January 2020<\/em><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_1284\" class=\"pvc_stats all  \" data-element-id=\"1284\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img decoding=\"async\" src=\"http:\/\/persiababylonia.org\/archives\/wp-content\/plugins\/page-views-count\/ajax-loader.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n<script type=\"text\/javascript\"> toolTips('.classtoolTips4','<span lang=\"EN-GB\">The method used in social sciences to study networks between individuals via graphs.<\/span>'); <\/script><script type=\"text\/javascript\"> toolTips('.classtoolTips41','Neo-Babylonian and Late Babylonian promissory notes are legal documents (hence, legally binding documents) which record the promise of payment of a debt (emerging from, e.g., tax obligations or a leasing relationship). This document type is (verbally) distinguished from common loans where one party makes available their property (e.g. an amount of silver or an object) to another party for a certain amount of time.'); <\/script><script type=\"text\/javascript\"> toolTips('.classtoolTips91','<span lang=\"EN-GB\">The region in modern day southern Iraq, where power has been concentrated several times in ancient <span class='tooltipsall tooltipsincontent classtoolTips73'>Mesopotamia<\/span>.<\/span>'); <\/script><script type=\"text\/javascript\"> toolTips('.classtoolTips108','The term archive refers to a group of documents and\/or the location where they are stored. The archival documents of ancient Mesopotamia are connected to activities of the palaces and temples, or record transactions of private individuals.'); <\/script><script type=\"text\/javascript\"> toolTips('.classtoolTips110','<span lang=\"EN-GB\">The capital city of the Neo-Babylonian Empire during the first millennium BCE.<\/span>'); <\/script><script type=\"text\/javascript\"> toolTips('.classtoolTips114','<span lang=\"EN-GB\">The Babylonian Sun-god. See also <a href=\"http:\/\/oracc.museum.upenn.edu\/amgg\/listofdeities\/utu\/index.html\" target=\"_blank\" rel=\"noopener\">here<\/a>.<br\/><\/span>'); <\/script><script type=\"text\/javascript\"> toolTips('.classtoolTips127','The ancient city of Ur was located at the modern site of Tell el-Muqayyar in Southern Iraq, approximately 20 km south of the Euphrates.'); <\/script>","protected":false},"excerpt":{"rendered":"<p>&nbsp; This is Part 2 in a series of blog posts that describe how to use Gephi for social network<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_1284\" class=\"pvc_stats all  \" data-element-id=\"1284\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img decoding=\"async\" src=\"http:\/\/persiababylonia.org\/archives\/wp-content\/plugins\/page-views-count\/ajax-loader.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":1296,"parent":513,"menu_order":3,"comment_status":"closed","ping_status":"closed","template":"page-templates\/template-services.php","meta":[],"_links":{"self":[{"href":"http:\/\/persiababylonia.org\/archives\/wp-json\/wp\/v2\/pages\/1284"}],"collection":[{"href":"http:\/\/persiababylonia.org\/archives\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/persiababylonia.org\/archives\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/persiababylonia.org\/archives\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/persiababylonia.org\/archives\/wp-json\/wp\/v2\/comments?post=1284"}],"version-history":[{"count":24,"href":"http:\/\/persiababylonia.org\/archives\/wp-json\/wp\/v2\/pages\/1284\/revisions"}],"predecessor-version":[{"id":1568,"href":"http:\/\/persiababylonia.org\/archives\/wp-json\/wp\/v2\/pages\/1284\/revisions\/1568"}],"up":[{"embeddable":true,"href":"http:\/\/persiababylonia.org\/archives\/wp-json\/wp\/v2\/pages\/513"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/persiababylonia.org\/archives\/wp-json\/wp\/v2\/media\/1296"}],"wp:attachment":[{"href":"http:\/\/persiababylonia.org\/archives\/wp-json\/wp\/v2\/media?parent=1284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}