Nice to see you like it :-). I have just implemented a findEntitiesWithSPARQL feature that allows to execute a WHERE close of a SPARQL query and get the results as GraphQL objects. Here is an example: https://tools.wmflabs.org/tptools/wdql.html?query=%7B%0A%20%20douglas_adams_types%3A%20findEntitiesWithSPARQL(where%3A%20%22wd%3AQ42%20wdt%3AP31%20%3Fentity%22)%20%7B%0A%20%20%20%20edges%20%7B%0A%20%20%20%20%20%20node%20%7B%0A%20%20%20%20%20%20%20%20id%0A%20%20%20%20%20%20%20%20...on%20Item%20%7B%0A%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20en_label%3A%20label(language%3A%20%22en%22)%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20value%0A%20%20%20%20%20%20%20%20%20%20%20%20language%0A%20%20%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20%20%20sitelinks(sites%3A%20%5B%22enwiki%22%2C%20%22frwiki%22%5D)%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20title%0A%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D%0A
Cheers, Thomas > Le 3 janv. 2018 à 18:07, Denny Vrandečić <[email protected]> a écrit : > > That's great! I was having the same thought, but was thinking on top of the > SPARQL interface - but if it works on top of the API even better. > > Thanks for that, this might be quite interesting. I really hope that it can > integrated into Wikidata proper. > > On Mon, Jan 1, 2018 at 9:12 AM Thomas Pellissier Tanon > <[email protected]> wrote: > Dear all, > > I just started to implement a simple GraphQL wrapper on top of the Wikibase > API. > For those who do not know what GraphQL is, it is a query language optimized > for data retrieval: http://graphql.org/ > It currently maps most of the PHP DataModel structures with an interface > similar to the one of the JSON API and provides some demo queries and > mutations. > > More details are in this Phabricator task: > https://phabricator.wikimedia.org/T173214 > > Happy new year, > > Thomas (User:Tpt) > _______________________________________________ > Wikidata-tech mailing list > [email protected] > https://lists.wikimedia.org/mailman/listinfo/wikidata-tech > _______________________________________________ > Wikidata-tech mailing list > [email protected] > https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
signature.asc
Description: Message signed with OpenPGP
_______________________________________________ Wikidata-tech mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
