Refactoring of RDF transformation