GH-2400: RDFParser.toDatasetGraph() transactions

Calling RDFParser.toDatasetGraph() creates a fresh transactional
DatasetGraph and then proceeds to using it without transactions meaning
every triple/quad output is a separate auto-committed write transaction.
This behaviour is changed to place the entire parsing process inside a
write transaction to boost performance.
2 files changed