Hi Valerio, I think you just explained the issue: you've been using a "snapshot" installation of Semantic Drilldown, using the Extension Distributor. The "snapshot" downloads should never be used for Semantic Drilldown - and actually, they shouldn't be used for any of the Semantic MediaWiki-based extensions. Those represent a random state of the code at some moment, and don't constitute any sort of stable version. I wish those didn't exist, actually, because they only serve to confuse a lot of people. I strongly recommend you download the latest version, 0.8.1, from the extension page - I bet that will solve your problem:
http://www.mediawiki.org/wiki/Extension:Semantic_Drilldown -Yaron On Sun, Jan 9, 2011 at 12:25 PM, Valerio Pelliccioni <v...@silkwood.it>wrote: > Thank you Markus, > but what can I do now? > I cannot get back to my 0.7 SD installation. > The Drilldown in my site (http://tradtune.silkwood.it), behaves in > unpredictable ways, i.e.: for some item (of the same property) it works > displaying the list of corresponding articles, while some other item of the > same (or other) property, completely ignores user's choice. > One final note: the tar snapshot (from the Extensions Distributor for > 1.16.x) does not contain the SemanticDrilldown.php file in the root > directory once extracted (tar xvf SemanticDrilldown-MW1.16-r66255.tar). > Is that correct? > > Ciao, > > Valerio > > On Jan 9, 2011, at 3:48 PM, Markus Krötzsch wrote: > > > On 09/01/2011 02:50, Yaron Koren wrote: > >> Hi, > >> > >> I have no idea - I don't think I've heard of that happening before. But > I'd > >> suggest upgrading to the latest version, 0.8.1 - there's at least some > >> chance that that will fix the problem. > > > > The answer is simple: the method that was mentioned in the error does not > exist in SMW. It existed in earlier versions, then had been deprecated for > several releases, and finally got removed. Long before this has happened, I > also sent a notification to this list to explain the change and the required > changes [1]. > > > > The reason is that the datatype model of SMW does not really have such a > thing as an "XSD value" (a string representation suitable for XML Schema). > It never really had, but it was close enough at some point, so this method > was used as the main machine readable value. > > > > With the evolution of SMW datatypes, it became clear that a single string > cannot adequately represent all datavalues. Strings have one value; pages > have a name, namespaces and interwiki prefix; numbers have a numeric value > and a unit string; coordinates have latitude and longitude; ... So a new > method getDBkeys() that returns an array of the relevant values is now used. > > > > The old uses of getXSDValue() in legacy code need to be replaced by a > method that does the right thing. It is not possible to say what "the right > thing" is in general, since getXSDValue() has been used in many places for > many reasons. Sometimes using getWikiValue() will be just as good, sometimes > you need to access some value in getDBkeys(), sometimes there were implicit > assumptions on the format of getXSDValue() and special replacement methods > have been introduced (e.g. for dates the method used to return an ISO > conformant date string -- there is a new method for this now). What needs to > be done depends on the code in question but it is usually easy to > accomplish. > > > > - Markus > > > > [1] > http://www.mail-archive.com/semediawiki-devel@lists.sourceforge.net/msg01262.html > > > >> On Sat, Jan 8, 2011 at 8:23 AM, Valerio Pelliccioni<v...@silkwood.it> > wrote: > >> > >>> * > >>> Hi all, > >>> I've made an upgrade from SD 0.7 to SD 0.8 > >>> Unexpectedly I got this Fatal Error: > >>> Call to undefined method SMWStringValue::getXSDValue() in > >>> /var/lib/mediawiki/extensions/SemanticDrilldown/includes/SD_Utils.inc > on > >>> line 155 > >>> after some research and tentative I realized that my LocalSettings > pointed > >>> at > >>> > >>> > include_once("$IP/extensions/SemanticDrilldown/includes/SD_Settings.php"); > >>> > >>> instead of > >>> > >>> include_once("$IP/extensions/SemanticDrilldown/SemanticDrilldown.php"); > >>> > >>> Then I made the amendments but now the DrillDown does not work, i.e. in > the > >>> Special:BrowseData page I get the different items corresponding to the > >>> (filtered) properties but no articles > >>> I just replaced the old 0.7 directories system (under > >>> /var/lib/mediawiki/extensions) with the new 0.8 > >>> Did I make a mistake or miss something? > >>> Configuration > >>> > >>> ProductVersionMediaWiki<http://www.mediawiki.org/>1.16.0PHP< > http://www.php.net/>5.2.4-2ubuntu5.10 > >>> (apache2handler)MySQL<http://www.mysql.com/ > >5.0.51a-3ubuntu5.5Installed > >>> extensionsSemantic extensionsSemantic Drilldown< > http://www.mediawiki.org/wiki/Extension:Semantic_Drilldown>(Version > >>> 0.8)A drilldown interface for navigating through semantic dataYaron > Koren > >>> and David LoomerSemantic Forms< > http://www.mediawiki.org/wiki/Extension:Semantic_Forms>(Version > >>> 2.0.5)Forms for adding and editing semantic dataYaron Koren and > othersSemantic > >>> MediaWiki<http://semantic-mediawiki.org/>(Version 1.5.3)Making your > wiki > >>> more accessible - for machines and humans (online documentation< > http://semantic-mediawiki.org/wiki/Help:User_manual> > >>> )Markus Krötzsch<http://korrekt.org/>, Denny Vrandecic< > http://simia.net/> > >>> and others<http://www.ohloh.net/p/smw/contributors>. Maintained by > AIFB > >>> Karlsruhe<http://www.aifb.kit.edu/web/Wissensmanagement/en>.Semantic > >>> Result Formats< > http://semantic-mediawiki.org/wiki/Help:Semantic_Result_Formats> > >>> (Version 1.5.2 alpha) > >>> > >>> Please help > >>> > >>> Valerio > >>> * > >>> > >>> > >>> > ------------------------------------------------------------------------------ > >>> Gaining the trust of online customers is vital for the success of any > >>> company > >>> that requires sensitive data to be transmitted over the Web. Learn > how to > >>> best implement a security strategy that keeps consumers' information > secure > >>> and instills the confidence they need to proceed with transactions. > >>> http://p.sf.net/sfu/oracle-sfdevnl > >>> _______________________________________________ > >>> Semediawiki-devel mailing list > >>> Semediawiki-devel@lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/semediawiki-devel > >>> > >>> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ > >> Gaining the trust of online customers is vital for the success of any > company > >> that requires sensitive data to be transmitted over the Web. Learn how > to > >> best implement a security strategy that keeps consumers' information > secure > >> and instills the confidence they need to proceed with transactions. > >> http://p.sf.net/sfu/oracle-sfdevnl > >> > >> > >> > >> _______________________________________________ > >> Semediawiki-devel mailing list > >> Semediawiki-devel@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/semediawiki-devel > > > > -- WikiWorks · MediaWiki Consulting · http://wikiworks.com
------------------------------------------------------------------------------ Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel