From: Yaron K. <ya...@wi...> - 2011-08-28 21:56:03
|
Hi everyone, The "SMWAskAPI" extension adds an action to the MediaWiki API, "ask", that lets you call SMW queries via api.php: http://www.mediawiki.org/wiki/Extension:SMWAskAPI I didn't think such a thing was necessary, since the Special:Ask page basically functions as an API already, if you use the query formats "csv", "json" etc. But I was convinced recently that this is in fact an important feature, for two main reasons: the API makes it easier to create queries, using the "...fm" formats, like "jsonfm"; and various libraries for running MediaWiki "bots" are configured for calling api.php specifically. Any thoughts, then, on adding this code directly into Semantic MediaWiki? I know there's an overall goal to try to make SMW as small as possible, but this extension's code is pretty small - here's the main body of code: http://smwaskapi.svn.sourceforge.net/viewvc/smwaskapi/trunk/SMWAskAPI/api/SMWAsk_API.php?revision=2&view=markup ..and its function certainly seems to fit in directly with SMW's core functionality. -Yaron |
From: badon <fas...@gm...> - 2011-08-28 22:13:12
|
I'm not sensitive to the consequences for code size, but I can tell you that my plan for working around the lack of built-in uniqueness checking for properties will probably involve a bot querying for duplicates, and then removing them, discussed here: http://old.nabble.com/forum/ViewPost.jtp?post=32328729&framed=y So, I can think of at least one use-case where an API will be helpful, and I'm in favor of adding this functionality. I don't see any downside to integrating. It would be more convenient for keep track of it, and for keeping it up to date. Yaron Koren-2 wrote: > > Hi everyone, > > The "SMWAskAPI" extension adds an action to the MediaWiki API, "ask", that > lets you call SMW queries via api.php: > > http://www.mediawiki.org/wiki/Extension:SMWAskAPI > > I didn't think such a thing was necessary, since the Special:Ask page > basically functions as an API already, if you use the query formats "csv", > "json" etc. But I was convinced recently that this is in fact an important > feature, for two main reasons: the API makes it easier to create queries, > using the "...fm" formats, like "jsonfm"; and various libraries for > running > MediaWiki "bots" are configured for calling api.php specifically. > > Any thoughts, then, on adding this code directly into Semantic MediaWiki? > I > know there's an overall goal to try to make SMW as small as possible, but > this extension's code is pretty small - here's the main body of code: > > http://smwaskapi.svn.sourceforge.net/viewvc/smwaskapi/trunk/SMWAskAPI/api/SMWAsk_API.php?revision=2&view=markup > > ..and its function certainly seems to fit in directly with SMW's core > functionality. > > -Yaron > > ------------------------------------------------------------------------------ > EMC VNX: the world's simplest storage, starting under $10K > The only unified storage solution that offers unified management > Up to 160% more powerful than alternatives and 25% more efficient. > Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev > _______________________________________________ > Semediawiki-devel mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-devel > > -- View this message in context: http://old.nabble.com/Adding-%22SMWAskAPI%22-code-to-SMW-tp32353431p32353474.html Sent from the Semantic Mediawiki - Development mailing list archive at Nabble.com. |
From: Yury K. <kat...@gm...> - 2011-08-28 23:56:31
|
Great job! I had a great need in such an extension! I'll try to write a small wrapper for aks-api for pywikipediabot - if it ends up to be nice I'll make it opensource. Yury On Sun, Aug 28, 2011 at 10:55 PM, Yaron Koren <ya...@wi...> wrote: > Hi everyone, > > The "SMWAskAPI" extension adds an action to the MediaWiki API, "ask", that > lets you call SMW queries via api.php: > > http://www.mediawiki.org/wiki/Extension:SMWAskAPI > > I didn't think such a thing was necessary, since the Special:Ask page > basically functions as an API already, if you use the query formats "csv", > "json" etc. But I was convinced recently that this is in fact an important > feature, for two main reasons: the API makes it easier to create queries, > using the "...fm" formats, like "jsonfm"; and various libraries for running > MediaWiki "bots" are configured for calling api.php specifically. > > Any thoughts, then, on adding this code directly into Semantic MediaWiki? I > know there's an overall goal to try to make SMW as small as possible, but > this extension's code is pretty small - here's the main body of code: > > > http://smwaskapi.svn.sourceforge.net/viewvc/smwaskapi/trunk/SMWAskAPI/api/SMWAsk_API.php?revision=2&view=markup > > ..and its function certainly seems to fit in directly with SMW's core > functionality. > > -Yaron > > > ------------------------------------------------------------------------------ > EMC VNX: the world's simplest storage, starting under $10K > The only unified storage solution that offers unified management > Up to 160% more powerful than alternatives and 25% more efficient. > Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev > _______________________________________________ > Semediawiki-devel mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-devel > > -- Yury V. Katkov WikiVote! llc |
From: Yaron K. <ya...@wi...> - 2011-08-29 00:27:39
|
Thanks for the feedback. Just to clarify, I didn't write the extension - Pierre Mz did. -Yaron On Sun, Aug 28, 2011 at 7:54 PM, Yury Katkov <kat...@gm...> wrote: > Great job! > > I had a great need in such an extension! I'll try to write a small wrapper > for aks-api for pywikipediabot - if it ends up to be nice I'll make it > opensource. > > Yury > > On Sun, Aug 28, 2011 at 10:55 PM, Yaron Koren <ya...@wi...> wrote: > >> Hi everyone, >> >> The "SMWAskAPI" extension adds an action to the MediaWiki API, "ask", that >> lets you call SMW queries via api.php: >> >> http://www.mediawiki.org/wiki/Extension:SMWAskAPI >> >> I didn't think such a thing was necessary, since the Special:Ask page >> basically functions as an API already, if you use the query formats "csv", >> "json" etc. But I was convinced recently that this is in fact an important >> feature, for two main reasons: the API makes it easier to create queries, >> using the "...fm" formats, like "jsonfm"; and various libraries for running >> MediaWiki "bots" are configured for calling api.php specifically. >> >> Any thoughts, then, on adding this code directly into Semantic MediaWiki? >> I know there's an overall goal to try to make SMW as small as possible, but >> this extension's code is pretty small - here's the main body of code: >> >> >> http://smwaskapi.svn.sourceforge.net/viewvc/smwaskapi/trunk/SMWAskAPI/api/SMWAsk_API.php?revision=2&view=markup >> >> ..and its function certainly seems to fit in directly with SMW's core >> functionality. >> >> -Yaron >> >> >> ------------------------------------------------------------------------------ >> EMC VNX: the world's simplest storage, starting under $10K >> The only unified storage solution that offers unified management >> Up to 160% more powerful than alternatives and 25% more efficient. >> Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev >> _______________________________________________ >> Semediawiki-devel mailing list >> Sem...@li... >> https://lists.sourceforge.net/lists/listinfo/semediawiki-devel >> >> > > > -- > Yury V. Katkov > WikiVote! llc > -- WikiWorks · MediaWiki Consulting · http://wikiworks.com |
From: Leonard W. <leo...@ho...> - 2011-08-29 11:07:09
|
I definitely agree that SMWAskAPI belongs in the core. When we think of keeping code as small and lean as possible we should consider not just the in-site code, but also that of client sites and applications using our data elsewhere. If clients can do with one wrapper library instead of two to write their code, that would be a great improvement for them, and in the long term also for us, the data maintainers too. After all, the open nature is one of the beauties of MediaWiki + SMW. Also, before discovering SMWAskAPI I wrote custom extensions to query SMW through the MediaWiki API for the above reason, and I guess more people have been doing that. Best regards Leo Wallentin http://säsongsmat.nu Leonard Wallentin leo...@ho... +46 (0)735-933 543http://säsongsmat.nu http://nairobikoll.se/ http://twitter.com/leo_wallentin Skype: leo_wallentin Thanks for the feedback. Just to clarify, I didn't write the extension - Pierre Mz did. -Yaron On Sun, Aug 28, 2011 at 7:54 PM, Yury Katkov <kat...@gm...> wrote: Great job! I had a great need in such an extension! I'll try to write a small wrapper for aks-api for pywikipediabot - if it ends up to be nice I'll make it opensource. Yury On Sun, Aug 28, 2011 at 10:55 PM, Yaron Koren <ya...@wi...> wrote: Hi everyone, The "SMWAskAPI" extension adds an action to the MediaWiki API, "ask", that lets you call SMW queries via api.php: http://www.mediawiki.org/wiki/Extension:SMWAskAPI I didn't think such a thing was necessary, since the Special:Ask page basically functions as an API already, if you use the query formats "csv", "json" etc. But I was convinced recently that this is in fact an important feature, for two main reasons: the API makes it easier to create queries, using the "...fm" formats, like "jsonfm"; and various libraries for running MediaWiki "bots" are configured for calling api.php specifically. Any thoughts, then, on adding this code directly into Semantic MediaWiki? I know there's an overall goal to try to make SMW as small as possible, but this extension's code is pretty small - here's the main body of code: http://smwaskapi.svn.sourceforge.net/viewvc/smwaskapi/trunk/SMWAskAPI/api/SMWAsk_API.php?revision=2&view=markup ..and its function certainly seems to fit in directly with SMW's core functionality. -Yaron ------------------------------------------------------------------------------ EMC VNX: the world's simplest storage, starting under $10K The only unified storage solution that offers unified management Up to 160% more powerful than alternatives and 25% more efficient. Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev _______________________________________________ Semediawiki-devel mailing list Sem...@li... https://lists.sourceforge.net/lists/listinfo/semediawiki-devel -- Yury V. Katkov WikiVote! llc -- WikiWorks · MediaWiki Consulting · http://wikiworks.com ------------------------------------------------------------------------------ EMC VNX: the world's simplest storage, starting under $10K The only unified storage solution that offers unified management Up to 160% more powerful than alternatives and 25% more efficient. Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev _______________________________________________ Semediawiki-devel mailing list Sem...@li... https://lists.sourceforge.net/lists/listinfo/semediawiki-devel |
From: Markus K. <ma...@se...> - 2011-08-31 15:46:18
|
On 28/08/11 22:55, Yaron Koren wrote: > Hi everyone, > > The "SMWAskAPI" extension adds an action to the MediaWiki API, "ask", > that lets you call SMW queries via api.php: > > http://www.mediawiki.org/wiki/Extension:SMWAskAPI > > I didn't think such a thing was necessary, since the Special:Ask page > basically functions as an API already, if you use the query formats > "csv", "json" etc. But I was convinced recently that this is in fact an > important feature, for two main reasons: the API makes it easier to > create queries, using the "...fm" formats, like "jsonfm"; and various > libraries for running MediaWiki "bots" are configured for calling > api.php specifically. > > Any thoughts, then, on adding this code directly into Semantic > MediaWiki? I know there's an overall goal to try to make SMW as small as > possible, but this extension's code is pretty small - here's the main > body of code: > > http://smwaskapi.svn.sourceforge.net/viewvc/smwaskapi/trunk/SMWAskAPI/api/SMWAsk_API.php?revision=2&view=markup > <http://smwaskapi.svn.sourceforge.net/viewvc/smwaskapi/trunk/SMWAskAPI/api/SMWAsk_API.php?revision=2&view=markup> > > ..and its function certainly seems to fit in directly with SMW's core > functionality. Agreed. The concern of code size is not so severe if the code is very modular. Another concern is maintenance: if it is in core, somebody needs to take the responsibility for maintaining it to fix bugs and to keep it compatible with MW changes in the future. This is more likely if the code is clean, well-documented, and short (so as to be easily maintained by new people in case the current maintainer cannot continue the work). If we can reasonably assume this, then we can certainly add it to core. Markus > > > ------------------------------------------------------------------------------ > EMC VNX: the world's simplest storage, starting under $10K > The only unified storage solution that offers unified management > Up to 160% more powerful than alternatives and 25% more efficient. > Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev > > > > _______________________________________________ > Semediawiki-devel mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-devel |