Re: [SMW-devel] How to create a SMWQueryProcessor - Query

2010-02-11 Thread Marco Mauritczat
in, Marco -Original Message- From: Stephan Robotta [mailto:[email protected]] Sent: Thursday, February 11, 2010 10:02 AM To: [email protected] Subject: Re: [SMW-devel] How to create a SMWQueryProcessor - Query Hi, change the line: $printouts[] = new SMWPr

Re: [SMW-devel] How to create a SMWQueryProcessor - Query

2010-02-11 Thread Stephan Robotta
Hi, change the line: $printouts[] = new SMWPrintRequest(SMWPrintRequest::PRINT_PROP, 'has Connection', 'has Connection'); into: $printouts[] = new SMWPrintRequest(SMWPrintRequest::PRINT_PROP, 'has Connection', SMWPropertyValue::makeUserProperty('has Connection')); That should do it. Best regar

[SMW-devel] How to create a SMWQueryProcessor - Query

2010-02-10 Thread Marco Mauritczat
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[] =