In MediaWiki 1.17 (the last stable release of MW) SPARK extension does not
work for me.
I found out that apparently in Spark.class.php the line
"return array( $parser->insertStripItem( $html, $parser->mStripState ),
'noparse' => true, 'isHTML' => true );"
replaces ? after an empty space by a non-breaking space ( ), which
breaks the SPARQL query. Apparently, it is not a bug. In 1.18 this does not
seem to happen. How about inserting a line which removes all spaces before
?. This would still make the SPARQL queries work, for MW 1.17 and 1.18 (I
have tested it).
Regards,
Benedikt
--
AIFB, Karlsruhe Institute of Technology (KIT)
Phone: +49 721 608-47946
Email: benedikt...@kit.edu
Web: http://www.aifb.kit.edu/web/Hauptseite/en
Thanks for this.
You could use Firebug to have an execution stopped at jquery.spark.js line
83 (running "format($this, response, reducer(response), settings);".
There, you copy the value of this->url into the browser and check the error
message.
In your query, I am not sure whether you need a "from"-clause (e.g., from
<http://smartdbwrap.appspot.com/data/analysisobject/ds>) and a
data-spark-endpoint (e.g., data-spark-endpoint="http://qcrumb.com/sparql",
but qcrumb seems to be broken at the moment) to make it work.
Best,
Benedikt
PS: By now, I have commit access, so next time I can commit the changes
also, if you want.
--
AIFB, Karlsruhe Institute of Technology (KIT)
Phone: +49 721 608-47946
Email: benedikt...@kit.edu
Web: http://www.aifb.kit.edu/web/Hauptseite/en