Changes

Jump to: navigation, search

Gramps XML

1,417 bytes added, 01:07, 15 October 2019
Gramps XML Resources: update table
==Gramps XML Resources==
{{man note|Starting with Gramps XML 1.0, each |Each revision of Gramps XML has its own resource page, with references to that version's [https://en.wikipedia.org/wiki/Document_type_definition DTD ] and [https://en.wikipedia.org/wiki/RELAX_NG RELAX NG ] schema. <br />The resource pages are listed at [http://www.gramps-project.org/xml/ http://www.gramps-project.org/xml/].}}
{| class="wikitable sortable"
!Gramps release
!XML version schema!Imports XML versionschema
!Database
!Example
!Changes/Note
|-
| trunk/master/unstable| no change against 4.1 2 yet| >= 1.0.0 - best 1.5.17| 1718| Unreleased <br />[http:{{Code Browser}}//sourceforge.net/p/gramps/source/citree/master/tree/example/gramps/example.gramps example.gramps]
| Unreleased
|}
{{man note|Note: |Commencing with Gramps 3.1.2 all official versions of Gramps XML files can be imported. However, a warning will be given on import of 1.0.0 xmlXML.[http://sourceforge.net/mailarchivep/gramps/mailman/message.php?msg_id=/23262334/<br /><br />'''Note: ''' For versions of Gramps earlier than 3.1.1 refer to and the consult the table below to decide which version to use to import a specific version of the xml, consult the table belowXML.}}
{| class="wikitable sortable"
!Gramps release
!XML version schema!Imports XML versionschema
!Database
!Example
!Changes/Note
|-
| 5.1.x
| 1.7.0 - 1.7.1
| >= 1.0.0 - 1.7
| 18
|[{{Code Browser}}/tree/maintenance/gramps51/example/gramps/example.gramps]
|
* DB-API (SQLite) is default backend
* BSDDB is Legacy backend
|-
| 5.0.x
| 1.7.0 - 1.7.1
| >= 1.0.0 - 1.7
| 18
|[{{Code Browser}}/tree/maintenance/gramps50/example/gramps/example.gramps]
|
* Database backends become plugins
* BSDDB is default
* DB-API (SQLite) is tested as viable replacement
|-
| 4.2.x
| 1.7.0 - 1.7.1
| >= 1.0.0 - 1.7
| 18
|[{{Code Browser}}/tree/maintenance/gramps42/example/gramps/example.gramps]
|
* Added PlaceNames (with Date and Language) Place
|-
| 4.1.x
| >= 1.0.0 - best 1.5.1
| 17
| [http:{{Code Browser}}//sourceforge.net/p/gramps/code/branchestree/maintenance/gramps41/example/gramps/example.gramps]
|
* added Tags to Event, Place, Repository, Source, and Citation
* Source/Citation.data became SourceAttributes
* added optional support for checksum on Media object
* added PlaceRef and Place Hierarchies
|-
|4.0.x
| >= 1.0.0 - best 1.4.0
|16
|[http:{{Code Browser}}//svn.code.sf.net/p/gramps/code/branchestree/maintenance/gramps40/example/gramps/example.gramps]
| -
|-
| >= 1.0.0 - best 1.4.0
|16
|[http://svn.code.sf.net{{Code Browser}}/p/gramps/code/branchestree/maintenance/gramps34/example/gramps/example.gramps]|* Citations support<br />* Gramps XML is now idempotent[http://en.wikipedia.org/wiki/Idempotence].{{bug|4365}}<br />* Exporter does not change records order any more, making it easier to look at differences between versions/revisions.
|-
|3.3.x
| >= 1.0.0 - best 1.3.0
|15
|[http:{{Code Browser}}//svn.code.sf.net/p/gramps/code/branchestree/maintenance/gramps33/example/gramps/example.gramps]|[http:* Added new field "locality" to the Place schema* Added surnames to the Name schema (surnames is a list of surnames /prefix and patronymic are moved to the surname)* Replaced Markers with Tags ( marker removed from all /www.gramps-project.orgtags added to Person, Media, Family, and Notes)* Transaction* Merging* Improvements on Import/wiki/index.php?title=Export file formats (vcard, gedcom, xml)* [[Gramps_3.3_Wiki_Manual_-_What%27s_new%3F#Database Changes]]
|-
|3.1.x
| >= 1.0.0 - best 1.1.0
|15
|[http:{{Code Browser}}//svn.code.sf.net/p/gramps/code/branchestree/maintenance/gramps31/example/gramps/example.gramps]
|
* Added lat/long to places
|-
|3.0.x
| >= 1.1.0
|14
|[http:{{Code Browser}}//svn.code.sf.net/p/gramps/code/branchestree/maintenance/gramps30/example/gramps/example.gramps]| * added newyear to Dates<br />* Replace plain text with StyledText in Notes
|-
|2.2.x
|1.1.0-1.1.4
| >= 0.0.0
|13|[http:{{Code Browser}}//svn.code.sf.net/p/gramps/code/branchestree/maintenance/gramps22/example/gramps/data.gramps]
|
|-
| >= 0.0.0
|13
|[http:{{Code Browser}}//svn.code.sf.net/p/gramps/code/branchestree/maintenance/gramps20/gramps2/example/gramps/data.gramps]| * changed name formats
|-
|1.0.x
| -
|
|[http://svn.code.sf.net/p{{Code Browser}}/gramps/code/branchestree/maintenance/gramps10/example/gramps/data.gramps]|(Install [https://github.com/gramps-project/gramps/releases/tag/v2.2.10 Gramps 2.2.10] to import and convert old beta Gramps XML backups - see [[Gramps_Old_database]] & issue {{bug|6129}})
|-
|0.0.x
|}
{{man note|Note: |To convert an old Gramps XML file you could use VirtualBox or Vmware and the old lgenealogy images from: <br><code>http://ftp.gwdg.de/pub/linux/gramps/</code>}}
===DTD generation===
===RELAX NG generation===
Tools like [http://code.google.com/p/jing-trang/ trang] or [http://people.apache.org/~andyc/neko/doc/dtd/index.html NekoDTD] could help to convert a Gramps DTD file to a RELAX NG file.
Some others tools and up-to-date informations (''2010-09-19'') are listed on this [http://www.relaxng.org/ page].
==Validating Gramps XML file==
xmllint --noout filename.gramps
{{man warn|If the Gramps XML file does not validate, |this indicates an error in either the DTD or the XML Writer. <br>'''Please file the bug report at http://bugs.gramps-project.org in that case.'''}}
==Parsing Gramps XML file==
* [http://en.wikipedia.org/wiki/Greasemonkey Greasemonkey] scripts (Michiel Nauta)
* [http://www.gramps.van-staveren.net/ GrampsXMLview] is a number of PHP scripts in combination with a Gramps XML database.
* [https://github.com/claws/gramps2gource gramps2gource] for blurring the line between Genealogy and Software Configuration Management visualisation.
* ...
* [[Database_Formats]]
* [[Gramps Old database]]
* [[Previous releases of Gramps]]
[[Category:Developers/Reference]]
[[Category:Developers/General]]

Navigation menu