class MarkLogicDatasetGraph extends DatasetGraphTriplesQuads implements
        DatasetGraph, Transactional {

    public Dataset toDataset() {
        checkIsOpen();
        return DatasetFactory.wrap(this);
    }

}

class MarkLogicDatasetGraphTest extends DatasetGraphTriplesQuads {

    private static Logger log;

    @Test
    public void testRIOTWrite() {

        Dataset dataSet = getMarkLogicDatasetGraph("testdata/smallfile.nt")
                .toDataset();
        RDFDataMgr.write(System.out, dataSet, RDFFormat.TRIG_PRETTY);
    }

}