Re: [SMW-devel] property defined by function
Hi, I would also look into the ArrayExtension (http://www.mediawiki.org/wiki/Extension:ArrayExtension) If you have something like [[HeightLength::1;4]] [[HeightLength::2;5]] you can extract and assign a HeightArray and a LengthArray by queries (see examples on extension page). Unfortunately the ArrayExtension doesn't implement the array_map function but it shouldn't be too difficult to add something like #arraymap which would use PHP's array_map() function with the given parameters. And than something along the line {{#arraydefine:SquareArray| {{#arraymap:HeightArray|LengthArray|'function($l,$h){return(0.5*$h*$l);}' }} would return an array of the results. Cheers, Gu Quoting Zeev Pekar z.pe...@gmail.com: Hi, I've just added an enhancement request: https://bugzilla.wikimedia.org/show_bug.cgi?id=22303 Do you think it is interesting enough so that SMW developers will implement it? If yes, how long might it take? If no, could you please tell me, whether it is hard to implement such extension and which areas should I take a look at if I have to implement it myself (I'm new to SMW)? thank you in advance, Zeev -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
[SMW-devel] Getting SMW to work with FlaggedRevs?
Hi, If anyone's not aware of the FlaggedRevs extension, it's a neat extension that allows for certain groups of users to flag specific versions of a page as being valid. What's shown to regular readers is then the latest valid version, instead of just the latest version, in the same way that software usually has both latest and stable versions. You can see more here: http://www.mediawiki.org/wiki/Extension:FlaggedRevs It's already in use on several language Wikipedias, including German, Russian and Arabic. It can be used both to guard against vandalism, and, for internal wikis, to mimic a publish feature that standard CMS's usually have - that information is not displayed officially until someone has approved it. It seems to make a lot of sense to me for SMW to support FlaggedRevs, so that if that extension is installed, the semantic data for a page isn't saved on page saves, but instead on page validations. I don't know how this would be done technically, but I'd imagine it wouldn't be that hard. Any thoughts? -Yaron -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
Re: [SMW-devel] Getting SMW to work with FlaggedRevs?
Yaron, I think it's a much more complex question as data should not only be visible in one state, but in two states - for logged in users it is shown in latest version and to everybody else in only flagged version which means that SMW should start distinguishing between those two versions effectively storing two datasets or a dataset with two states for each triple. I think as intermediary solution, administrator should be able to pick which one he wants, stable or latest, but to mimic the full functionality, both states of data should be saved (sounds scary). Thank you, Sergey -- Sergey Chernyshev http://www.sergeychernyshev.com/ On Fri, Jan 29, 2010 at 1:59 PM, Yaron Koren yaro...@gmail.com wrote: Hi, If anyone's not aware of the FlaggedRevs extension, it's a neat extension that allows for certain groups of users to flag specific versions of a page as being valid. What's shown to regular readers is then the latest valid version, instead of just the latest version, in the same way that software usually has both latest and stable versions. You can see more here: http://www.mediawiki.org/wiki/Extension:FlaggedRevs It's already in use on several language Wikipedias, including German, Russian and Arabic. It can be used both to guard against vandalism, and, for internal wikis, to mimic a publish feature that standard CMS's usually have - that information is not displayed officially until someone has approved it. It seems to make a lot of sense to me for SMW to support FlaggedRevs, so that if that extension is installed, the semantic data for a page isn't saved on page saves, but instead on page validations. I don't know how this would be done technically, but I'd imagine it wouldn't be that hard. Any thoughts? -Yaron -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
Re: [SMW-devel] Getting SMW to work with FlaggedRevs?
Yes, I agree that it would probably be nice to eventually be able to query both the latest and flagged versions of the data, though as you note it would be rather difficult (scary, even) to implement... I'm glad you agree that this a reasonable starting step. -Yaron On Fri, Jan 29, 2010 at 4:27 PM, Sergey Chernyshev sergey.chernys...@gmail.com wrote: Yaron, I think it's a much more complex question as data should not only be visible in one state, but in two states - for logged in users it is shown in latest version and to everybody else in only flagged version which means that SMW should start distinguishing between those two versions effectively storing two datasets or a dataset with two states for each triple. I think as intermediary solution, administrator should be able to pick which one he wants, stable or latest, but to mimic the full functionality, both states of data should be saved (sounds scary). Thank you, Sergey -- Sergey Chernyshev http://www.sergeychernyshev.com/ On Fri, Jan 29, 2010 at 1:59 PM, Yaron Koren yaro...@gmail.com wrote: Hi, If anyone's not aware of the FlaggedRevs extension, it's a neat extension that allows for certain groups of users to flag specific versions of a page as being valid. What's shown to regular readers is then the latest valid version, instead of just the latest version, in the same way that software usually has both latest and stable versions. You can see more here: http://www.mediawiki.org/wiki/Extension:FlaggedRevs It's already in use on several language Wikipedias, including German, Russian and Arabic. It can be used both to guard against vandalism, and, for internal wikis, to mimic a publish feature that standard CMS's usually have - that information is not displayed officially until someone has approved it. It seems to make a lot of sense to me for SMW to support FlaggedRevs, so that if that extension is installed, the semantic data for a page isn't saved on page saves, but instead on page validations. I don't know how this would be done technically, but I'd imagine it wouldn't be that hard. Any thoughts? -Yaron -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel