Skip to content

Commit

Permalink
Make code compile :)
Browse files Browse the repository at this point in the history
  • Loading branch information
namedgraph committed Oct 22, 2023
1 parent 72f40c7 commit 4f30f58
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/atomgraph/linkeddatahub/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -1281,7 +1281,7 @@ public Map<Integer, Resource> getLengthMap(Map<URI, Resource> apps)
*/
public void submitImport(CSVImport csvImport, com.atomgraph.linkeddatahub.apps.model.Application app, Service service, Service adminService, String baseURI, LinkedDataClient ldc)
{
new ImportExecutor(importThreadPool).start(service, adminService, baseURI, ldc, service.getGraphStoreClient(), csvImport);
new ImportExecutor(importThreadPool).start(service, adminService, baseURI, ldc, csvImport);
}

/**
Expand All @@ -1296,7 +1296,7 @@ public void submitImport(CSVImport csvImport, com.atomgraph.linkeddatahub.apps.m
*/
public void submitImport(RDFImport rdfImport, com.atomgraph.linkeddatahub.apps.model.Application app, Service service, Service adminService, String baseURI, LinkedDataClient ldc)
{
new ImportExecutor(importThreadPool).start(service, adminService, baseURI, ldc, service.getGraphStoreClient(), rdfImport);
new ImportExecutor(importThreadPool).start(service, adminService, baseURI, ldc, rdfImport);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,13 @@ public ImportExecutor(ExecutorService execService)
/**
* Executes CSV import.
*
* @param csvImport CSV import resource
* @param service application's SPARQL service
* @param adminService admin application's SPARQL service
* @param appBaseURI application's base URI
* @param ldc Linked Data client
* @param graphStoreClient GSP client
* @param csvImport CSV import resource
*/
public void start(Service service, Service adminService, String appBaseURI, LinkedDataClient ldc, LinkedDataClient graphStoreClient, CSVImport csvImport)
public void start(Service service, Service adminService, String appBaseURI, LinkedDataClient ldc, CSVImport csvImport)
{
if (csvImport == null) throw new IllegalArgumentException("CSVImport cannot be null");
if (log.isDebugEnabled()) log.debug("Submitting new import to thread pool: {}", csvImport.toString());
Expand All @@ -134,15 +133,14 @@ public void start(Service service, Service adminService, String appBaseURI, Link
/**
* Executes RDF import.
*
* @param rdfImport RDF import resource
* @param service application's SPARQL service
* @param adminService admin application's SPARQL service
* @param appBaseURI application's base URI
* @param ldc Linked Data client
* @param graphStoreClient GSP client
* @param rdfImport RDF import resource
*/

public void start(Service service, Service adminService, String appBaseURI, LinkedDataClient ldc, LinkedDataClient graphStoreClient, RDFImport rdfImport)
public void start(Service service, Service adminService, String appBaseURI, LinkedDataClient ldc, RDFImport rdfImport)
{
if (rdfImport == null) throw new IllegalArgumentException("RDFImport cannot be null");
if (log.isDebugEnabled()) log.debug("Submitting new import to thread pool: {}", rdfImport.toString());
Expand All @@ -165,7 +163,7 @@ public void start(Service service, Service adminService, String appBaseURI, Link
Supplier<Response> fileSupplier = new ClientResponseSupplier(ldc, RDF_MEDIA_TYPES, URI.create(rdfImport.getFile().getURI()));
// skip validation because it will be done during final POST anyway
CompletableFuture.supplyAsync(fileSupplier, getExecutorService()).thenApplyAsync(getStreamRDFOutputWriter(service, adminService,
graphStoreClient, queryBaseURI, query, rdfImport), getExecutorService()).
ldc, queryBaseURI, query, rdfImport), getExecutorService()).
thenAcceptAsync(success(service, rdfImport, provImport), getExecutorService()).
exceptionally(failure(service, rdfImport, provImport));
}
Expand Down

0 comments on commit 4f30f58

Please sign in to comment.