Hi Markus!
This is really the case when change of the page is not acceptable:
first of all the appearance of {{#set}} can be confusing for users.
Strictly speaking every time when the page updates I will also need to
check where my property value come from (or deny using certain
properties in text): if user will place the property [[vote::5]] in
the page text I will be in trouble.

Thanks for this advice!
-----
Yury Katkov




On Wed, Feb 22, 2012 at 9:18 PM, Markus Krötzsch
<mar...@semantic-mediawiki.org> wrote:
> On 22/02/12 16:31, Yury Katkov wrote:
>>
>> Hi everyone!
>>
>> I want to semantize ArticleFeedback votes so that they will be
>> accessible via SMW queries. What is the best way to silently add
>> semantic properties to the wiki page? Is it ok to add them
>> programmaticaly using SMWPropertyValue and do not change the text of
>> the page?
>
>
> When changing the wiki page is acceptable, the function #set can be used to
> do it silently. When a programmatic solution is needed, care must be taken
> to do it in a place that will write the property in all cases when data is
> refreshed (page edits *and* update jobs). The place where this is best done
> is the hook storeData() in includes/SMW_ParseData.php. SMW does not
> currently offer a hook to extend this -- maybe we should.
>
> Regards
>
> Markus
>
>>
>> Sincerely yours,
>> -----
>> Yury Katkov
>>
>>
>> ------------------------------------------------------------------------------
>> Virtualization&  Cloud Management Using Capacity Planning
>> Cloud computing makes use of virtualization - but cloud computing
>> also focuses on allowing computing to be delivered as a service.
>> http://www.accelacomm.com/jaw/sfnl/114/51521223/
>> _______________________________________________
>> Semediawiki-devel mailing list
>> Semediawiki-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
>>
>

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to