Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to export to clingo or dlv #14

Open
sahil1105 opened this issue Feb 19, 2019 · 5 comments
Open

Ability to export to clingo or dlv #14

sahil1105 opened this issue Feb 19, 2019 · 5 comments
Assignees

Comments

@sahil1105
Copy link
Collaborator

Part of "close the loop"/"round tripping" effort, where we can output the PWs from one experiment into clingo/dlv files, that can be used in subsequent experiments.
Two types of exports:

  • simple originalAtomName(pw_id, x1, x2, ....)
  • "triple" form: refer research notes

Also implement ability to extract information from the triple or simple form (for instance after reading them in as DFs, have aggregate/group by operations to recreate original DFs, to avoid recursive explosion).

@sahil1105 sahil1105 self-assigned this Feb 19, 2019
@sahil1105
Copy link
Collaborator Author

added ability to export as asp facts in both simple and triples format with v0.0.14
Working on feature to recreate pws_rel_df, rels, pw_objs from these two formats.

@sahil1105
Copy link
Collaborator Author

Now that I think about it, do we need ability to recreate original pws_rel_dfs, rels, pw_objs from the two formats? What use case would this be useful in where you do not already have the originals in the first place?

@sahil1105
Copy link
Collaborator Author

sahil1105 commented Feb 26, 2019

Need to support export of wfs models to these two formats as well.
eg. for simple -> col(TRUE, 1, 2, blue). col(UNDEFINED, 1, 5, red).
for triples -> triples(17, rel, col). triples(17, wfs/3val, TRUE). triples(17, 1, 1). triples(17,2,2). triples(17,3,blue).

@sahil1105
Copy link
Collaborator Author

In triples export mode, also add option to refer to the index by known column name from schema.
eg. triples(17, rel, col). triples(17, pw_id, 2). triples(17, NODE_ID1, 1). triples(17, NODE_ID2, 5). triples(17, COLOR, red).

@sahil1105
Copy link
Collaborator Author

the above two features have been added in v0.0.17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant