The only thing is it doesn’t include ASSOC data yet and also it duplicates relationship arrows if multiple connections show the same relationship so I will remove the duplication issue before posting the code but will probably add the association incorporation another day
I’ve created an exporter which exports all people in a tree to GEXF format.
It is called “ExportPersonGexf” and is available in the Addon Manager. Select “Audience=Expert” and “Status=Beta” in the filters.
At the moment it is very simple. Nodes have the label set to the full name and the only attributes are Gramps ID and sex. Edges have the label and kind set to the relationship type. The relationship type can be Mother, Father, Spouse or any value set in an association.
To use it just choose “Person GEXF” as the export file type. I haven’t created any export options yet.
It looks really clean and as I can see non-related families are separated. Amazing!
Duplicated arrows are not a big issue I thing. Maybe it is OK, because we will see, that our DB really has duplicated relations and we understand that we must correct DB data?
The export works good, also Gephi imports nodes and edges without any errors. But it is impossible to work with the graph on the entire DB. This is something similar what I got earlier with nodes. I think GEXF needs at least one setting which allows choose person-filter and this feature will work. Thank you @Nick-Hall!
Got it. Sounds good. And is also possible build edges by Associations tab? And it would be great (if you will create it as addon in the future) to add several export settings like:
disable/enable events relations
disable/enable associations (Associations tab)
@RenTheRoot what visualisation tool did you use above? It looks great!
Yes, I think this will be my next addon- call this the first draft haha. I will need to get more familiar with the gramps db api to get it to query directly but this first draft has cleared up some things that would have gotten me stuck if I went to the full addon right away. This one doesn’t do associations right now but if I created an addon I could definitely make that an option. It’s probably actually easier to map based on associations than it is to map by event roles.
The application I used is called yED. It’s completely free and has a lot of layout and clustering options I like. I use it for DNA matches as well. There is also yED live online but it doesn’t do so hot with large files. You can actually import gedcom files into it directly as well.
Yup I know just the settings for you! although you may still wish to use filters Try the “tools” tab and then use “Fit node to label”, then redo the layout you chose and if the nodes are too close you can use the tool “remove node overlap” to set a maximum distance between nodes.
Also a cool feature- check out the neighborhood window on the left.
Sure, Im researching the yEd settings tomorrow more deep. Thank you a lot! Pls give also know if Associattions will be also added to the script and I will make re-export.
The Licensee is granted a non-exclusive and non-transferable right to install one copy of the Software and use it as an application. The Software may not be used as part of an automated process. The Licensee may not reverse engineer, disassemble, decompile, or unjar the Software, or otherwise attempt to derive the source code of the Software.
The Licensee acknowledges that Software furnished hereunder is under test and may be defective. No claims whatsoever can be made on yWorks based on any expectation about the Software.
It is still free to use software even if it is not a GPL software and even if you don’t “think” or mean so.
If you don’t want to use it, it is up to you, but please don’t say that something is not free when it is.
Free use is free use, even though it’s not a “free open source” software. Most people do not care about if it is Apache, GPL or a free license by vendor.
If you don’t want to use yEd Graph Editor, but want to use a network graph software, use Tulip, Gephi, Cytoscape or Constelllation or use networkX for Python, I am sure it is a lot of other software to, that can do this type of things…
yED is a great really advanced alternative for those that do not need to keep to GPL for some reason. Even though it is way more difficult to use than Gephi, Tulip or Cytoscape.
If neither of those are alternatives for you, you can, since you are a good Python developer, use matlib or networkX, or maybe even Plotly (I do not know their licensing) … there is also a networkX-viewer, but I have never tried it and it has not been new releases since 2020.
… just a tip
The only way to say a product is free: The sources must be provided.
They are not. Perhaps it’s a free to use,but you can’t share all which is generated, …
What’s the point of discussing this in this debate? Are you suggesting that we’re breaking some law by installing this application on our PC? If not, then let’s please stop discussing things that don’t move us closer to a resolution.
@RenTheRoot when I export to json not whole DB (about 80 persons) and then run the script, I receice an empty out.gv. Could you check the script pls? I think maybe it can not find some relations, citations etc and can not finish convertation?
JSON export doesn’t work good, it ignores person filters. I found such solution on the gramps forum. 3 highlighted rows added. Now it works good.
PS: could anybody push PR with this fix pls?