From 9283293248e8c0c420cda53624fbb63ec09231c8 Mon Sep 17 00:00:00 2001 From: Heinrichs <Heinrichs@itc.rwth-aachen.de> Date: Wed, 10 Aug 2022 11:31:21 +0200 Subject: [PATCH] Small fixes --- src/SQL2Linked/Implementations/ProjectStructuralData.cs | 5 +++-- src/SQL2Linked/Program.cs | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/SQL2Linked/Implementations/ProjectStructuralData.cs b/src/SQL2Linked/Implementations/ProjectStructuralData.cs index eaa637a..7fb8f51 100644 --- a/src/SQL2Linked/Implementations/ProjectStructuralData.cs +++ b/src/SQL2Linked/Implementations/ProjectStructuralData.cs @@ -1,7 +1,6 @@ using Coscine.Database.DataModel; using Coscine.Database.Models; using VDS.RDF; -using VDS.RDF.Query; namespace SQL2Linked.Implementations { @@ -55,7 +54,7 @@ namespace SQL2Linked.Implementations AssertToGraphLiteralNode(graph, projectGraphName, dcat + "endDate", entry.EndDate.ToString()); Console.WriteLine($"For project '{entry.DisplayName}' will migrate triple '{projectGraphName} {dcat}endDate {entry.EndDate}'. "); - if (entry.Keywords != null) + if (!string.IsNullOrWhiteSpace(entry.Keywords)) { var listKeywords = entry.Keywords.Split(';').ToList(); foreach (var keyword in listKeywords) @@ -130,6 +129,8 @@ namespace SQL2Linked.Implementations Console.WriteLine($"For project '{entry.DisplayName}' will migrate triple '{projectGraphName} {dcat}catalog {projectUrlPrefix}/{projectResource.ResourceId}'. "); } } + + graphs.Add(graph); } return graphs; } diff --git a/src/SQL2Linked/Program.cs b/src/SQL2Linked/Program.cs index b9d0aa6..c746a7c 100644 --- a/src/SQL2Linked/Program.cs +++ b/src/SQL2Linked/Program.cs @@ -8,7 +8,7 @@ if (dummyMode) } Console.WriteLine("\nBegin SQL 2 Linked Data migration"); - +/* var roleStructuralData = new RoleStructuralData(); roleStructuralData.Migrate(dummyMode); @@ -17,7 +17,7 @@ userStructuralData.Migrate(dummyMode); var resourceTypeStructuralData = new ResourceTypeStructuralData(); resourceTypeStructuralData.Migrate(dummyMode); - +*/ var projectStructuralData = new ProjectStructuralData(); projectStructuralData.Migrate(dummyMode); -- GitLab