added from/until range from native data
This commit is contained in:
parent
85e4f90423
commit
98df8db924
|
@ -166,3 +166,41 @@ WHERE {
|
|||
?record aocat:was_modified ?rec_value2 .
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
PREFIX time: <http://www.w3.org/2006/time#>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::afe_rgk::periodoplus> {
|
||||
?temporal aocat:has_period ?native_period .
|
||||
?temporal aocat:from ?from .
|
||||
?temporal aocat:until ?until .
|
||||
}
|
||||
}
|
||||
WHERE {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::afe_rgk::coins> {
|
||||
?temporal aocat:has_native_period ?native_period .
|
||||
?native_period rdfs:label|skos:prefLabel ?native_label .
|
||||
?temporal aocat:from ?from .
|
||||
?temporal aocat:until ?until .
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
PREFIX time: <http://www.w3.org/2006/time#>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::afe_rgk::periodo> {
|
||||
?native_period skos:prefLabel ?native_label .
|
||||
}
|
||||
}
|
||||
WHERE {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::afe_rgk::coins> {
|
||||
?temporal aocat:has_native_period ?native_period .
|
||||
?native_period rdfs:label|skos:prefLabel ?native_label .
|
||||
?temporal aocat:from ?from .
|
||||
?temporal aocat:until ?until .
|
||||
}
|
||||
};
|
|
@ -437,6 +437,15 @@ public class GraphDbReaderAndESIndexTest {
|
|||
readAndIndexTest(isRecord, recordId, datasource, collectionId);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void uploadRGKTest() throws Exception {
|
||||
boolean isRecord = true;
|
||||
String recordId = "https://ariadne-infrastructure.eu/aocat/Resource/AFE_RGK/C591D12B-9DBF-397D-8E38-F56C674ECF0E";
|
||||
String datasource = "afe_rgk";
|
||||
String collectionId = "coins";
|
||||
readAndIndexTest(isRecord, recordId, datasource, collectionId);
|
||||
}
|
||||
|
||||
private class CollectionData {
|
||||
String URI_ID;
|
||||
String id;
|
||||
|
|
Loading…
Reference in New Issue