Changes

Jump to: navigation, search

Gramps XML

812 bytes added, 02:43, 13 February 2013
m
See also: Gramps and GEDCOM
{{languages|GRAMPS_XMLGramps XML}}'''GRAMPS Gramps XML''' is the '''Extensible Markup Language ''' [http://en.wikipedia.org/wiki/XML XML ] format designed for storing GRAMPS Gramps data. The goal is to have a fully portable, human- and machine-readable XML format so that the data can be read and written without any loss. In addition, XML format allows for smaller files (if '''compressed''') and for using the version control system for tracking the changes (if '''uncompressed''').
The reason XML is not used by GRAMPS Gramps as the working database ("internal") format is performance, specifically memory considerations.
==Gramps XML Resources==
Starting with Gramps XML 1.0, each revision of Gramps XML has its own resource page, with references to that version's DTD and RELAX NG schema. The resource pages are listed at [http://www.gramps-project.org/xml/ http://www.gramps-project.org/xml/].
Commencing with {| class="wikitable sortable"!Gramps 3release!XML version !Imports XML version!Example!Changes/Note|-| Trunk| Unreleased ''1.6''<br />[http://svn.1code.sf.net/p/gramps/code/trunk/data/grampsxml.2 all official versions of Gramps XML files can be importeddtd grampsxml. However, a warning will be given on import of dtd]| Unreleased <br />''>= 1.0.0 xml- best 1.5.0''| Unreleased <br />[http://sourceforgesvn.code.sf.net/mailarchivep/gramps/code/trunk/messageexample/gramps/example.php?msg_id=23262334gramps example.gramps]| Unreleased |}
For versions of Note: Commencing with Gramps earlier than 3.1.1 refer to the table to decide which version to use to 2 all official versions of Gramps XML files can be imported. However, a warning will be given on import a specific version of the 1.0.0 xml, consult the table below.[http://sourceforge.net/mailarchive/message.php?msg_id=23262334]
Note: For versions of Gramps earlier than 3.1.1 refer to the table to decide which version to use to import a specific version of the xml, consult the table below. {| {{prettytable}}class="wikitable sortable"
!Gramps release
!XML version
|1.5.0
| >= 1.0.0 - best 1.4.0
|[http://grampssvn.svncode.sourceforgesf.net/viewvcp/gramps/code/branches/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.
|-
|1.4.0
| >= 1.0.0 - best 1.3.0
|[http://grampssvn.svncode.sourceforgesf.net/viewvcp/gramps/code/branches/maintenance/gramps33/example/gramps/example.gramps]|[http://www.gramps-project.org/wiki/index.php?title=Gramps_3.3_Wiki_Manual_-_What%27s_new%3F#Database Changes]
|-
|3.1.x
|1.3.0
| >= 1.0.0 - best 1.1.0
|[http://grampssvn.svncode.sourceforgesf.net/viewvcp/gramps/code/branches/maintenance/gramps32gramps31/example/gramps/example.gramps]
|
|-
|1.2.0
| >= 1.1.0
|[http://grampssvn.svncode.sourceforgesf.net/viewvcp/gramps/code/branches/maintenance/gramps30/example/gramps/example.gramps]
|
|-
|1.1.0-1.1.4
| >= 0.0.0
|[http://grampssvn.svncode.sourceforgesf.net/viewvcp/gramps/code/branches/maintenance/gramps22/example/gramps/data.gramps]
|
|-
|1.0.0
| >= 0.0.0
|[http://grampssvn.svncode.sourceforgesf.net/viewvcp/gramps/code/branches/maintenance/gramps20/gramps2/example/gramps/data.gramps]
|
|-
|no official version (0.0.0)
| -
|[http://grampssvn.svncode.sourceforgesf.net/viewvcp/gramps/code/branches/maintenance/gramps10/example/gramps/data.gramps]
|
|-
|}
You To convert an old Gramps XML file you could use VirtualBox or Vmware and the old lgenealogy images from : http://ftp.gwdg.de/pub/linux/gramps/ to convert the old XML.
===DTD generation===
Tool like [http://xml2dtd.sourceforge.net/ xml2dtd] could help people not familiar with DTD grammar by generating a DTD file from a XML file. New content on Gramps XML could be tested with the tool and be merged on current Gramps DTD.
 
===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.
* [[Xsl|XSLT]] scripts: [http://www.gramps-project.org/grampsExhibit/0.0.2/grampsexhibit.xsl gramps exhibit] (Michiel Nauta), [[media:Ancestors.xsl.gz|Ancestors.xsl]], [[media:Birthday.xsl.gz|Birthday.xsl]] (Gramps 1.x), [[media:Tellico.tar.gz|Tellico scripts]], [[Lxml_Gramplet|lxml gramplet]], [http://sourceforge.net/mailarchive/message.php?msg_id=28108782 Print Notes], etc ... see [[media:Xpaths.gz|XPaths]].
* A [http://gramps-addonssvn.svncode.sourceforgesf.net/viewvcp/gramps-addons/code/trunk/contrib/DescendantsLines/ft.py sample of standalone script] (Adam Sampson) which parses a Gramps XML file for drawing a family tree.
* [http://www.gramps.van-staveren.net/ GrampsXMLview] is a number of PHP scripts in combination with a Gramps XML database.
* A [http://sourceforge.net/projects/joomlagen/ Joomla! component/module] for uploading the Gramps XML database and for showing genealogical information and overviews.
* [http://www.phpgedview.net PhpGedView] supports [http://phpgedview.svn.sourceforge.net/viewvc/phpgedview/trunk/phpGedView/includes/classes/class_grampsexport.php simple output to Gramps XML file (''old specification: Gramps-2.2.x'') format ] for the Clippings Cart and has an option to download entire Gedcom in Gramps XML form as well as being able to retrieve raw data from the SOAP web service in Gramps XML format. Still a [http://sourceforge.net/projects/phpgedview/forums/forum/185166/topic/5177979 partial support on version 4.3.0].
* [http://en.wikipedia.org/wiki/Greasemonkey Greasemonkey] scripts (Michiel Nauta)
* ...
* [[Generate XML]]
* [[GEDCOM]]
* [[Gramps and GEDCOM]]
* [[Database_Formats]]
* [[Gramps Old database]]
[[Category:Developers/Reference]]
[[Category:Developers/General]]

Navigation menu