Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SparqlStore.php |
— | — | @@ -253,7 +253,11 @@ |
254 | 254 | */ |
255 | 255 | protected function deleteSparqlData( SMWExpResource $expResource ) { |
256 | 256 | $resourceUri = SMWTurtleSerializer::getTurtleNameForExpElement( $expResource ); |
257 | | - $extraNamespaces = array( $expResource->getNamespaceId() => $expResource->getNamespace() ); |
| 257 | + if ( $expResource instanceof SMWExpNsResource ) { |
| 258 | + $extraNamespaces = array( $expResource->getNamespaceId() => $expResource->getNamespace() ); |
| 259 | + } else { |
| 260 | + $extraNamespaces = array(); |
| 261 | + } |
258 | 262 | $masterPageProperty = SMWExporter::getSpecialNsResource( 'swivt', 'masterPage' ); |
259 | 263 | $masterPagePropertyUri = SMWTurtleSerializer::getTurtleNameForExpElement( $masterPageProperty ); |
260 | 264 | |