Hi developers,

just to let you know about internal changes in SMW1.1 that may affect your 
coding. Most of it should work exactly as before. Two changes (extensions) 
are probably most notable:

(1) SMWStore::getSemanticData($title). This new function of the storage API 
lets you retrieve all data (the whole "Factbox") of some page without having 
to issue many smaller requests. It is useful for performance. It can be 
restricted to certain datatypes or special properties for further 
optimisation.

(2) SMWInfolink. In response to the problems with generating (very long) 
links, the SMWInfolink class has become smarter. It now stores/maintains not 
only a link target, but also separate parameters, and it offers static 
methods for also decoding these (in special pages). It is more effective in 
creating links that work from that data (e.g. you can now even have 
property "looking glass" searches for values with symbols like "<"). You can 
look at the now very short class in SMQ_QP_RSSlink.php to see some use of 
these links (the class might become longer in SVN soon, but the 1.1 version 
is still very short). Decoding is done e.g. in 
SMW_SpecialSearchByProperty.php.


'''The second item means that most classes that build links should now rather 
create such an Infolink object. This is done e.g. in SMWQueryResult, and the 
old functions getQueryTitle() and getQueryURL() are deprecated. They will 
vanish at some point -- please update any query printers you have created.'''


Cheers,

Markus

-- 
Markus Krötzsch
Institut AIFB, Universität Karlsruhe (TH), 76128 Karlsruhe
phone +49 (0)721 608 7362          fax +49 (0)721 608 5998
[EMAIL PROTECTED]          www  http://korrekt.org

Attachment: signature.asc
Description: This is a digitally signed message part.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to