Agent-based Learning of Materials Datasets from Scientific Literature