added functions 'get_subjects_for' and 'get_predicates_and_objects_for' for merger
refactored sparql query; is working now
some fixes in mapper
implemented function 'merge_into_entity'