epatters / datascienceontology-backend

Web backend for the Data Science Ontology
https://www.datascienceontology.org
Apache License 2.0
1 stars 1 forks source link

How to create diagram JSON? #5

Open sander opened 4 years ago

sander commented 4 years ago

@epatters Could you share instructions on how to (locally) generate definition.diagram and definition.graphviz in e.g. https://api.datascienceontology.org/_cache/annotation/python/numpy/loadtxt ? I expect that open-discovery/expression_to_graphviz_json in https://github.com/epatters/datascienceontology-backend/blob/master/openwhisk/composer/build_morphism_figure.js performs the processing, but I could not find its source code.

epatters commented 4 years ago

Hi Sander, I forgot that this code was not released. It's in another repository, which is private. I'll clean up this code and release it.

Background: The pipeline for generating these diagrams is complicated, unfortunately. The diagram layout is computed by Graphviz and the conversion to Graphviz is performed by my software Catlab.jl. I have Docker containers for this stuff and the scripts you reference are actions for IBM Cloud Functions/Apache OpenWhisk.

Currently the diagrams are not automatically rebuilt on DB updates. I do it myself by manually invoking the actions. Needless to say, this system is not ideal. Any improvements are welcome. Also, I am not committed to OpenWhisk, so if you have other ideas feel free to suggest them.

sander commented 4 years ago

Hi Sander, I forgot that this code was not released. It's in another repository, which is private. I'll clean up this code and release it.

@epatters thank you. Did you get a chance to upload the code? Note that for my current use case cleaned up code is not a concern, as long as it can be built and run.

epatters commented 4 years ago

Sorry, @sander. I have been distracted by other things. Let me try to do this soon.