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

Deal with inherited APs

parent e6d0b1d8
No related tags found
1 merge request!116Fix: Make Inherited AP's metadata work
......@@ -343,13 +343,6 @@ namespace Coscine.Api.Tree.Controllers
BaseUri = graphNameUri
};
StringParser.Parse(tempGraph, metadataObject.Value<string>("metadata"), MimeTypesHelper.GetParser(mimeType));
var triplesList = tempGraph.Triples.ToArray();
var subjectNode = tempGraph.CreateUriNode(graphNameUri);
foreach (var triple in triplesList)
{
tempGraph.Retract(triple);
tempGraph.Assert(new Triple(subjectNode, triple.Predicate, triple.Object));
}
json = JObject.Parse(VDS.RDF.Writing.StringWriter.Write(tempGraph, MimeTypesHelper.GetWriter("application/rdf+json")));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment