idaks / PW-explorer

Apache License 2.0
16 stars 1 forks source link

Introduce Syntax to specify column names for relations #10

Closed sahil1105 closed 5 years ago

sahil1105 commented 5 years ago

For example something like comments like: % #define(rel_3, col1_name, col2_name, col3_name) to be defined in the ASP file so the data frames that are parsed have relevant column names (and default to x1, x2, ... if not defined).

sahil1105 commented 5 years ago

released with v0.0.12 Simply add lines like this to your Clingo files: % define col(nodeID, color) Only one definition per line is supported. While comments on code lines (eg. "col(1, red). % define col(nodeID, color)") is supported, it's recommended to input such definitions on separate lines. The feature hasn't been exhaustively tested and is prone to errors.

sahil1105 commented 5 years ago

change from % define ---> % schema

sahil1105 commented 5 years ago

Changed from define to schema. Will be part of next release. At that point, we'll have to change demos and such to follow that syntax.