Fixes RDF export of subobjects

Partial integration of the patch https://gerrit.wikimedia.org/r/#/c/70047/4
from Dbeeson
I don't think this is the way to get subobjects data? there should be a flag in getSemanticData() for it..  Original developer or Markus might know well.