diff --git a/extensions/linkeddataserver/LinkeddataPlugin.php b/extensions/linkeddataserver/LinkeddataPlugin.php index f21939bd0..862f843fb 100644 --- a/extensions/linkeddataserver/LinkeddataPlugin.php +++ b/extensions/linkeddataserver/LinkeddataPlugin.php @@ -28,18 +28,17 @@ class LinkeddataPlugin extends OntoWiki_Plugin * * @var array */ - private $_typeMapping - = array( - DEFAULT_TYPE => 'html', // default is xhtml - 'text/html' => 'html', // we only deliver XML-compatible html - 'application/xhtml+xml' => 'html', - 'application/rdf+xml' => 'rdf', - 'text/n3' => 'n3', - 'text/turtle' => 'ttl', - 'application/rdf+json' => 'json', - 'application/json' => 'json', - 'application/xml' => 'html' // TODO: should this be xhtml or rdf? - ); + private $_typeMapping = array( + DEFAULT_TYPE => 'html', // default is xhtml + 'text/html' => 'html', // we only deliver XML-compatible html + 'application/xhtml+xml' => 'html', + 'application/rdf+xml' => 'rdf', + 'text/n3' => 'n3', + 'text/turtle' => 'ttl', + 'application/rdf+json' => 'json', + 'application/json' => 'json', + 'application/xml' => 'html' // TODO: should this be xhtml or rdf? + ); /** * This method is called, when the onIsDispatchable event was triggered. @@ -110,6 +109,7 @@ public function onIsDispatchable($event) case 'rdf': case 'n3': case 'ttl': + case 'json': // Check the config, whether provenance information should be included. $prov = false; if (isset($this->_privateConfig->provenance)