Better batching for input data document, fix some issues for clinical trials mapping generation
add rdf generation test for clinical trials