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

peculiar API features #2 #35

Open
pp-mo opened this issue Jul 23, 2013 · 0 comments
Open

peculiar API features #2 #35

pp-mo opened this issue Jul 23, 2013 · 0 comments

Comments

@pp-mo
Copy link

pp-mo commented Jul 23, 2013

The implementation of the server 'retrieve_mappings' call seems rather odd.
It passes info -- and itself -- to queries.valid_ordered_mappings.
Which then ...

  1. constructs a query string
  2. calls the the server back, via the run_query method
  3. returns the data from that back to the caller

Many of the queries behave similarly, though some also perform extra processing of the raw query result at step (3), to make the final return value .

It feels to me like any+all server ('fuseki') methods which make calls into the queries module should not be there at all (retrieve_mappings, validate, save et al.).
In effect, these methods provide management concepts specific to our database structure and/or usage. So that should really be kept separate from the generic server functions.

So, I'd expect (+ much prefer) to see the server module called by the queries module, but never the other way around.

Meanwhile, the existing 'fuseki' enquiry API methods, that I'm objecting to here, might belong in the existing queries module, or possibly in a separate layer that encodes DB usage rather than encoding concepts (I haven't seen enough to grasp it all).

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

No branches or pull requests

1 participant