added NARA periodO matching from different rdf property
This commit is contained in:
parent
286321b118
commit
a1c1100790
|
@ -301,6 +301,35 @@ GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::nara::field
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||||
|
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||||
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||||
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
|
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
||||||
|
PREFIX ariadneplus: <https://ariadne-infrastructure.eu/aocat/>
|
||||||
|
PREFIX time: <http://www.w3.org/2006/time#>
|
||||||
|
PREFIX periodo: <http://n2t.net/ark:/99152/p0v#>
|
||||||
|
INSERT {
|
||||||
|
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::nara::periodoplus> {
|
||||||
|
?temporal aocat:has_period ?periodO .
|
||||||
|
?temporal aocat:from ?temporalFrom .
|
||||||
|
?temporal aocat:until ?temporalUntil .
|
||||||
|
}
|
||||||
|
}
|
||||||
|
WHERE {
|
||||||
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::nara::fieldworkreport> {
|
||||||
|
?temporal aocat:has_native_period ?native_period .
|
||||||
|
?native_period skos:prefLabel ?native_label .
|
||||||
|
optional {
|
||||||
|
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::nara::periodo> {
|
||||||
|
?periodO skos:altLabel ?native_label .
|
||||||
|
?periodO time:intervalStartedBy / time:hasDateTimeDescription / time:year ?temporalFrom .
|
||||||
|
?periodO time:intervalFinishedBy / time:hasDateTimeDescription / periodo:latestYear ?temporalUntil .
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||||
INSERT {
|
INSERT {
|
||||||
|
|
|
@ -305,7 +305,7 @@ public class GraphDbReaderAndESIndexTest {
|
||||||
// @Ignore
|
// @Ignore
|
||||||
public void uploadNaraTest() throws Exception {
|
public void uploadNaraTest() throws Exception {
|
||||||
boolean isRecord = true;
|
boolean isRecord = true;
|
||||||
String recordId = "https://ariadne-infrastructure.eu/aocat/Resource/07121539-04BD-3896-8E4B-22EEDDD400A8";
|
String recordId = "https://ariadne-infrastructure.eu/aocat/Resource/001CA559-D688-31FB-AB48-45CC8DB1E355";
|
||||||
String datasource = "nara";
|
String datasource = "nara";
|
||||||
String collectionId = "fieldworkreport";
|
String collectionId = "fieldworkreport";
|
||||||
readAndIndexTest(isRecord, recordId, datasource, collectionId);
|
readAndIndexTest(isRecord, recordId, datasource, collectionId);
|
||||||
|
|
Loading…
Reference in New Issue