GEDCOM 从 Web 应用程序导入导出文件
我正在一个社交网站上工作,该网站具有创建家谱的功能。 有很多网站支持从 GEDCOM 文件导入/导出家谱。 我必须按照 gedcom 标准实施家谱。我还必须设计我的数据库,因为它应该能够以可以导出到 gedcom 文件的方式存储数据,并且可以将任何 gedcom 文件数据导入其中...... 我需要一些可以做到这一点的代码示例。 如果有人对此有任何想法,请告诉我,
我从 stackoverflow 本身的一个博客中找到了代码。我希望它能帮助我 你可以从这个链接查看它 C# 版 Gedcom 阅读器
i am working on a social networking site having facility to create Family Tree.
there are so many sites which supports family tree import/export from GEDCOM File.
i have to implement family tree with gedcom standards. i also have to design my database as it should be capable to store data in a manner tht it can be exported to gedcom file as well as any gedcom file data can be imported in it...
i need some code samples which can do this.
if anybody have any idea about this please let me know
i found code from one blog from stackoverflow itself. i hope it can help me out
you can view it from this link
Gedcom Reader for C#
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
PhpGedView 正是这样做的,并且是开源的。您应该能够在项目中找到大量代码示例。
PhpGedView does exactly this, and is open source. You should be able to find plenty of code samples within the project.
如果您对 Java 持开放态度,则可以在 http://gedcom4j.org 上使用 gedcom4j。它可以读取和写入 5.5 和 5.5.1 格式的 GEDCOM 文件,并将数据存储在 java 对象图中,以便您可以在加载后/写入前根据需要对其进行操作。您还可以将其连接到您想要的任何数据库框架中(我永远不会推荐 GEDCOM 作为数据库格式,但它对于数据交换至关重要)。有很多 ORM 解决方案可以将 java 对象图持久化到数据库(hibernate 是我最熟悉的一种)
If you are open to java, you can use gedcom4j at http://gedcom4j.org. It can read and write GEDCOM files in both the 5.5 and 5.5.1 format and stores the data in a java object graph so you can manipulate it as needed after loading/before writing. You could also hook that into whatever database framework you want (I would never recommend GEDCOM as a database format, but it essential for data interchange). There are plenty of ORM solutions to persist java object graphs to databases (hibernate being the one I'm most familiar with)
这是关于 gedcom4j Frizbog 的补充答案。我正在使用 gedcom4j java 库。这个库非常好且准确。我发现的唯一问题是:http://gedcom4j.org / 此时已关闭或不存在,我们无法返回作者的原始文档和示例代码。我找不到 Frizbog 的任何地址。此时我只能读取和更新 gedcom 实例,无法将读取的 gedcom 5.5 实例写入文件。
This is a complementary answer about gedcom4j Frizbog. I am using gedcom4j java library.This library is very good and accurate .Only problem that I found is :http://gedcom4j.org/ at this time is down or does not exist and we cannot return to original documents and sample codes of the author. I could not find any address from Frizbog.At this time I only could read and update an gedcom instance I cannot to write a read gedcom 5.5 instance to a file.