insilmaril / vym

View Your Mind
https://sourceforge.net/projects/vym/
Other
138 stars 33 forks source link

Add support for OWL files #122

Open Bleyddyn opened 1 month ago

Bleyddyn commented 1 month ago

I'm planning on trying to add support for reading and maybe writing OWL files. A very simple example is at https://www.ibm.com/docs/en/wsr-and-r/8.5.0?topic=wsrr-example-owl-file

I realize this is a bit out of the way for VYM, so if there's no interest I'll stick to my own fork.

Knowledge Graphs (OWL files are sometimes used to store KG data) and Mind Maps are at least related concepts, and I have another project that I hope will be working with that kind of data, so I thought I'd give it a shot.

insilmaril commented 1 month ago

Certainly an interesting idea. When vym was very young (nearly 20 years ago...) The former CTO of the company where I worked suggested to use RDF, so somehow this would close a circle ;-)

For parsing OWL files maybe a modified version of the xml-vym.cpp parser could be used, which I rewrote to use QXmlStreamReader. Not sure what would be best approach for saving in .vym files, using branches and xlinks or introducing a new type to reflect the ontologies. Guess this depends on you use case, if you rather would use vym to display only or really work with it.

I'd just try to keep the overhead as small as possible avoid slowing down working with "normal" maps.

Btw. ksemantic also aimed for semantic maps, but I haven't checked it for years now...

I'd help where I can.

So far I have been basically working alone on vym, very rarely getting a patch. If you join I'd be a bit more careful with the develop branch ;-)

My plan is at the moment to stabilize vym for a 3.0 release, especially the MapDesign elements and also some rare crash on Windows I haven't been able to locate really so far. On develop branch I am also playing a bit with scripting an elastic animated layout (faster than recompiling for every change, but here again something causes a crash after a number of iterations.

Bleyddyn commented 1 month ago

Thanks for the pointers. I would like to be able to read and write OWL files, as well as saving them as .vym, but we'll see how well that fits.

If there are any other issues you want help with for 3.0, let me know.

insilmaril commented 3 weeks ago

Oh, I have tons of ideas :-)

The next couple of weeks I won't have much time and at least on Windows executing scripts (e.g. for function key macros and undo/redo) crash sporadically. Trace is deep in QJSEngine usually and could be a race condition, I'll open an issue in the next days, so if you have experience there... I am bit lost with ideas how to fix that atm.

insilmaril commented 3 weeks ago

The new crash bug: https://github.com/insilmaril/vym/issues/124