From 8842d2472380606a4594946b434a7ea3055ac023 Mon Sep 17 00:00:00 2001 From: Heinrichs <Heinrichs@itc.rwth-aachen.de> Date: Fri, 26 Aug 2022 10:31:19 +0200 Subject: [PATCH] Fix if no ap is set --- src/SQL2Linked/Implementations/ResourceStructuralData.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/SQL2Linked/Implementations/ResourceStructuralData.cs b/src/SQL2Linked/Implementations/ResourceStructuralData.cs index 6d2a73a..4acd469 100644 --- a/src/SQL2Linked/Implementations/ResourceStructuralData.cs +++ b/src/SQL2Linked/Implementations/ResourceStructuralData.cs @@ -92,6 +92,12 @@ namespace SQL2Linked.Implementations AssertToGraphLiteralNode(graph, resourceGraphName, dcterms + "description", entry.Description); Console.WriteLine($"For resource '{entry.DisplayName}' will migrate triple '{resourceGraphName} {dcterms}description {entry.Description}'. "); + // Skipping broken resources + if (string.IsNullOrWhiteSpace(entry.ApplicationProfile)) + { + continue; + } + AssertToGraphUriNode(graph, resourceGraphName, dcterms + "conformsTo", entry.ApplicationProfile); Console.WriteLine($"For resource '{entry.DisplayName}' will migrate triple '{resourceGraphName} {dcterms}conformsTo {entry.ApplicationProfile}'. "); -- GitLab