Il 26/05/2015 13:40, Markus Krötzsch ha scritto:
On 26.05.2015 02:18, Stas Malyshev wrote:
Hi!

       o If you are not familiar with SPARQL yet, a tool
         <https://tools.wmflabs.org/ppp-sparql/> has been created by Tpt
         <https://www.wikidata.org/wiki/User:Tpt> and Bene*
         <https://www.wikidata.org/wiki/User:Bene*> to generate SPARQL
         queries from natural language questions.
       o To do SPARQL queries from the command line, a command line tool
         <https://github.com/mariushoch/asparagus> was crafted by Marius
         <https://www.wikidata.org/wiki/User:Hoo_man>.

This is awesome! Need more SPARQL tools. I guess the direction to
develop this would be to have GUI that allows to build queries
(something like we see at https://wdq.wmflabs.org/wdq/) and maybe making
ppp-sparql resolved queries - e.g. with actual Q-item for "president"
when I ask for "who is the president of the USA?" - which will be more
efficient.

Should we start some page where we list such tools?


Yes please.

I requested a toolinfo.json to be added to ppp-sparql: https://github.com/ProjetPP/PPP-Wikidata-SPARQL/pull/1
Then you would just search for "sparql" here.


I was quite surprised by how well ppp-sparql performs based on very limited information (it's guesses on simple sentences often yield results). Nice work! Maybe it could be more efficient to do some API requests to find the right entities rather than filtering many alternative labels as part of the query. It's not a pattern that we should encourage for production ;-)

Regards,

Markus

_______________________________________________
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata