https://gramps-project.org/wiki/index.php?title=De:Gramps_3.2_Wiki_Handbuch_-_Stammb%C3%A4ume_Verwalten:_CSV_Import_und_Export&feed=atom&action=historyDe:Gramps 3.2 Wiki Handbuch - Stammbäume Verwalten: CSV Import und Export - Revision history2024-03-19T07:57:42ZRevision history for this page on the wikiMediaWiki 1.31.3https://gramps-project.org/wiki/index.php?title=De:Gramps_3.2_Wiki_Handbuch_-_Stammb%C3%A4ume_Verwalten:_CSV_Import_und_Export&diff=98426&oldid=prevPatsyblefebre: Dokumentation2023-09-23T00:38:28Z<p>Dokumentation</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 00:38, 23 September 2023</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l206" >Line 206:</td>
<td colspan="2" class="diff-lineno">Line 206:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>[[Category:De:<del class="diffchange diffchange-inline">Documentation</del>]]</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>[[Category:De:<ins class="diffchange diffchange-inline">Dokumentation</ins>]]</div></td></tr>
</table>Patsyblefebrehttps://gramps-project.org/wiki/index.php?title=De:Gramps_3.2_Wiki_Handbuch_-_Stammb%C3%A4ume_Verwalten:_CSV_Import_und_Export&diff=20044&oldid=prevNickw: 1 revision2010-01-15T05:44:34Z<p>1 revision</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<tr class="diff-title" lang="en">
<td colspan="1" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #222; text-align: center;">Revision as of 05:44, 15 January 2010</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>Nickwhttps://gramps-project.org/wiki/index.php?title=De:Gramps_3.2_Wiki_Handbuch_-_Stammb%C3%A4ume_Verwalten:_CSV_Import_und_Export&diff=20043&oldid=prevLeonhaeuser: New page: {{grampsmanualcopyright}} {{languages/de|Gramps_3.2_Wiki_Manual_-_Manage_Family_Trees:_CSV_Import_and_Export}} {{man index/de|De:Gramps_3.2_Wiki_Handbuch_-_Stammbäume_Verwalten#Daten_...2009-09-29T13:43:20Z<p>New page: {{grampsmanualcopyright}} {{languages/de|Gramps_3.2_Wiki_Manual_-_Manage_Family_Trees:_CSV_Import_and_Export}} {{man index/de|De:Gramps_3.2_Wiki_Handbuch_-_Stammbäume_Verwalten#Daten_...</p>
<p><b>New page</b></p><div>{{grampsmanualcopyright}}<br />
<br />
<br />
{{languages/de|Gramps_3.2_Wiki_Manual_-_Manage_Family_Trees:_CSV_Import_and_Export}}<br />
<br />
<br />
{{man index/de|De:Gramps_3.2_Wiki_Handbuch_-_Stammbäume_Verwalten#Daten_importieren|De:Gramps_3.2_Wiki_Handbuch_-_Stammbäume_Verwalten#Daten_exportieren|3.2}}<br />
<br />
== Gramps Spreadsheet Import/Export ==<br />
<br />
This format allows you to import/export a spreadsheet of data all at once. The spreadsheet must be in the Comma Separated Value (CSV) format. Most spreadsheet programs can read and write this format. It is also easy to write by hand. This is the only GRAMPS import format which allows for merging with existing data.<br />
<br />
NOTE: '''This spreadsheet format does not allow for 100% export of GRAMPS data.''' It only exports (and imports) a subset of data, namely: people (names), birth and death events, and relationships (parents and children).<br />
<br />
There are three main uses for this format:<br />
<br />
# You can export your core gramps data into a spreadsheet format, edit it with a text or spreadsheet program, and import the changes and additions back into gramps. This is handy for sending to others to fill in, or for taking on the road when you don't have your full gramps application.<br />
# You can import new data into your gramps database. For example, if you have a set of new people to add to your database, but don't want to hunt and peck your way to finding where they go, you might find it easier to type them into a spreadsheet, and then quickly suck all of them in at once. This is handy if you have a large amount of data that you are cutting and pasting from another application or the web. An example of this is [[Narrative_Website_Import|restoring your GRAMPS database]] by loading the Narrative Website into a spreadsheet.<br />
# You can also import a set of corrections and additions. Say that you have printed out a report, and you are going through it marking corrections. If you make each correction a section of a spreadsheet, you can "script the edits" and then execute them all at once.<br />
<br />
== Export ==<br />
<br />
To export your database:<br />
<br />
# Start gramps<br />
# Select "Export" from the File menu<br />
# Select "Comma Separated Values Spreadsheet (CSV)"<br />
<br />
A selected set of fields of your genealogy data will be saved to a .csv file in the format described below. In addition, the people and familes are referenced so that the data can be edited and read back in, thereby updating the database. <br />
<br />
There are some columns that will be blank, specifically note and source columns. These are listed in the spreadsheet so that you can make notes for the import, but notes and sources are never exported with this tool.<br />
<br />
Your data is broken up into three sections representing individuals, marriages, and children. The exported fields and column names are:<br />
<br />
;Individuals: Person, Lastname, Firstname, Callname, Suffix, Prefix, Title, Gender, Birthdate, Birthplace, Birthsource, Deathdate, Deathplace, Deathsource, Note<br />
<br />
;Marriages: Marriage, Husband, Wife, Date, Place, Source, Note<br />
<br />
;Families: Family, Child<br />
<br />
The first column in each area is the gramps ID. That is what will tie your edits back to the correct data, so don't alter those data. Load this file into your favorite spreadsheet using comma separated, double-quote text delimited, and Text format (any encoding for now). Then you can add or correct data, and save it back out, keeping the same format. You can then import the data back ontop of your old data and it will be corrected.<br />
<br />
;HINT: Open Office allows you to turn off autoformatting when you open the CSV file. If you don't do this, Open Office may interpret the dates incorrectly. Change the type of the column to Text rather than Standard. If your spreadsheet program doesn't allow you to format the fields before you get it into columns (eg, Excel) you need to change the display format of dates in GRAMPS before you export. You can do this under Edit -> Preferences -> Display -> Date Format.<br />
<br />
== Import ==<br />
<br />
To import your data:<br />
<br />
# use the file from above, or create a spreadsheet (described below) with genealogical data<br />
# start up gramps<br />
# import the file into your current database<br />
<br />
The merge part of this code will only add or update information to your database, and it always assume that the spreadsheet data is the correct version.<br />
<br />
If you load this spreadsheet into Open Office, make sure you select each column as type '''Text''' rather than '''Standard'''. Standard will reformat your dates and numbers. Also, if you use Excel, you will probably want to select all cells once opened, and change the format of the cells to '''Text'''.<br />
<br />
The spreadsheet is data made up of columns. Each column should have at the top of it the name of what type of data is in the column. You must use special names for the columns. Currently they are:<br />
<br />
=== People ===<br />
<br />
<pre><br />
person - a reference to be used for families (marriages, and children) <br />
grampsid - to assign a gramps id to the person<br />
firstname - a person's first name<br />
surname/lastname - a person's last name<br />
callname - a common name (nickname) for the person<br />
prefix - surname prefix (von, de, etc)<br />
suffix - a suffex of a person's name (Jr., Sr.)<br />
title - a person's title (Dr., Mr.)<br />
gender - male or female (you should use the translation for your language)<br />
note - a note for the person's record<br />
birthdate - date of birth<br />
birthplace - place of birth<br />
birthsource - source material for birth<br />
grampsid - give a particular gramps id<br />
deathdate - date of death<br />
deathplace - place of death<br />
deathsource - source material for death<br />
deathcause - cause of death<br />
</pre><br />
<br />
=== Marriage ===<br />
<br />
<pre><br />
marriage - if you want to reference this from a family, you'll need a matching name here<br />
husband/father/parent1 - the reference of the person above who is the husband <br />
(for female parent1, you'll need to put gender in the person area, <br />
or edit it later in gramps)<br />
wife/mother/parent2 - the reference of the person above who is the wife <br />
(for male parent2, you'll need to put gender in the person area, <br />
or edit it later in gramps)<br />
date - the date of the marriage<br />
place - the place of the marriage<br />
source - source materials of the marriage<br />
note - a note about the marriage/wedding<br />
</pre><br />
<br />
=== Family ===<br />
<br />
<pre><br />
family - a reference to tie this to a marriage above (required)<br />
child - the reference of the person above who is a child<br />
source - source materials of the marriage<br />
note - a note about the family<br />
gender - male or female (you should use the translation for your language) <br />
[You can put gender here, or in person above]<br />
</pre><br />
<br />
== Details ==<br />
<br />
Case doesn't matter. Notice that the names don't use underscores in them. You may use any combination of these, in any order. (Actually, you have to at least have a surname and a given name when defining a person, and you have to have a marriage and child columns when defining children, but that is it.) The column names are the English names given (for now) but the data should be in your language (including the words "male" and "female").<br />
<br />
Each of these can go in its own area in a spreadsheet. There is no limit to the number of areas in a sheet, and each area can have any number of rows. Leave a blank row between "areas". Just make sure that areas are not next to each other; they must be above and below one another.<br />
<br />
You can have mutiple areas of each kind on a spreadsheet. The only limitation is that if you refer to a person, you must do that in a row lower than where that person is described. Likewise, if you refer to a marriage, you must do that in a row lower than where the marriage is described.<br />
<br />
If you are entering the data in a text file, and if you wish to have a comma inside one of the values, like "Clinton, Co., MO" then you need place the entire value in double-quotes and put the first double-quote right after the preceding comma. For example:<br />
<br />
<pre><br />
marriage, person1, person2, place<br />
m1, p1, p2,"Clinton, Co., MO"<br />
m2, p3, p4,"Havertown, PA"<br />
</pre><br />
<br />
A spreadsheet program will do this automatically for you.<br />
<br />
Here is an example spreadsheet in Open Office, but any spreadsheet program should work.<br />
<br />
[[Image:Test-csv.jpg]]<br />
<br />
Notice that the data need not begin in the first column, nor in the first row.<br />
<br />
And here is the resulting data in gramps:<br />
<br />
[[Image:Screenshot-1.jpg]]<br />
<br />
Here is an example of a CSV text spreadsheet with multiple areas:<br />
<br />
<pre><br />
Firstname, Surname, Birthdate<br />
John, Tester, 11/11/1965<br />
Sally, Tester, 01/26/1973<br />
<br />
Person, Firstname, Surname<br />
p1, Tom, Smith<br />
p2, Mary, Jones<br />
p3, Jonnie, Smith<br />
p5, James, Loucher<br />
p6, Penny, Armbruster<br />
p7, Tim, Sparklet<br />
<br />
Marriage, Husband, Wife<br />
m1, p1, p2<br />
m2, p5, p6<br />
<br />
Family, Child<br />
m1, p3<br />
m1, p6<br />
m2, p7<br />
</pre><br />
<br />
If you cut and paste that into a file, you can import it directly.<br />
<br />
If you make your references be gramps IDs inside square brackets, then you can refer to people already in the database, like this:<br />
<br />
<pre><br />
Person, Firstname, Lastname<br />
joe's boy, Harry, Smith<br />
<br />
Family, Child<br />
[F1524], joe's boy<br />
<br />
Husband, Wife<br />
[I0123], [I0562]<br />
<br />
firstname, surname<br />
Timothy, Jones<br />
</pre><br />
<br />
This example would create and add Harry Smith to the previously existing family in gramps, family F1524.<br />
<br />
Also, this example would marry two previously existing people, I0123, and I0562.<br />
<br />
Finally, this also creates a person named Timothy Jones who is not related to anyone.<br />
<br />
=== Real World Example ===<br />
<br />
In this example, I had an entire generation to enter, 16 names with marriage dates. The children I already had in the database. I entered them into Open Office:<br />
<br />
[[Image:Gen5-spreadsheet.jpg]]<br />
<br />
Notice that you can use numbers or strings as the reference names between areas. In the person area, I used the numbers 1 through 16. That made it easy to refer to them in the second area of marriages. The marriages are labeled with the letters A through H.<br />
<br />
==== HINT ====<br />
<br />
Open Office allows you to turn off autoformatting when you open the CSV file. If you don't do this, Open Office may interpret the dates incorrectly. Change the type of the column to '''Text''' rather than '''Standard.''' If your spreadsheet program doesn't allow you to format the fields before you get it into columns (eg, Excel) you need to change the display format of dates in gramps before you export. You can do this under Edit -> Preferences -> Display -> Date Format.<br />
<br />
Also note that the children in the third area are existing people as indicated by the brackets around the gramps IDs. <br />
<br />
Saving as CSV and importing into gramps produces the far right-hand column in the tree:<br />
<br />
[[Image:Gen5-gramps.jpg]]<br />
<br />
<br />
{{man index/de|De:Gramps_3.2_Wiki_Handbuch_-_Stammbäume_Verwalten#Daten_importieren|De:Gramps_3.2_Wiki_Handbuch_-_Stammbäume_Verwalten#Daten_exportieren|3.2}}<br />
<br />
<br />
[[Category:De:Documentation]]</div>Leonhaeuser