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 *
|
||||
where {
|
||||
%record aocat:has_temporal_coverage ?temporalCoverage .
|
||||
optional {
|
||||
?temporalCoverage aocat:has_native_period ?temporalNative .
|
||||
?temporalNative skos:prefLabel ?temporalNativePeriodName .
|
||||
}
|
||||
optional {
|
||||
?temporalCoverage aocat:has_period ?temporalPeriodO .
|
||||
optional {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue