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

model and queries inconsistent #75

Open
timrdf opened this issue Mar 1, 2012 · 2 comments
Open

model and queries inconsistent #75

timrdf opened this issue Mar 1, 2012 · 2 comments

Comments

@timrdf
Copy link
Collaborator

timrdf commented Mar 1, 2012

main and queries do not align between the query file path and how it is called in the template. Aligning these would make it easier to understand and remember.

lebot@aquarius:/var/www/prov-wg/prov-lodspeakr/components/services/provrdf-owl-coverage$ grep "select" queries/main.query 
select distinct ?construct ?yes


lebot@aquarius:/var/www/prov-wg/prov-lodspeakr/components/services/provrdf-owl-coverage$ grep "row in" html.template 
      <ul> {% for row in models.main %}
@alangrafu
Copy link
Owner

I don't understand what you mean:

Assuming you have a query called filename.query, all the data is in models.filename while the first values are in first.filename.

@timrdf
Copy link
Collaborator Author

timrdf commented Mar 2, 2012

(oh, first works again?)

queries/main.query does not resemble models.main, making it more difficult for beginners to use the tool (because they have to remember to "switch" queries to models when they want to access it in the view template. On the other hand, if model/main.query and models.main or queries/main.query and queries.main were used for the filename and view template access variable, this would be easier to learn.

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

2 participants