Remove duplicate inner RDF classes