Transforming Graph Representations for Statistical Relational Learning