You can query for the schemaMetadata aspect and use the fields in it for comparing (see
https://datahubproject.io/docs/cli/#get). Alternately, you could ingest the most-possible schema for the dataset and use the timeline
CLI or
API to get the schema difference.