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

Create a front end to run a list of queries out of Main_queries #42

Open
pralitp opened this issue Dec 13, 2017 · 0 comments
Open

Create a front end to run a list of queries out of Main_queries #42

pralitp opened this issue Dec 13, 2017 · 0 comments
Assignees

Comments

@pralitp
Copy link
Contributor

pralitp commented Dec 13, 2017

@rplzzz, asked for the feature. While rgcam has the capabilities using the "query for a query" technique as described in the vignette it might be nice to formalize it with a front end method similar to how addScenario provides a front end for parsing batch queries and passing them to the runQuery / addQueryTable to do the heavy lift.

I'm thinking the front end parsing would take two arguments:

  1. The path to the query file (Main_queries.xml)
  2. An array of query names to query.

We can then generate a query for the query with something like:

paste0("doc('", query_file, "')//*[@title='", query_name, "']")

And for the gold star maybe try to detect if query_name is already an XQuery and if so run it unmodified (to provide a workaround for the multiple queries with same name problem).

@pralitp pralitp self-assigned this Dec 13, 2017
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