Skip to content
Snippets Groups Projects
Commit 445a60c9 authored by Benedikt Heinrichs's avatar Benedikt Heinrichs
Browse files

Fix: Catch and Print Virtuoso Errors

parent 5d0f1035
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,8 @@ namespace SQL2Linked
private void StoreGraphs(IEnumerable<IGraph> graphs)
{
foreach (var graph in graphs)
{
try
{
Console.WriteLine($" ({graph.BaseUri})");
var exists = WrapRequest(() => RdfStoreConnector.HasGraph(graph.BaseUri));
......@@ -63,6 +65,14 @@ namespace SQL2Linked
Console.WriteLine($" - Graph {graph.BaseUri} added successfully");
Console.WriteLine();
}
catch (Exception e)
{
Console.Error.WriteLine($"Error on ({graph.BaseUri}):");
Console.Error.WriteLine(e);
Console.Error.WriteLine(e.InnerException);
Console.Error.WriteLine();
}
}
}
public void AssertToGraphUriNode(IGraph graph, string graphSubject, string graphPredicate, string? graphObject)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment