enforce hierarchy-sentences to end appropriately.
Merge pull request #1102 from ontohub/1100-fix_tree_generation

enforce hierarchy-sentences to end appropriately.
set the label as display_name for obo-symbols.
return the query-hash, not its last element.
save entitiy only if it is not null.