Updated triple mapper and added tests.
Simplified query vertex placement on node 0: the mapper does it now.