On 03/04/11 22:23, Stephan Gambke wrote:
> Hi,
>
> I have two questions.
>
> 1.
> SMWStore::doDataUpdate() takes a SMWSemanticData object. I can build
> these objects via the adder methods. Can I also modify them? I.e. remove
> property-value pairs from a SMWSemanticData object?

AFAIR there is no method for this. It has not been needed so far.  My 
current work on RDF store integration will also lead to some changes in 
this class, so code that depends on it will need to be adjusted for SMW 
1.6.0.

>
> 2.
> Is it intentional that no value is ever really deleted from the store?
> What then is the difference between SMWStore::deleteSubject() and
> SMWStore::clearData()?

Waht exactly do you mean? Data is deleted from the store when it is no 
longer given on a wiki page. The only kinds of "value" that are kept 
forever are wiki pages: the store needs to make an internal reference 
for all pages that are used in properties, even if they do not have 
articles in the wiki. These page references are never deleted, but one 
could make a clean-up script if this should ever be deemed a problem.

Regarding the two methods, I agree that it is not clear what their 
difference is supposed to be (i.e. what different meaning they intend to 
capture). I think deleteSubject() should probably be the one that is 
deprecated and removed, since there is indeed no special way of 
"deleting" a subject in an SMW store other than to clear all its data.

Regards,

Markus

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to