On Saturday 09 December 2006 00:59, S Page wrote: > Vitor A. Almeida wrote: > > *Hello everybody. > > I'm trying to import an ontology in owl dl format to my wiki, but after > > I chose the statements to import I get a blank page with this message > > > > Fatal error*: Class 'SMWURITypeHandler' not found in > > */wiki_path/SemanticMediaWiki/includes/SMW_Datatype.php* on line *105 > > > > *wiki_path is used to short the file path. > > > > Anybody seen this before? How do I fix it?
Some comments: * Form-based ontology import is buggy and experimental. It does not work at the moment, and we are not sure whether we wil fix it at some stage. * You can only import things that could also be written directly in the wiki. Most OWL DL statements can't. The idea is to have a way for bootstrapping wikis with information from external knowledge bases, not to enable them to reason against an expressive background ontology (we did some experiments on the latter and wrote a paper, "Reusing ontological background knowledge in a semantic wiki", but it is not a feature of the current distribution). * Whenever we import data to a wiki, we use customised Python scripts based on the Python Wikipedia Bot. See Alternative import at [1]. It is more flexible than a web interface could ever be. * If you need more complex ontologies in conjunction with the data from the wiki, the preferred solution is to export the data from the wiki, and to load it into some capable reasoner together with the background ontology. Cheers, Markus [1] http://ontoworld.org/wiki/Help:Ontology_import > > Thnx in advice. > > No, but I haven't tried ontology import. > > Here's my guess at what might be happening. > Instead of loading the PHP code for every datatype on every request to > MediaWiki, SMW does lazy-loading of the PHP file implementing each > datatype as needed. So SMW_Datatype.php tells itself (in > announceTypeHandler() calls around line 286) that email,uri, url, and > annouri datatypes are implemented by class SMWURITypeHandler in > SMW_DT_URI.php , but doesn't actually include this file. > > Somehow the lazy-loading is broken in your case. Please update to > latest SMW if possible, and file a bug including your version numbers > from Special:Version. > > A possible fix is to explicit put > ## My temp Workaround for ontology import bug > global $smwgIP; > include_once($smwgIP . '/includes/SMW_DT_URI.php'); > > towards the top of SMW_Datatype.php, just after > require_once('SMW_DT_Float.php'); > > to force the code to be loaded. > > Good luck, > -- > =S > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Semediawiki-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/semediawiki-user -- Markus Krötzsch Institute AIFB, University of Karlsruhe, D-76128 Karlsruhe [EMAIL PROTECTED] phone +49 (0)721 608 7362 www.aifb.uni-karlsruhe.de/WBS/ fax +49 (0)721 693 717
pgp3hu35DMk2K.pgp
Description: PGP signature
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Semediawiki-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/semediawiki-user
