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

Fix: Invalidate Metadata

parent 17f2082c
No related branches found
No related tags found
No related merge requests found
Pipeline #947492 failed
......@@ -36,18 +36,7 @@ public class LinkedResourceType : BaseResourceType
public override Task DeleteEntry(string id, string key, Dictionary<string, string>? options = null)
{
if (!key.StartsWith("/"))
{
key = "/" + key;
}
var urlId = _coscineLDPHelper.GetId(id, key, true, false, "data");
var provenanceGraph = _rdfStoreConnector.GetEmptySmallUpdateGraph(
$"https://purl.org/coscine/resources/{id}{key}/@type=data"
);
MetadataUtil.AssertToGraph(provenanceGraph, urlId, Uris.ProvWasInvalidatedBy, Uris.CoscineUserAgent);
_rdfStoreConnector.AddGraph(provenanceGraph);
_rdfStoreConnector.SetInvalidation(id, key, "data");
return Task.CompletedTask;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment