s-webber / projog

Prolog programming for the Java platform.
Apache License 2.0
37 stars 9 forks source link

alter org.projog.api design #190

Closed s-webber closed 3 years ago

s-webber commented 3 years ago

The classes clients use to interact with Projog are contained in org.projog.api. The design of these classes can be improved.

Suggestions:

  1. Move methods to set variables from QueryResult to QueryStatement (this makes the interface more consistent with how other Java APIs - e.g. JDBC - work).
  2. Add QueryPlan class to take advantage of preprocessing optimisations added by #184
  3. Add methods to make the API easier to use. e.g. allow clients to use Strings when getting/setting atoms, rather than requiring org.projog.core.term.Atom.