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

Merge branch 'dev' into Issue/1792-newMetadataStructure

parents b9f28d42 a634ee3c
No related branches found
No related tags found
1 merge request!90New: Use the new metadata structure (coscine/issues#1792)
......@@ -167,7 +167,7 @@ namespace Coscine.Api.Tree.Controllers
var shPath = property.FirstOrDefault((triple) => triple.Predicate.ToString() == "http://www.w3.org/ns/shacl#path");
if (shPath != null)
{
var values = graph.GetTriplesWithPredicate(shPath.Object);
var values = graph.GetTriplesWithPredicate(shPath.Object).ToList();
var shDatatype = property.FirstOrDefault((triple) => triple.Predicate.ToString() == "http://www.w3.org/ns/shacl#datatype");
if (shDatatype != null)
{
......@@ -265,8 +265,9 @@ namespace Coscine.Api.Tree.Controllers
return Json(jObject);
}
catch (Exception)
catch (Exception e)
{
_coscineLogger.Log(LogType.Critical, e);
return BadRequest("Error in communication with the resource");
}
}
......
......@@ -5,7 +5,7 @@
<AssemblyName>Coscine.Api.Tree</AssemblyName>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<TargetFramework>net6.0</TargetFramework>
<Version>2.8.8</Version>
<Version>2.8.15</Version>
</PropertyGroup>
<PropertyGroup>
<Authors>RWTH Aachen University</Authors>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment