{
Resource dataset = GraphUtils.getResourceValue(root, pDataset) ;
Resource index = GraphUtils.getResourceValue(root, pIndex) ;
Dataset ds = (Dataset)a.open(dataset) ;
TextIndex textIndex = (TextIndex)a.open(index) ;
Dataset dst = TextDatasetFactory.create(ds, textIndex) ;
return dst ;
}