Hi I've been experimenting with the PHP-API and looked into the SMW-Code for the last two days. I've been trying to create a Query, wich queries for pages inside the Category: Computer and displays their property called "has Connection" like this:
$query = '[[Category:Computer]]'; $printouts[] = new SMWPrintRequest(SMWPrintRequest::PRINT_PROP, 'has Connection', 'has Connection'); $queryobj = SMWQueryProcessor::createQuery($query, $params, SMWQueryProcessor::SPECIAL_PAGE, $params['format'], $printouts); $queryResult = smwfGetStore()->getQueryResult($queryobj); Unfortunatedly I keep getting an error: Catchable fatal error: Argument 2 passed to SMWSQLStore2::getPropertyValues() must be an instance of SMWPropertyValue, string given, called in /var/www/mw/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2_Quer ies.php on line 315 and defined in /var/www/mw/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php on line 338 I reckon that I'm getting something fundamentally wrong. If anyone could give me a hint it would be very appreciated. Thanks Marco -- Marco Mauritczat Webadministration Rechner- und Datenkommunikation (RuD) Tel.: +49-721-9654-954 E-Mail: ma...@fzi.de Skype: dermauri ============================================================================ == FZI Forschungszentrum Informatik an der Universität Karlsruhe Haid-und-Neu-Str. 10-14, D-76131 Karlsruhe Tel.: +49-721-9654-0, Fax: +49-721-9654-959 Stiftung des bürgerlichen Rechts Stiftung Az: 14-0563.1 Regierungspräsidium Karlsruhe Vorstand: Prof. Dr.-Ing. Rüdiger Dillmann, Dipl. Wi.-Ing. Michael Flor, Prof. Dr. rer. nat. Dr. h.c. Wolffried Stucky, Prof. Dr. rer. nat. Rudi Studer Vorsitzender des Kuratoriums: Ministerialdirigent Günther Leßnerkraus ============================================================================ == ------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev _______________________________________________ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel