From 3e1eeb0de84b19225ed10cc8e237ef44e6187f13 Mon Sep 17 00:00:00 2001 From: Hanna Fuehr <fuehr@itc.rwth-aachen.de> Date: Wed, 10 Aug 2022 11:17:08 +0200 Subject: [PATCH] implementation of comments --- src/SQL2Linked/Implementations/ProjectStructuralData.cs | 6 +++--- src/SQL2Linked/StructuralData.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/SQL2Linked/Implementations/ProjectStructuralData.cs b/src/SQL2Linked/Implementations/ProjectStructuralData.cs index 5873213..eaa637a 100644 --- a/src/SQL2Linked/Implementations/ProjectStructuralData.cs +++ b/src/SQL2Linked/Implementations/ProjectStructuralData.cs @@ -55,7 +55,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 (entry.Keywords != null) { var listKeywords = entry.Keywords.Split(';').ToList(); foreach (var keyword in listKeywords) @@ -90,7 +90,7 @@ namespace SQL2Linked.Implementations } } - AssertToGraphLiteralNode(graph, projectGraphName, cosc + "terms/project#deleted", entry.Deleted.ToString()); + AssertToGraphLiteralNode(graph, projectGraphName, cosc + "terms/project#deleted", entry.Deleted.ToString(), new Uri("http://www.w3.org/2001/XMLSchema#boolean")); Console.WriteLine($"For project '{entry.DisplayName}' will migrate triple '{projectGraphName} {cosc}terms/project#deleted {entry.Deleted}'. "); AssertToGraphLiteralNode(graph, projectGraphName, cosc + "terms/project#slug", entry.Slug); @@ -124,7 +124,7 @@ namespace SQL2Linked.Implementations foreach (var projectResource in projectResources) { - if(entry.Id == projectResource.ProjectId) + if (entry.Id == projectResource.ProjectId) { AssertToGraphUriNode(graph, projectGraphName, dcat + "catalog", $"{projectUrlPrefix}/{projectResource.ResourceId}"); Console.WriteLine($"For project '{entry.DisplayName}' will migrate triple '{projectGraphName} {dcat}catalog {projectUrlPrefix}/{projectResource.ResourceId}'. "); diff --git a/src/SQL2Linked/StructuralData.cs b/src/SQL2Linked/StructuralData.cs index a9c9ec0..4d2e231 100644 --- a/src/SQL2Linked/StructuralData.cs +++ b/src/SQL2Linked/StructuralData.cs @@ -20,7 +20,7 @@ namespace SQL2Linked RdfStoreConnector = new RdfStoreConnector(Configuration.GetStringAndWait("coscine/local/virtuoso/additional/url")); Model = new T(); Prefix = Configuration.GetStringAndWait("coscine/global/epic/prefix"); - QueryEndpoint = new SparqlRemoteEndpoint(new Uri(string.Format("http://localhost:8890/sparql"))); + QueryEndpoint = new SparqlRemoteEndpoint(new Uri(Configuration.GetStringAndWait("coscine/local/virtuoso/additional/url"))); } public abstract IEnumerable<IGraph> ConvertToLinkedData(IEnumerable<S> entries); -- GitLab