Added a function for parenting parent nodes containing semantic data