addictional sparql insert for native subjects for ads archive

This commit is contained in:
Enrico Ottonello 2021-03-11 12:22:05 +01:00
parent f2a695e9a4
commit 2e1ec740f5
2 changed files with 30 additions and 8 deletions

View File

@ -302,23 +302,27 @@ PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::archives> USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::archives>
WHERE { WHERE {
{ {
?record aocat:has_native_subject ?native_subject . ?record aocat:has_native_subject ?native_subject .
?native_subject skos:exactMatch ?aat . ?aat_subject owl:sameAs ?native_subject .
?aat_subject skos:exactMatch ?aat .
} }
union union
{ {
?record aocat:has_native_subject ?native_subject . ?record aocat:has_native_subject ?native_subject .
?native_subject skos:broadMatch ?aat . ?aat_subject owl:sameAs ?native_subject .
?aat_subject skos:broadMatch ?aat .
} }
union union
{ {
?record aocat:has_native_subject ?native_subject . ?record aocat:has_native_subject ?native_subject .
?native_subject skos:closeMatch ?aat . ?aat_subject owl:sameAs ?native_subject .
?aat_subject skos:closeMatch ?aat .
} }
union union
{ {
?record aocat:has_native_subject ?native_subject . ?record aocat:has_native_subject ?native_subject .
?native_subject skos:narrowMatch ?aat . ?aat_subject owl:sameAs ?native_subject .
?aat_subject skos:narrowMatch ?aat .
} }
}; };

View File

@ -32,6 +32,7 @@ public class GraphDbReaderAndESIndexTest {
private RunSPARQLQueryService runSPQRLQuery; private RunSPARQLQueryService runSPQRLQuery;
@Test @Test
@Ignore
public void uploadAMCRFieldworkTest() throws Exception { public void uploadAMCRFieldworkTest() throws Exception {
boolean isRecord = true; boolean isRecord = true;
String recordId = "https://ariadne-infrastructure.eu/aocat/Resource/AMCR/E61E0F4E-268F-39E4-8EDB-A431AFC505AA"; String recordId = "https://ariadne-infrastructure.eu/aocat/Resource/AMCR/E61E0F4E-268F-39E4-8EDB-A431AFC505AA";
@ -41,6 +42,7 @@ public class GraphDbReaderAndESIndexTest {
} }
@Test @Test
@Ignore
public void uploadAMCRDocumentTest() throws Exception { public void uploadAMCRDocumentTest() throws Exception {
boolean isRecord = true; boolean isRecord = true;
String recordId = "https://ariadne-infrastructure.eu/aocat/Collection/AMCR/FC59581D-DC3A-31DA-922A-98DE764F3D76"; String recordId = "https://ariadne-infrastructure.eu/aocat/Collection/AMCR/FC59581D-DC3A-31DA-922A-98DE764F3D76";
@ -50,6 +52,7 @@ public class GraphDbReaderAndESIndexTest {
} }
@Test @Test
@Ignore
public void uploadAMCRSiteTest() throws Exception { public void uploadAMCRSiteTest() throws Exception {
boolean isRecord = true; boolean isRecord = true;
String recordId = "https://ariadne-infrastructure.eu/aocat/Resource/AMCR/3C7EC936-A7CA-3720-B3DC-413A25754FD4"; String recordId = "https://ariadne-infrastructure.eu/aocat/Resource/AMCR/3C7EC936-A7CA-3720-B3DC-413A25754FD4";
@ -59,6 +62,7 @@ public class GraphDbReaderAndESIndexTest {
} }
@Test @Test
@Ignore
public void uploadADSRecordTest() throws Exception { public void uploadADSRecordTest() throws Exception {
boolean isRecord = true; boolean isRecord = true;
String recordId = "https://ariadne-infrastructure.eu/aocat/Resource/34E3811A-0BAD-3832-B3A0-3139E8A0285C"; String recordId = "https://ariadne-infrastructure.eu/aocat/Resource/34E3811A-0BAD-3832-B3A0-3139E8A0285C";
@ -68,6 +72,7 @@ public class GraphDbReaderAndESIndexTest {
} }
@Test @Test
@Ignore
public void uploadADSRecordWithNativeFromUntilTest() throws Exception { public void uploadADSRecordWithNativeFromUntilTest() throws Exception {
boolean isRecord = true; boolean isRecord = true;
String recordId = "https://ariadne-infrastructure.eu/aocat/Resource/3C3C7A86-FF09-3431-95B1-B9A4AA8293AF"; String recordId = "https://ariadne-infrastructure.eu/aocat/Resource/3C3C7A86-FF09-3431-95B1-B9A4AA8293AF";
@ -87,6 +92,7 @@ public class GraphDbReaderAndESIndexTest {
} }
@Test @Test
@Ignore
public void uploadZbivaRecordSpatialTest() throws Exception { public void uploadZbivaRecordSpatialTest() throws Exception {
boolean isRecord = true; boolean isRecord = true;
String recordId = "https://ariadne-infrastructure.eu/aocat/Resource/ZRC-SAZU-Zbiva/B34517C6-8D94-3A02-B461-08522F958479"; String recordId = "https://ariadne-infrastructure.eu/aocat/Resource/ZRC-SAZU-Zbiva/B34517C6-8D94-3A02-B461-08522F958479";
@ -96,6 +102,7 @@ public class GraphDbReaderAndESIndexTest {
} }
@Test @Test
@Ignore
public void uploadHNMCollectionSpatialTest() throws Exception { public void uploadHNMCollectionSpatialTest() throws Exception {
boolean isRecord = false; boolean isRecord = false;
String recordId = "https://ariadne-infrastructure.eu/aocat/Collection/HNM/5A7A4257-EE73-31F9-9F74-BADB371555F5"; String recordId = "https://ariadne-infrastructure.eu/aocat/Collection/HNM/5A7A4257-EE73-31F9-9F74-BADB371555F5";
@ -105,6 +112,7 @@ public class GraphDbReaderAndESIndexTest {
} }
@Test @Test
@Ignore
public void uploadHNMCollectionTemporalTest() throws Exception { public void uploadHNMCollectionTemporalTest() throws Exception {
boolean isRecord = false; boolean isRecord = false;
String recordId = "https://ariadne-infrastructure.eu/aocat/Collection/HNM/0F1AF07E-CE63-342C-8E95-11FF1C024BD5"; String recordId = "https://ariadne-infrastructure.eu/aocat/Collection/HNM/0F1AF07E-CE63-342C-8E95-11FF1C024BD5";
@ -114,6 +122,16 @@ public class GraphDbReaderAndESIndexTest {
} }
@Test @Test
public void uploadADSArchivesBoundingBoxTest() throws Exception {
boolean isRecord = true;
String recordId = "https://ariadne-infrastructure.eu/aocat/Resource/90D1C95D-E249-3E74-92D9-B58FDF690CC7";
String datasource = "ads";
String collectionId = "archives";
readAndIndexTest(isRecord, recordId, datasource, collectionId);
}
@Test
@Ignore
public void uploadDansNoSpatialTest() throws Exception { public void uploadDansNoSpatialTest() throws Exception {
boolean isRecord = true; boolean isRecord = true;
String recordId = "https://ariadne-portal-staging.d4science.org/resource/F100A0AD-6A7F-3976-B77F-FFAB4F5B55DD"; String recordId = "https://ariadne-portal-staging.d4science.org/resource/F100A0AD-6A7F-3976-B77F-FFAB4F5B55DD";