Learning Knowledge Graph-based World Models of Textual Environments