The project is finally published, here is the link to the relevant OCaml sources for drawing knowledge graph and HTML. src/cytoscape.ml
is the binding to the Cytoscape JS library, src/dagre.ml
is the binding to Dagre JS graph layout library.
We have a demo site where you can see it in action. You’ll need to click “Show knowledge graph” to see the display of knowledge graph however.