has_native_period section set optional because of notprovided case
This commit is contained in:
parent
8777d14506
commit
8f3722da13
|
@ -104,8 +104,10 @@ where {
|
||||||
select *
|
select *
|
||||||
where {
|
where {
|
||||||
%record aocat:has_temporal_coverage ?temporalCoverage .
|
%record aocat:has_temporal_coverage ?temporalCoverage .
|
||||||
?temporalCoverage aocat:has_native_period ?temporalNative .
|
optional {
|
||||||
?temporalNative skos:prefLabel ?temporalNativePeriodName .
|
?temporalCoverage aocat:has_native_period ?temporalNative .
|
||||||
|
?temporalNative skos:prefLabel ?temporalNativePeriodName .
|
||||||
|
}
|
||||||
optional {
|
optional {
|
||||||
?temporalCoverage aocat:has_period ?temporalPeriodO .
|
?temporalCoverage aocat:has_period ?temporalPeriodO .
|
||||||
optional {
|
optional {
|
||||||
|
|
|
@ -58,16 +58,16 @@ public class GraphDbReaderAndESIndexTest {
|
||||||
final ClassPathResource queryTemplateResource;
|
final ClassPathResource queryTemplateResource;
|
||||||
boolean testRecord = false;
|
boolean testRecord = false;
|
||||||
if (testRecord) {
|
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");
|
queryTemplateResource = new ClassPathResource("eu/dnetlib/ariadneplus/sparql/read_record_data_template.sparql");
|
||||||
}
|
}
|
||||||
else {
|
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");
|
queryTemplateResource = new ClassPathResource("eu/dnetlib/ariadneplus/sparql/read_collection_data_template.sparql");
|
||||||
}
|
}
|
||||||
|
|
||||||
String datasource = "hnm";
|
String datasource = "cenieh";
|
||||||
String collectionId = "hnmad";
|
String collectionId = "171";
|
||||||
List<String> recordIds = Arrays.asList(recordId);
|
List<String> recordIds = Arrays.asList(recordId);
|
||||||
String queryTemplate = IOUtils.toString(queryTemplateResource.getInputStream(), StandardCharsets.UTF_8.name());
|
String queryTemplate = IOUtils.toString(queryTemplateResource.getInputStream(), StandardCharsets.UTF_8.name());
|
||||||
if (testRecord) {
|
if (testRecord) {
|
||||||
|
|
Loading…
Reference in New Issue