basic function to empty Wikibase objects