Last active
January 19, 2021 13:25
-
-
Save namedgraph/58d95d8d0cb77238381f367c97b44000 to your computer and use it in GitHub Desktop.
Hash of RDF graph using SPARQL (blank nodes not considered!)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT (SHA1(GROUP_CONCAT(?tripleStr)) AS ?graphHash) | |
WHERE | |
{ { SELECT DISTINCT ?s ?p ?o | |
WHERE | |
{ ?s ?p ?o } | |
} | |
BIND(concat(str(?s), " ", str(?p), " ", str(?o)) AS ?tripleStr) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment