From bee60b45234e29c0aa0f29fbda0fccfbe05245d8 Mon Sep 17 00:00:00 2001 From: Petar Hristov <hristov@itc.rwth-aachen.de> Date: Mon, 12 Sep 2022 09:17:38 +0200 Subject: [PATCH] "Date Created" and "Creator" added to the SQL2Linked --- src/SQL2Linked/Implementations/ProjectStructuralData.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/SQL2Linked/Implementations/ProjectStructuralData.cs b/src/SQL2Linked/Implementations/ProjectStructuralData.cs index b3f63d4..7702b78 100644 --- a/src/SQL2Linked/Implementations/ProjectStructuralData.cs +++ b/src/SQL2Linked/Implementations/ProjectStructuralData.cs @@ -142,6 +142,15 @@ namespace SQL2Linked.Implementations } } + AssertToGraphUriNode(graph, projectGraphName, dcterms + "creator", cosc + $"users/{entry.Creator}"); + Console.WriteLine($"For project '{entry.DisplayName}' will migrate triple '{projectGraphName} {dcterms}creator {cosc}users/{entry.Creator}'. "); + + if (entry.DateCreated is not null && entry.DateCreated.HasValue) + { + AssertToGraphLiteralNode(graph, projectGraphName, dcterms + "created", entry.DateCreated.Value.ToString()); + Console.WriteLine($"For project '{entry.DisplayName}' will migrate triple '{projectGraphName} {dcterms}created {entry.DateCreated}'. "); + } + graphs.Add(graph); } return graphs; -- GitLab