As far as I see, the problem is that the semantic properties in your 
article are set by a template call (the "{{WeightTemplate|Weight=20}}" 
part), where the actual semantic tags are created in the 
Template:WeightTemplate template article (Have you checked the wiki 
source of that one?), and unfortunately SMWWriter does not support 
editing facts defined via template calls at the moment.

This might also explain why you do not see the category tags directly in 
the article, since it is maybe too defined in the template.

Best Regards
// Samuel

On 11/22/2010 11:25 PM, mo...@gmx.net wrote:
> ----------
> <?xml version="1.0"?>
> <api>
>   <query>
>     <pages>
>       <page pageid="4322" ns="0" title="Tom">
>         <revisions>
>           <rev xml:space="preserve">{{WeightTemplate
> |Weight=20
> }}
> This is a second simple test.</rev>
>         </revisions>
>       </page>
>     </pages>
>   </query>
> </api>
> ----------
> I was rather expecting the content to contain a string like 
> “[[HasWeightInKg:20]]”. I guess that updating the above content of the page 
> doesn’t have any effect on the actual semantic values of the page/instance, 
> does it? I am also missing other data, such as the category, to which the 
> page belongs (i.e. its class). Therefore, this also seems to be a dead end…
>
> => My question: Does someone know how to properly receive & update semantic 
> properties of a page by using the API?
>
> Kind regards,
> Simon


-- 
Samuel Lampa
---------------------------------------
      Student @ Uppsala University
    Blog: http://saml.rilspace.org
---------------------------------------

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to