MARMOTTA-556: moved ldf logic out of a RDFHandler to properly manage some errors
MARMOTTA-556: added some tests
MARMOTTA-556: cleanning