Renaming triple-related entities

The pain had to come at some stage.

This has been tested against all backends (including mongo) and manually on the web server.