Hey,
> I would like to create an new instance of the image and fill the
properties with some values.
Do keep in mind SMW stores triples [0]. In my experience, people familiar
with OOP and relational databases tend to assume the exact same principles
apply (as it does look a bit similar from the wiki users point of view),
resulting in them doing not so smart things :)
> Would you have some simple examples ?
You might want to have a look at the SMW Factbox code [1], as it does such a
thing.
[0]
https://secure.wikimedia.org/wikipedia/en/wiki/Resource_Description_Framework#Overview
[1]
http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/SemanticMediaWiki/includes/SMW_Factbox.php?view=markup
Cheers
--
Jeroen De Dauw
http://www.bn2vs.com
Don't panic. Don't be evil.
--
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel