Extract facts to build the relation graph