Skip to content
Snippets Groups Projects
Commit 4b72318a authored by Benedikt Heinrichs's avatar Benedikt Heinrichs
Browse files

Fix hash setting

parent afea8478
No related branches found
No related tags found
1 merge request!4Fix: Optimize Queries
Pipeline #905904 passed
......@@ -233,10 +233,15 @@ public class CoscineMetadataExtractor : IMetadataExtractor
var sha512Hash = Convert.ToBase64String(HashUtil.HashData(loadedEntry, HashAlgorithmName.SHA512));
if (recentDataVersion is null)
{
return;
}
var dataGraphId = recentDataVersion;
var hashGraphId = new Uri($"{dataGraphId}&hash={Guid.NewGuid()}");
var dataGraphSubject = dataGraph.CreateUriNode(dataGraphId);
var dataGraphSubject = dataGraph.CreateUriNode(new Uri(dataGraphId));
var hashSubject = dataGraph.CreateUriNode(hashGraphId);
hashTriples.Add(new Triple(dataGraphSubject,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment