Commit a9458ada authored by Petter Goksøyr Åsen's avatar Petter Goksøyr Åsen
Browse files

linting

parent 946d8c23
...@@ -27,7 +27,7 @@ public final class RemoteRepository extends RDFRepositoryBase { ...@@ -27,7 +27,7 @@ public final class RemoteRepository extends RDFRepositoryBase {
//private static final String TRIPLESTORE_PORT = "http://fuseki:3030"; //private static final String TRIPLESTORE_PORT = "http://fuseki:3030";
private static final String TRIPLESTORE_PORT = "http://virtuoso:8890"; private static final String TRIPLESTORE_PORT = "http://virtuoso:8890";
private final String triplestorePort; private final String triplestorePort;
private static final List<String> graphs = Arrays.asList(DEFAULT_GRAPH); private static final List<String> GRAPHS = Arrays.asList(DEFAULT_GRAPH);
RemoteRepository(String triplestorePort, UniqueURIGenerator uriGenerator, SPARQLQueryBuilder sparqlQueryBuilder) { RemoteRepository(String triplestorePort, UniqueURIGenerator uriGenerator, SPARQLQueryBuilder sparqlQueryBuilder) {
super(sparqlQueryBuilder, uriGenerator); super(sparqlQueryBuilder, uriGenerator);
...@@ -45,7 +45,7 @@ public final class RemoteRepository extends RDFRepositoryBase { ...@@ -45,7 +45,7 @@ public final class RemoteRepository extends RDFRepositoryBase {
@Override @Override
protected QueryExecution getQueryExecution(Query query) { protected QueryExecution getQueryExecution(Query query) {
//return QueryExecutionFactory.sparqlService(triplestorePort + "/ds/sparql", query); //return QueryExecutionFactory.sparqlService(triplestorePort + "/ds/sparql", query);
return QueryExecutionFactory.sparqlService(triplestorePort + "/sparql", query, graphs, null); return QueryExecutionFactory.sparqlService(triplestorePort + "/sparql", query, GRAPHS, null);
} }
@Override @Override
......
...@@ -43,7 +43,6 @@ import static no.deichman.services.entity.EntityServiceImplTest.modelForBiblio; ...@@ -43,7 +43,6 @@ import static no.deichman.services.entity.EntityServiceImplTest.modelForBiblio;
import static no.deichman.services.entity.EntityType.SUBJECT; import static no.deichman.services.entity.EntityType.SUBJECT;
import static no.deichman.services.entity.repository.InMemoryRepositoryTest.repositoryWithDataFrom; import static no.deichman.services.entity.repository.InMemoryRepositoryTest.repositoryWithDataFrom;
import static no.deichman.services.entity.repository.InMemoryRepositoryTest.repositoryWithDataFromString; import static no.deichman.services.entity.repository.InMemoryRepositoryTest.repositoryWithDataFromString;
import static no.deichman.services.entity.repository.SPARQLQueryBuilder.DEFAULT_GRAPH;
import static no.deichman.services.rdf.RDFModelUtil.modelFrom; import static no.deichman.services.rdf.RDFModelUtil.modelFrom;
import static no.deichman.services.testutil.TestJSON.assertValidJSON; import static no.deichman.services.testutil.TestJSON.assertValidJSON;
import static org.apache.jena.query.QueryExecutionFactory.create; import static org.apache.jena.query.QueryExecutionFactory.create;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment