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