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 ...@@ -167,7 +167,7 @@ namespace Coscine.Api.Tree.Controllers
var shPath = property.FirstOrDefault((triple) => triple.Predicate.ToString() == "http://www.w3.org/ns/shacl#path"); var shPath = property.FirstOrDefault((triple) => triple.Predicate.ToString() == "http://www.w3.org/ns/shacl#path");
if (shPath != null) 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"); var shDatatype = property.FirstOrDefault((triple) => triple.Predicate.ToString() == "http://www.w3.org/ns/shacl#datatype");
if (shDatatype != null) if (shDatatype != null)
{ {
...@@ -265,8 +265,9 @@ namespace Coscine.Api.Tree.Controllers ...@@ -265,8 +265,9 @@ namespace Coscine.Api.Tree.Controllers
return Json(jObject); return Json(jObject);
} }
catch (Exception) catch (Exception e)
{ {
_coscineLogger.Log(LogType.Critical, e);
return BadRequest("Error in communication with the resource"); return BadRequest("Error in communication with the resource");
} }
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<AssemblyName>Coscine.Api.Tree</AssemblyName> <AssemblyName>Coscine.Api.Tree</AssemblyName>
<GenerateDocumentationFile>true</GenerateDocumentationFile> <GenerateDocumentationFile>true</GenerateDocumentationFile>
<TargetFramework>net6.0</TargetFramework> <TargetFramework>net6.0</TargetFramework>
<Version>2.8.8</Version> <Version>2.8.15</Version>
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>
<Authors>RWTH Aachen University</Authors> <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