test with read-only mode connection

This commit is contained in:
Alessia Bardi 2021-08-26 17:59:32 +02:00
parent 9598827e1a
commit ea3b749792
3 changed files with 75 additions and 69 deletions

View File

@ -47,6 +47,11 @@ public class RunSPARQLQueryService {
setGraphDBRepository(graphDbRepository); setGraphDBRepository(graphDbRepository);
} }
public void setupReadOnlyConnection(String graphDbUrl, String graphDbRepository) {
setGraphDBUrl(graphDbUrl);
setGraphDBRepository(graphDbRepository);
}
private void openConnection(){ private void openConnection(){
manager = new RemoteRepositoryManager(getGraphDBUrl()); manager = new RemoteRepositoryManager(getGraphDBUrl());
manager.init(); manager.init();

View File

@ -7,97 +7,97 @@ PREFIX ariadneplus: <https://ariadne-infrastructure.eu/aocat/>
PREFIX time: <http://www.w3.org/2006/time#> PREFIX time: <http://www.w3.org/2006/time#>
CONSTRUCT { CONSTRUCT {
%record aoprop:rdfType "Record" . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:rdfType "Record" .
%record aoprop:identifier %record . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:identifier <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> .
%record aoprop:originalId ?originalId . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:originalId ?originalId .
%record aoprop:issued ?issued . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:issued ?issued .
%record aoprop:modified ?modified . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:modified ?modified .
%record aoprop:partOf ?partOf . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:partOf ?partOf .
%record aoprop:creator ?creator . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:creator ?creator .
?creator aoprop:name ?creatorName . ?creator aoprop:name ?creatorName .
?creator aoprop:email ?creatorEmail . ?creator aoprop:email ?creatorEmail .
%record aoprop:contributor ?contributor . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:contributor ?contributor .
?contributor aoprop:name ?contributorName . ?contributor aoprop:name ?contributorName .
?contributor aoprop:email ?contributorEmail . ?contributor aoprop:email ?contributorEmail .
%record aoprop:legalResponsible ?legalResponsible . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:legalResponsible ?legalResponsible .
?legalResponsible aoprop:name ?legalResponsibleName . ?legalResponsible aoprop:name ?legalResponsibleName .
?legalResponsible aoprop:email ?legalResponsibleEmail . ?legalResponsible aoprop:email ?legalResponsibleEmail .
%record aoprop:owner ?owner . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:owner ?owner .
?owner aoprop:name ?ownerName . ?owner aoprop:name ?ownerName .
?owner aoprop:email ?ownerEmail . ?owner aoprop:email ?ownerEmail .
%record aoprop:publisher ?publisher . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:publisher ?publisher .
?publisher aoprop:name ?publisherName . ?publisher aoprop:name ?publisherName .
?publisher aoprop:email ?publisherEmail . ?publisher aoprop:email ?publisherEmail .
%record aoprop:accessPolicy ?accessPolicy . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:accessPolicy ?accessPolicy .
%record aoprop:accessRights ?accessRights . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:accessRights ?accessRights .
%record aoprop:landingPage ?landingPage . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:landingPage ?landingPage .
%record aoprop:spatialRegion ?spatialRegion . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:spatialRegion ?spatialRegion .
?spatialRegion aoprop:placeName ?spatialPlaceName . ?spatialRegion aoprop:placeName ?spatialPlaceName .
?spatialRegion aoprop:spatialCoordinateSystem ?spatialCoordinateSystem . ?spatialRegion aoprop:spatialCoordinateSystem ?spatialCoordinateSystem .
%record aoprop:spatialRegionPoint ?spatialRegionPoint . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:spatialRegionPoint ?spatialRegionPoint .
?spatialRegionPoint aoprop:lat ?spatialLocationLat . ?spatialRegionPoint aoprop:lat ?spatialLocationLat .
?spatialRegionPoint aoprop:lon ?spatialLocationLon . ?spatialRegionPoint aoprop:lon ?spatialLocationLon .
%record aoprop:spatialRegionBox ?spatialRegionBox . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:spatialRegionBox ?spatialRegionBox .
?spatialRegionBox aoprop:boxMaxLat ?spatialLocationBBMaxLat . ?spatialRegionBox aoprop:boxMaxLat ?spatialLocationBBMaxLat .
?spatialRegionBox aoprop:boxMaxLon ?spatialLocationBBMaxLon . ?spatialRegionBox aoprop:boxMaxLon ?spatialLocationBBMaxLon .
?spatialRegionBox aoprop:boxMinLat ?spatialLocationBBMinLat . ?spatialRegionBox aoprop:boxMinLat ?spatialLocationBBMinLat .
?spatialRegionBox aoprop:boxMinLon ?spatialLocationBBMinLon . ?spatialRegionBox aoprop:boxMinLon ?spatialLocationBBMinLon .
%record aoprop:temporal ?temporal . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:temporal ?temporal .
?temporal aoprop:periodOName ?temporalPeriodName . ?temporal aoprop:periodOName ?temporalPeriodName .
?temporal aoprop:from ?temporalFrom . ?temporal aoprop:from ?temporalFrom .
?temporal aoprop:until ?temporalUntil . ?temporal aoprop:until ?temporalUntil .
?temporal aoprop:uri ?temporal . ?temporal aoprop:uri ?temporal .
%record aoprop:temporal ?temporalNative . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:temporal ?temporalNative .
?temporalNative aoprop:nativePeriodName ?temporalNativePeriodName . ?temporalNative aoprop:nativePeriodName ?temporalNativePeriodName .
?temporalNative aoprop:from ?temporalNativeFrom . ?temporalNative aoprop:from ?temporalNativeFrom .
?temporalNative aoprop:until ?temporalNativeUntil . ?temporalNative aoprop:until ?temporalNativeUntil .
%record aoprop:archeologicalResourceType ?archeologicalResourceType . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:archeologicalResourceType ?archeologicalResourceType .
?archeologicalResourceType aoprop:name ?archeologicalResourceTypeName . ?archeologicalResourceType aoprop:name ?archeologicalResourceTypeName .
%record aoprop:resourceType ?resourceType . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:resourceType ?resourceType .
%record aoprop:nativeSubject ?nativeSubject . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:nativeSubject ?nativeSubject .
?nativeSubject aoprop:prefLabel ?nativeSubjectPrefLabel . ?nativeSubject aoprop:prefLabel ?nativeSubjectPrefLabel .
?nativeSubject aoprop:rdfAbout ?nativeSubject . ?nativeSubject aoprop:rdfAbout ?nativeSubject .
%record aoprop:derivedSubject ?derivedSubject . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:derivedSubject ?derivedSubject .
?derivedSubject aoprop:prefLabel ?derivedSubjectPrefLabel . ?derivedSubject aoprop:prefLabel ?derivedSubjectPrefLabel .
?derivedSubject aoprop:source "Getty AAT" . ?derivedSubject aoprop:source "Getty AAT" .
%record aoprop:aatSubjects ?derivedSubject . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:aatSubjects ?derivedSubject .
?derivedSubject aoprop:id ?derivedSubject . ?derivedSubject aoprop:id ?derivedSubject .
?derivedSubject aoprop:label ?derivedSubjectPrefLabel . ?derivedSubject aoprop:label ?derivedSubjectPrefLabel .
?derivedSubject aoprop:lang ?aatSubjectsLang . ?derivedSubject aoprop:lang ?aatSubjectsLang .
%record aoprop:title ?title . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:title ?title .
%record aoprop:description ?description . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:description ?description .
%record aoprop:language ?language . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:language ?language .
} }
where { where {
graph <https://ariadne-infrastructure.eu/api_________::ariadne_plus::%datasource::%collectionId> { graph <https://ariadne-infrastructure.eu/api_________::ariadne_plus::fasti::fieldwork> {
%record aocat:has_language / skos:prefLabel ?language . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_language / skos:prefLabel ?language .
%record aocat:has_original_id ?originalId . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_original_id ?originalId .
%record aocat:is_part_of ?partOf . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:is_part_of ?partOf .
%record aocat:has_creator ?creator . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_creator ?creator .
?creator aocat:has_name ?creatorName . ?creator aocat:has_name ?creatorName .
%record aocat:has_title ?title . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_title ?title .
%record aocat:has_type / skos:prefLabel ?resourceType . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_type / skos:prefLabel ?resourceType .
optional { optional {
?creator aocat:has_email ?creatorEmail . ?creator aocat:has_email ?creatorEmail .
} }
optional { optional {
%record aocat:has_description ?description . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_description ?description .
} }
optional { optional {
%record aocat:has_access_policy / rdfs:label ?accessPolicy . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_access_policy / rdfs:label ?accessPolicy .
} }
optional { optional {
%record aocat:has_landing_page / rdfs:label ?landingPage . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_landing_page / rdfs:label ?landingPage .
} }
} }
optional { optional {
graph <https://ariadne-infrastructure.eu/api_________::ariadne_plus::%datasource::%collectionId> { graph <https://ariadne-infrastructure.eu/api_________::ariadne_plus::fasti::fieldwork> {
%record aocat:has_temporal_coverage ?temporalNative . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_temporal_coverage ?temporalNative .
?temporalNative aocat:has_native_period ?nativeLabel . ?temporalNative aocat:has_native_period ?nativeLabel .
?nativeLabel skos:prefLabel ?temporalNativePeriodName . ?nativeLabel skos:prefLabel ?temporalNativePeriodName .
} }
graph <https://ariadne-infrastructure.eu/ariadneplus::%datasource::periodoplus> { graph <https://ariadne-infrastructure.eu/ariadneplus::fasti::periodoplus> {
optional { optional {
?temporalNative aocat:from ?temporalNativeFrom . ?temporalNative aocat:from ?temporalNativeFrom .
?temporalNative aocat:until ?temporalNativeUntil . ?temporalNative aocat:until ?temporalNativeUntil .
@ -107,12 +107,12 @@ where {
optional { optional {
graph <https://ariadne-infrastructure.eu/api_________::ariadne_plus::%datasource::%collectionId> { graph <https://ariadne-infrastructure.eu/api_________::ariadne_plus::fasti::fieldwork> {
%record aocat:has_temporal_coverage ?temporal . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_temporal_coverage ?temporal .
} }
graph <https://ariadne-infrastructure.eu/ariadneplus::%datasource::periodoplus> { graph <https://ariadne-infrastructure.eu/ariadneplus::fasti::periodoplus> {
?temporal aocat:has_period ?label . ?temporal aocat:has_period ?label .
graph <https://ariadne-infrastructure.eu/ariadneplus::%datasource::periodo> { graph <https://ariadne-infrastructure.eu/ariadneplus::fasti::periodo> {
?label skos:prefLabel ?temporalPeriodName . ?label skos:prefLabel ?temporalPeriodName .
} }
optional { optional {
@ -122,22 +122,22 @@ where {
} }
} }
graph <https://ariadne-infrastructure.eu/api_________::ariadne_plus::%datasource::%collectionId> { graph <https://ariadne-infrastructure.eu/api_________::ariadne_plus::fasti::fieldwork> {
{ {
select * select *
where { where {
%record aocat:was_issued ?issued . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:was_issued ?issued .
%record aocat:was_modified ?modified . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:was_modified ?modified .
%record aocat:has_contributor ?contributor . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_contributor ?contributor .
?contributor aocat:has_name ?contributorName . ?contributor aocat:has_name ?contributorName .
%record aocat:has_responsible ?legalResponsible . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_responsible ?legalResponsible .
?legalResponsible aocat:has_name ?legalResponsibleName . ?legalResponsible aocat:has_name ?legalResponsibleName .
%record aocat:has_owner ?owner . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_owner ?owner .
?owner aocat:has_name ?ownerName . ?owner aocat:has_name ?ownerName .
%record aocat:has_publisher ?publisher . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_publisher ?publisher .
?publisher aocat:has_name ?publisherName . ?publisher aocat:has_name ?publisherName .
%record aocat:has_access_rights ?accessRights . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_access_rights ?accessRights .
%record aocat:has_ARIADNE_subject ?archeologicalResourceType . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_ARIADNE_subject ?archeologicalResourceType .
?archeologicalResourceType skos:prefLabel ?archeologicalResourceTypeName . ?archeologicalResourceType skos:prefLabel ?archeologicalResourceTypeName .
optional { optional {
?contributor aocat:has_email ?contributorEmail . ?contributor aocat:has_email ?contributorEmail .
@ -155,23 +155,23 @@ where {
} }
} }
graph <https://ariadne-infrastructure.eu/api_________::ariadne_plus::%datasource::%collectionId> { graph <https://ariadne-infrastructure.eu/api_________::ariadne_plus::fasti::fieldwork> {
{ {
select * select *
where { where {
%record aocat:has_spatial_coverage ?spatialRegion . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_spatial_coverage ?spatialRegion .
?spatialRegion aocat:has_place_name ?spatialPlaceName . ?spatialRegion aocat:has_place_name ?spatialPlaceName .
optional { optional {
%record aocat:has_spatial_coverage ?spatialRegion . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_spatial_coverage ?spatialRegion .
?spatialRegion aocat:has_coordinate_system ?spatialCoordinateSystem . ?spatialRegion aocat:has_coordinate_system ?spatialCoordinateSystem .
} }
optional { optional {
%record aocat:has_spatial_coverage ?spatialRegionPoint . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_spatial_coverage ?spatialRegionPoint .
?spatialRegionPoint aocat:has_latitude ?spatialLocationLat ; ?spatialRegionPoint aocat:has_latitude ?spatialLocationLat ;
aocat:has_longitude ?spatialLocationLon . aocat:has_longitude ?spatialLocationLon .
} }
optional { optional {
%record aocat:has_spatial_coverage ?spatialRegionBox . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_spatial_coverage ?spatialRegionBox .
?spatialRegionBox aocat:has_bounding_box_max_lat ?spatialLocationBBMaxLat ; ?spatialRegionBox aocat:has_bounding_box_max_lat ?spatialLocationBBMaxLat ;
aocat:has_bounding_box_max_lon ?spatialLocationBBMaxLon ; aocat:has_bounding_box_max_lon ?spatialLocationBBMaxLon ;
aocat:has_bounding_box_min_lat ?spatialLocationBBMinLat ; aocat:has_bounding_box_min_lat ?spatialLocationBBMinLat ;
@ -181,23 +181,23 @@ where {
} }
} }
graph <https://ariadne-infrastructure.eu/api_________::ariadne_plus::%datasource::%collectionId> { graph <https://ariadne-infrastructure.eu/api_________::ariadne_plus::fasti::fieldwork> {
{ {
select * select *
where { where {
%record aocat:has_native_subject ?nativeSubject . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_native_subject ?nativeSubject .
?nativeSubject skos:prefLabel ?nativeSubjectPrefLabel . ?nativeSubject skos:prefLabel ?nativeSubjectPrefLabel .
} }
} }
} }
graph <https://ariadne-infrastructure.eu/ariadneplus::%datasource::aatplus> { graph <https://ariadne-infrastructure.eu/ariadneplus::fasti::aatplus> {
{ {
select * select *
where { where {
optional { optional {
%record aocat:has_derived_subject ?derivedSubject . <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_derived_subject ?derivedSubject .
graph <https://ariadne-infrastructure.eu/api_________::ariadne_plus::%datasource::aat> { graph <https://ariadne-infrastructure.eu/api_________::ariadne_plus::fasti::aat> {
?derivedSubject skos:prefLabel ?derivedSubjectPrefLabel . ?derivedSubject skos:prefLabel ?derivedSubjectPrefLabel .
} }
} }

View File

@ -250,7 +250,7 @@ public class GraphDbReaderAndESIndexTest {
} }
@Test @Test
@Ignore //@Ignore
public void selectRecordsTest() throws Exception { public void selectRecordsTest() throws Exception {
final ClassPathResource resource = new ClassPathResource("application.properties"); final ClassPathResource resource = new ClassPathResource("application.properties");
Properties appProps = new Properties(); Properties appProps = new Properties();
@ -258,12 +258,13 @@ public class GraphDbReaderAndESIndexTest {
String datasource = "ads"; String datasource = "ads";
String collectionId = "271"; String collectionId = "271";
runSPQRLQuery = new RunSPARQLQueryService(); runSPQRLQuery = new RunSPARQLQueryService();
runSPQRLQuery.setupConnection( runSPQRLQuery.setupReadOnlyConnection(
appProps.getProperty("graphdb.writer.user"), appProps.getProperty("graphdb.serverUrl"),
appProps.getProperty("graphdb.writer.pwd"),
appProps.getProperty("repository.url"),
appProps.getProperty("graphdb.repository")); appProps.getProperty("graphdb.repository"));
runSPQRLQuery.selectRecordIds(datasource, collectionId); List<String> res = runSPQRLQuery.selectRecordIds(datasource, collectionId);
for (String s : res){
System.out.println(s);
}
} }
@Test @Test