Dataset structure extraction