idaks / PW-explorer

Apache License 2.0
16 stars 1 forks source link

Graphviz rendering from within the logic program #25

Closed sahil1105 closed 5 years ago

sahil1105 commented 5 years ago

Develop convention similar to %schema and %temporal to be able to quickly detect graph like problems and hence make graph visualizations easy. eg. maybe have a %node, %edge, conventions for what to color and how, etc.

sahil1105 commented 5 years ago

Ideas: %graphviz graph rankdir=LR ..... %graphviz node relname(_,_,N,\) ord=1 label=$3 color=red shape=box style="rounded,filled" .... %graphviz edge relname(\,E) directed ord=3 color=$1 ......

N --> this attribute defines the node name $ --> means defined variable ord --> style preference (higher ord --> more preference)

sahil1105 commented 5 years ago

Proposed Grammar for revamped meta_data_parser here.

sahil1105 commented 5 years ago

Add an example here.

sahil1105 commented 5 years ago

From this:

Screen Shot 2019-04-09 at 12 03 00 AM

To this:

Screen Shot 2019-04-09 at 12 03 27 AM

in basically 2 steps.

Implemented already. Should be out with next release.

sahil1105 commented 5 years ago

Will make a separate issue to include ability to support WFS models with this syntax.