-
Notifications
You must be signed in to change notification settings - Fork 11
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
Answer Set Formatting #265
Comments
For JSON, output, consider what {
"Solver": "clingo version 5.4.0",
"Input": [
"examples/clingo/consequences/example.lp"
],
"Call": [
{
"Witnesses": [
{
"Value": [
"atom(q)", "atom(p(1))", "atom(p(2))", "atom(p(3))", "atom(p(4))", "atom(p(5))", "atom(p(6))", "atom(p(7))", "atom(p(8))", "atom(p(9))", "atom(p(10))"
]
}
]
}
],
"Result": "SATISFIABLE",
"Models": {
"Number": 1,
"More": "yes"
},
"Calls": 1,
"Time": {
"Total": 0.001,
"Solve": 0.000,
"Model": 0.000,
"Unsat": 0.000,
"CPU": 0.001
}
} |
@madmike200590 you mentioned that you might want to use Jackson in order to implement JSON output. I'd like to bring JSR-353 to your attention. There are some words regarding Jackson in this article from 2018:
I am using Eclipse Yasson in other projects which is an implementation of JSON-P. It might be worth to consider using this library instead of Jackson. |
Thanks for looking into this! Will take a look when I get to this issue |
It would also be useful to have an out-of-the-box option that outputs answer sets as facts. For example, the answer set |
In addition to current answer set printing facilities, the following additional features should be added to Alpha:
Code-wise, implement each of these as an implementation of the
AnswerSetFormatter
interfaceThe text was updated successfully, but these errors were encountered: