Hej,

We've stumbled upon a problem with the query printer in SMW 1.6.1 and
1.6.2. Any export to RDF (example: [0]) triggers the following exception:

"""
Catchable fatal error: Argument 1 passed to
SMWExporter::addPropertyValues() must be an instance of SMWDIProperty,
instance of SMWPropertyValue given, called in
/var/local/mediawiki/extensions/SemanticMediaWiki/includes/queryprinters/SMW_QP_RDF.php
on line 72 and defined in
/var/local/mediawiki/extensions/SemanticMediaWiki/includes/export/SMW_Exporter.php
on line 150
"""

var_dumping $printreq->getMode() in
SMWRDFResultPrinter->getResultText() reveals the values int(2) and
int(1), i.e. PRINT_PROP in which case $printreq->getData() return an
SMWPropertyValue object and not the required SMWDIProperty.

As we use rdf exports quite extensively, I hope someone can give this a
quick look?!

Thanks,

-- 
David Raison
syn2cat a.s.b.l. - Promoting social and technical innovations
A: 11, rue du cimetière L-8018 Strassen | Luxembourg
T: +352 691 44 23 24
E: da...@hackerspace.lu
W: http://www.hackerspace.lu


[0]
https://www.hackerspace.lu/wiki/Special:Ask/-5B-5BCategory:Event-5D-5D-20-5B-5BStartDate::%2B-5D-5D-20-5B-5BIs-20External::no-5D-5D/-3FStartDate/-3FEndDate/-3FHas-20description/-3FIs-20Event-20of-20Type/-3FHas-20location/mainlabel%3D/order%3DASC/sort%3DStartDate/format%3Drdf/syntax%3Drdfxml/limit%3D100

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to