-
Notifications
You must be signed in to change notification settings - Fork 4
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
Question: usage of Ask queries #9
Comments
The goal is to use Ask Queries in the PPP-Wikidata module in order to be able to use as backends WikidataQuery or the query capacities of the MongoDB-based store (in order to have both fast queries for the askplatyp.us instance and slow but easy to setup ones for development environments). The choice of Ask Queries have been done in order to be able to switch easily to the Wikidata API instead of WikidataQuery when simple queries feature will be deployed. It is not planned to be directly exposed to the user (but indirectly thought the use of power user input https://projetpp.github.io/demo.html#power-user-input ). |
So you will have some parser that turns this power user input into Ask objects? |
Yes. The current implementation turns a part of this input into WikidataQuery query language: https://github.com/ProjetPP/PPP-Wikidata/blob/2b69df242f51f64a1061607e4f7a401df257a3eb/src/TreeSimplifier/MissingSubjectTripleNodeSimplifier.php#L122 The goal is to use Ask instead of WikidataQuery language in order to able to use easily different backends (WikidataQuery, MongoDB store, maybe the Wikidata API in the future...). |
I'm curious about turning this more expressive query language into Ask. What will you do with things that cannot be expressed in Ask? Will you support answering them in some other way? |
I believe that the power user's language implemented by the PPP-Wikidata module has only one feature that Ask do not support: the ability to find the value for a given property in a given entity like find the "birth date" of "Barack Obama" (in the language: Example of query that may be done with this operation: "Who are the people that are born at the same place as a president of the United States?" (in power user's language The current implementation of the PPP-Wikidata module does Ask queries for each parts that is compound only of union, intersection and |
Thanks for your answer. Related question: it seems that the current Mono based implementation can only do strict equality matching. Do you not need non-strict equality, greater than, etc? And are there plans to add support for those? |
Yes, currently I have no need for them. But it may change in the future (if, for example, I want to do range queries for dates).
Currently not as it would mean to change the internal storage format (the sclaims field is optimized for equality searches). |
I'm wondering what the intend behind the Ask Query support is. As far as I can tell, right now nothing is actually using this. (I checked this repo and PPP-Wikidata.) How will the queries be exposed to the user? No GUI and no human writeable format exist for this implementation of the Ask language at present.
The text was updated successfully, but these errors were encountered: