Skip to content
Snippets Groups Projects
Commit 1bdea0bb authored by Benedikt Heinrichs's avatar Benedikt Heinrichs Committed by Sandra Westerhoff
Browse files

Fix: TargetClass independent of Base Url

parent 51606fd4
Branches
Tags
1 merge request!104Fix: TargetClass independent of Base Url
......@@ -2,5 +2,4 @@
The TreeApi handles the retrieving or storing metadata to a certain path.
Check out the [docs](https://coscine.rwth-aachen.de/coscine/api/Coscine.Api.Tree/swagger).
......@@ -383,15 +383,6 @@ namespace Coscine.Api.Tree.Controllers
resource.ApplicationProfile += '/';
}
json[graphNameUri.AbsoluteUri]["http://www.w3.org/1999/02/22-rdf-syntax-ns#type"] = new JArray
{
new JObject
{
["value"] = resource.ApplicationProfile,
["type"] = "uri"
}
};
// throw bad request if empty node value is detected
foreach (var node in json.First.First)
{
......@@ -445,7 +436,7 @@ namespace Coscine.Api.Tree.Controllers
// Default values is not checked or added
// validate the data
if (!_rdfStoreConnector.ValidateShacl(graph, graphNameUri))
if (!_rdfStoreConnector.ValidateShacl(graph, graphNameUri, new Uri(resource.ApplicationProfile)))
{
return BadRequest("Data has the wrong format!");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment