Fix for subobjects for RDF stores

@mwjames Need some help here.

How should we get the old subobjects that should now be deleted? For SQL store we directly query the sql tables.