Difference between revisions of "Gramps Data Model"
From Gramps
m (push Place Enhancements to 5.3) |
m (→See also: add link to the PyLint docs) |
||
| Line 17: | Line 17: | ||
== See also == | == See also == | ||
* [[Using database API|Programmer's Introduction to the Gramps database API]] | * [[Using database API|Programmer's Introduction to the Gramps database API]] | ||
| − | ** [https://gramps-project.org/wiki/images/2/2e/API.svg UML (svg) diagram for Gramps 4.1.x API]<br />[[File:API.svg|3 revisions]] Created using the following command: <code>pyreverse -A -S $HOME/gramps/tree/master/gramps/gen/lib/*.py -o jpeg</code> | + | ** [https://gramps-project.org/wiki/images/2/2e/API.svg UML (svg) diagram for Gramps 4.1.x API]<br />[[File:API.svg|3 revisions]] Created using the following [https://pylint.readthedocs.io/en/latest/pyreverse.html PyLint] command: <code>pyreverse -A -S $HOME/gramps/tree/master/gramps/gen/lib/*.py -o jpeg</code> |
* [https://sourceforge.net/p/gramps/mailman/message/32882646/ Gramps data model] - discussion | * [https://sourceforge.net/p/gramps/mailman/message/32882646/ Gramps data model] - discussion | ||
* [[GEPS_013:_Gramps_Webapp#Model_overview|GEPS_013: Gramps Django Webapp:Model overview]] | * [[GEPS_013:_Gramps_Webapp#Model_overview|GEPS_013: Gramps Django Webapp:Model overview]] | ||
Revision as of 14:35, 27 September 2024
Gramps data model (v4.1) |
Gramps uses the pickle module to serialise object hierarchies and store them in the database.
Details of the pickle module can be found here:
Below is a diagram of the Gramps data model (v4.1). As of October 2020, this model is reported to be valid for the v5.1 of Gramps. However, there is a minor `PlaceName` objects change in 4.2 to contain a string, language code and date range.
The Places Model Enhancements planned for v5.3 are expected to have deeper changes. One target for that Gramps Proposal includes this documentation.
Primary objects are coloured blue. Secondary objects are coloured black. The dotted lines enclose object hierarchies that are stored in the database tables.
See also
- Programmer's Introduction to the Gramps database API
- UML (svg) diagram for Gramps 4.1.x API
Created using the following PyLint command: pyreverse -A -S $HOME/gramps/tree/master/gramps/gen/lib/*.py -o jpeg
- UML (svg) diagram for Gramps 4.1.x API
- Gramps data model - discussion
- GEPS_013: Gramps Django Webapp:Model overview
- 10851 : Gramps Data Model - Polish Version - Gramps 5.0.0
- More graphs available, see posts on discourse.
- History of Gramps
- Database formats