# GEDCOM Tools
[![Build
Status](https://travis-ci.org/ligurio/gedcom-tools.svg?branch=master)](https://travis-ci.org/ligurio/gedcom-tools)
Gedcom is a format for storing genealogical information designed by The Church
of Jesus Christ of Latter-Day Saints (http://www.lds.org).
## `gedcom2sql.go`
This module allows to converting data in GEDCOM format to SQLite DB.
```sql
$ gedcom2sql -file sergeyb.gedcom
$ sqlite3 sergeyb.sqlite
SQLite version 3.20.1 2017-08-24 16:21:36
Enter ".help" for usage hints.
sqlite> -- "Total number of persons:"
sqlite> SELECT COUNT(*) FROM person_st;
sqlite> -- "Total number of childs:"
sqlite> SELECT COUNT(*) FROM famchild;
sqlite> -- "Total number of families:"
sqlite> SELECT COUNT(*) FROM family;
sqlite> -- "Total number of male persons:"
sqlite> SELECT COUNT(*) FROM person_st WHERE sex='M';
sqlite> -- "Total number of female persons:"
sqlite> SELECT COUNT(*) FROM person_st WHERE sex='F';
sqlite> -- "Total number of death dates:"
sqlite> SELECT COUNT(*) FROM person_st WHERE deat_date IS NOT "";
sqlite> -- "Total number of burial dates:"
sqlite> SELECT COUNT(*) FROM person_st WHERE buri_date IS NOT "";
sqlite> -- "Total number of birth dates:"
sqlite> SELECT COUNT(*) FROM person_st WHERE birt_date IS NOT "";
```
## `gedcom2errors.go`
Проверка файла GEDCOM на ошибки.
```
gedcom2errors -verbose -file samples/bronte.ged
I0003 Maria /Brontë/
EI112: person has no family pointers
I0004 Elizabeth /Brontë/
EI112: person has no family pointers
I0006 Patrick Branwell /Brontë/
EI112: person has no family pointers
I0007 Emily Jane /Brontë/
EI112: person has no family pointers
I0008 Anne /Brontë/
EI112: person has no family pointers
1820-01-17 00:00:00 +0000 UTC 0001-01-01 00:00:00 +0000 UTC
I0008 Anne /Brontë/
EI102: person dies before birth
I0014 Elizabeth /Branwell/
EI112: person has no family pointers
Family F001
EP102: child is born before mother
Family F002
EF100: family has no members
Family F002
EF107: family missing pointer to child
[Brunty] Brontë
Family F003
EP106: child doesn't inherit father's surname
```
## `vk2gedcom.go`
Приложение строит генеалогическое дерево на основании данных из социальных
сетей. Пока реализована поддержка только для ВКонтакте.
## `gedcom2timenet.go`
Визуализация GEDCOM.
* [Javascript script to embed pedigree charts in web pages](https://github.com/bencrowder/emperor)
* [Pedigree and genealogical tree diagrams with LaTeX](https://www.ctan.org/pkg/genealogytree)
## `pedigree.ipynb`
Исследование родословной с помощью Jupiter Notebook.
## Полезные инструменты
- [gedcom2html](https://godoc.org/github.com/elliotchance/gedcom/gedcom2html) ([example](https://gedcom.app/royals/places.html))
- [gedcom2json](https://godoc.org/github.com/elliotchance/gedcom/gedcom2json)
- [gedcom2text](https://godoc.org/github.com/elliotchance/gedcom/gedcom2text)
- [gedcomdiff](https://godoc.org/github.com/elliotchance/gedcom/gedcomdiff)
- [gedcomq](https://godoc.org/github.com/elliotchance/gedcom/gedcomq)
Copyright (c) 2017-2019, [Sergey Bronnikov](https://bronevichok.ru/)