refactor relation model
add hash based entity interlinking and simple key identification