triplestore refactor, fix front-end id's