diff --git a/src/SQL2Linked/Implementations/ProjectStructuralData.cs b/src/SQL2Linked/Implementations/ProjectStructuralData.cs index eaa637a3792d5d22a9041a79d8100b5f9e77a061..7fb8f51fe5f554210b8e46cb4f9cc0a6936cbf98 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 b9d0aa6a150c349541fa09512110b842c5e6e833..c746a7c5cad5e05ab756d11f6cf4a8dae2598e71 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);