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

Fix: Temporary fix for resources

parent 93076696
No related branches found
No related tags found
No related merge requests found
Pipeline #1219572 passed
......@@ -139,7 +139,10 @@ namespace SQL2Linked.Implementations
// Reinstate the catalog assignments
var cmdString = new SparqlParameterizedString
{
CommandText = "SELECT DISTINCT ?o WHERE { <" + resourceGraphName + "> <http://www.w3.org/ns/dcat#catalog> ?o }"
CommandText = @"SELECT DISTINCT ?s WHERE {
?s ?p <http://www.w3.org/ns/ldp#BasicContainer> .
FILTER(contains(str(?s), '" + resourceGraphName + @"/') )
}"
};
var resultSet = WrapRequest(() => RdfStoreConnector.QueryEndpoint.QueryWithResultSet(cmdString.ToString()));
foreach (var result in resultSet)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment