diff --git a/dnet-ariadneplus/src/test/java/eu/dnetlib/x3m/ApplyX3MappingTest.java b/dnet-ariadneplus/src/test/java/eu/dnetlib/x3m/ApplyX3MappingTest.java
index bd2390b..98af91e 100644
--- a/dnet-ariadneplus/src/test/java/eu/dnetlib/x3m/ApplyX3MappingTest.java
+++ b/dnet-ariadneplus/src/test/java/eu/dnetlib/x3m/ApplyX3MappingTest.java
@@ -56,6 +56,17 @@ public class ApplyX3MappingTest {
x3mEngine.execute();
}
+ @Test
+ public void testCarareCollection() throws MalformedURLException {
+ X3MLEngineFactory x3mEngine = X3MLEngineFactory.create()
+ .withMappings(new URL("https://mapping.d4science.org/3MEditor/Services?id=1010&output=text/xml&method=export"))
+ .withVerboseLogging()
+ .withGeneratorPolicy(getInputStreamFromClasspath("/eu/dnetlib/x3m/ariadne_policy.xml"))
+ .withInput(getInputStreamFromClasspath("/eu/dnetlib/x3m/carare_collection.xml"))
+ .withOutput(System.out, X3MLEngineFactory.OutputFormat.RDF_XML);
+ x3mEngine.execute();
+ }
+
public void doBasicTest(String policyPath, String recordPath) throws IOException {
diff --git a/dnet-ariadneplus/src/test/resources/eu/dnetlib/x3m/ariadne_policy.xml b/dnet-ariadneplus/src/test/resources/eu/dnetlib/x3m/ariadne_policy.xml
index 39d5316..2b29c9a 100644
--- a/dnet-ariadneplus/src/test/resources/eu/dnetlib/x3m/ariadne_policy.xml
+++ b/dnet-ariadneplus/src/test/resources/eu/dnetlib/x3m/ariadne_policy.xml
@@ -1,51 +1,37 @@
-
-
-
-
-
-
+
+
Collection/{term}
Collection/{provider}/{term}
-
Resource/{term}
-
Resource/{provider}/{term}
-
-
Object/{resource}-{term}
-
Object/{arg1}/{arg2}
-
Resource {resource} is about object {term}
-
Identifier/{term}
-
- >
+
Document/{term}
-
Document/{provider}/{term}
-
Event/{resource}-{term}
@@ -70,7 +56,7 @@
Place/{arg1}/{arg2}
-
+
Agent/{term}
@@ -82,65 +68,63 @@
Organisation/{term}
-
Concept/{term}
Concept/{scheme}/{term}
-
Concept/{db}/{scheme}/{term}
-
Concept/{scheme}/{term}
-
{term}
-
{level1}/{term}
{level1}/{level2}/{term}
-
+
+ Grave/{provider}/{term}
+
+
+ Burial/{provider}/{term}
+
+
+ Finds/{provider}/{term}
+
{label}
-
{label} {text}
-
-
-
-
-
+
+
-
-
+
\ No newline at end of file
diff --git a/dnet-ariadneplus/src/test/resources/eu/dnetlib/x3m/carare_collection.xml b/dnet-ariadneplus/src/test/resources/eu/dnetlib/x3m/carare_collection.xml
new file mode 100644
index 0000000..50f71a9
--- /dev/null
+++ b/dnet-ariadneplus/src/test/resources/eu/dnetlib/x3m/carare_collection.xml
@@ -0,0 +1,20 @@
+
+
+ Sites and Monuments Record (SMR), Ireland
+ https://archaeology.ie/archaeological-survey-ireland
+ National Monuments Service, Department of Housing, Local Government and Heritage
+ The SMR contains details of all monuments and places (sites) where it is believed there is a
+ monument known to the ASI pre-dating AD 1700 and also includes a selection of monuments from the post-AD 1700
+ period. There are in excess of 150,800 records in the database and over 138,800 of these relate to
+ archaeological monuments. The remaining 12,000 records are classified as ‘Redundant record’: the majority of
+ these relate to obsolete terms, records or features that are not monuments.
+
+ National Monuments Service, Department of Housing, Local Government and Heritage, Republic of
+ Ireland
+
+ Tue July 21 12:00:00 BST 2022
+ Tue July 21 12:00:00 BST 2022
+ Dataset Collection
+ eng
+ https://archaeology.ie/archaeological-survey-ireland/historic-environment-viewer-application
+