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