create matrix from yago