diff --git a/dnet-ariadneplus-graphdb-publisher/test/java/eu/dnetlib/ariadneplus/GraphDbReaderAndESIndexTest.java b/dnet-ariadneplus-graphdb-publisher/test/java/eu/dnetlib/ariadneplus/GraphDbReaderAndESIndexTest.java index df9a7aa..24303a4 100644 --- a/dnet-ariadneplus-graphdb-publisher/test/java/eu/dnetlib/ariadneplus/GraphDbReaderAndESIndexTest.java +++ b/dnet-ariadneplus-graphdb-publisher/test/java/eu/dnetlib/ariadneplus/GraphDbReaderAndESIndexTest.java @@ -347,9 +347,7 @@ public class GraphDbReaderAndESIndexTest { appProps.load(resource.getInputStream()); runSPQRLQuery = new RunSPARQLQueryService(); - runSPQRLQuery.setupConnection( - appProps.getProperty("graphdb.writer.user"), - appProps.getProperty("graphdb.writer.pwd"), + runSPQRLQuery.setupReadOnlyConnection( appProps.getProperty("graphdb.serverUrl"), appProps.getProperty("graphdb.repository")); ParseRDFJSON parseRDFJSON = new ParseRDFJSON(); @@ -398,10 +396,8 @@ public class GraphDbReaderAndESIndexTest { String datasource = "ads"; String collectionId = "271"; runSPQRLQuery = new RunSPARQLQueryService(); - runSPQRLQuery.setupConnection( - appProps.getProperty("graphdb.writer.user"), - appProps.getProperty("graphdb.writer.pwd"), - appProps.getProperty("repository.url"), + runSPQRLQuery.setupReadOnlyConnection( + appProps.getProperty("graphdb.serverUrl"), appProps.getProperty("graphdb.repository")); runSPQRLQuery.selectRecordIds(datasource, collectionId); }