palash1992/GEM

how to use GEM in an exsisting graph

Laya1363 opened this issue · 4 comments

Hi everyone,

I'd like to use GEM library in a graph that I created by myself.
the file format of my graph is .owl.
I don't know how should I read my graph into python, extract the edge lists and implement the methods on them. in which format should I have my graph(and probably how?)
can anyone give me clear instruction?

Thanks

GEM is using networkx library for the graphs representations.
So probably all you need is another library (like this) that converts owl files to networkx graphs.

@CatcherGG thanks for your answer. yes I also saw this library onto2nx to convert my data but unfortunately there is no tutorial for this library in the internet. And I just struggling to get know how should I do that. if you have experience using it, I would be appreciated if you can help by giving some tips.
Thanks

You can also convert OWL to a text file with edges which you can easily load into networkx.

@palash1992 you mean just convert the owl file format in .txt and use it in Networkx?
could you please explain more I am pretty new in ML methods and also Networkx and any additional explanation is appreciated..