|
|
|
@ -58,16 +58,16 @@ public class GraphDbReaderAndESIndexTest {
|
|
|
|
|
final ClassPathResource queryTemplateResource;
|
|
|
|
|
boolean testRecord = false;
|
|
|
|
|
if (testRecord) {
|
|
|
|
|
recordId = "https://ariadne-infrastructure.eu/aocat/Resource/D200902C-A1C2-346E-8F37-E8A429260ADE";
|
|
|
|
|
recordId = "https://ariadne-infrastructure.eu/aocat/Resource/3037F979-F94F-380B-A6A6-3972ED10E61C";
|
|
|
|
|
queryTemplateResource = new ClassPathResource("eu/dnetlib/ariadneplus/sparql/read_record_data_template.sparql");
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
recordId = "https://ariadne-infrastructure.eu/aocat/Collection/HNM/0F1AF07E-CE63-342C-8E95-11FF1C024BD5";
|
|
|
|
|
recordId = "https://ariadne-infrastructure.eu/aocat/Collection/CENIEH/A4A042CF-4FD6-3FB4-B701-CBC8A1653ADA";
|
|
|
|
|
queryTemplateResource = new ClassPathResource("eu/dnetlib/ariadneplus/sparql/read_collection_data_template.sparql");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String datasource = "hnm";
|
|
|
|
|
String collectionId = "hnmad";
|
|
|
|
|
String datasource = "cenieh";
|
|
|
|
|
String collectionId = "171";
|
|
|
|
|
List<String> recordIds = Arrays.asList(recordId);
|
|
|
|
|
String queryTemplate = IOUtils.toString(queryTemplateResource.getInputStream(), StandardCharsets.UTF_8.name());
|
|
|
|
|
if (testRecord) {
|
|
|
|
|