The RDF Dataset Canonicalization and Hash WG published RDF Dataset Canonicalization as a W3C Proposed Recommendation.
"At times, it becomes necessary to compare the differences between sets of graphs, digitally sign them, or generate short identifiers for graphs via hashing algorithms. This document outlines an algorithm for normalizing RDF datasets such that these operations can be performed"
https://www.w3.org/news/2024/rdf-dataset-canonicalization-is-a-w3c-proposed-recommendation/