oaf:country mapping
This commit is contained in:
parent
a99942f7cf
commit
7a934affd8
|
@ -59,7 +59,6 @@ base_dc:global_id (I used oai:identifier)
|
||||||
base_dc:collection/text()
|
base_dc:collection/text()
|
||||||
|
|
||||||
base_dc:continent
|
base_dc:continent
|
||||||
base_dc:country
|
|
||||||
base_dc:year (I used dc:date)
|
base_dc:year (I used dc:date)
|
||||||
dc:coverage
|
dc:coverage
|
||||||
dc:language (I used base_dc:lang)
|
dc:language (I used base_dc:lang)
|
||||||
|
@ -256,6 +255,11 @@ base_dc:link (I used dc:identifier)
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</oaf:relation>
|
</oaf:relation>
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
|
|
||||||
|
<xsl:for-each select="//base_dc:country">
|
||||||
|
<oaf:country><xsl:value-of select="vocabulary:clean(., 'dnet:countries')" /></oaf:country>
|
||||||
|
</xsl:for-each>
|
||||||
|
|
||||||
</metadata>
|
</metadata>
|
||||||
<xsl:copy-of select="//*[local-name() = 'about']" />
|
<xsl:copy-of select="//*[local-name() = 'about']" />
|
||||||
</record>
|
</record>
|
||||||
|
|
|
@ -42,7 +42,6 @@
|
||||||
base_dc:global_id (I used oai:identifier)
|
base_dc:global_id (I used oai:identifier)
|
||||||
base_dc:collection/text()
|
base_dc:collection/text()
|
||||||
base_dc:continent
|
base_dc:continent
|
||||||
base_dc:country
|
|
||||||
dc:coverage
|
dc:coverage
|
||||||
dc:source
|
dc:source
|
||||||
dc:relation
|
dc:relation
|
||||||
|
@ -290,6 +289,11 @@
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</oaf:relation>
|
</oaf:relation>
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
|
|
||||||
|
<xsl:for-each select="//base_dc:country">
|
||||||
|
<oaf:country><xsl:value-of select="vocabulary:clean(., 'dnet:countries')" /></oaf:country>
|
||||||
|
</xsl:for-each>
|
||||||
|
|
||||||
</metadata>
|
</metadata>
|
||||||
<xsl:copy-of select="//*[local-name() = 'about']" />
|
<xsl:copy-of select="//*[local-name() = 'about']" />
|
||||||
</record>
|
</record>
|
||||||
|
|
|
@ -8,7 +8,6 @@ import org.apache.spark.SparkConf;
|
||||||
import org.apache.spark.util.LongAccumulator;
|
import org.apache.spark.util.LongAccumulator;
|
||||||
import org.dom4j.io.SAXReader;
|
import org.dom4j.io.SAXReader;
|
||||||
import org.junit.jupiter.api.BeforeEach;
|
import org.junit.jupiter.api.BeforeEach;
|
||||||
import org.junit.jupiter.api.Disabled;
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.junit.jupiter.api.extension.ExtendWith;
|
import org.junit.jupiter.api.extension.ExtendWith;
|
||||||
import org.mockito.junit.jupiter.MockitoExtension;
|
import org.mockito.junit.jupiter.MockitoExtension;
|
||||||
|
@ -20,7 +19,7 @@ import eu.dnetlib.dhp.schema.mdstore.Provenance;
|
||||||
import eu.dnetlib.dhp.transformation.xslt.XSLTTransformationFunction;
|
import eu.dnetlib.dhp.transformation.xslt.XSLTTransformationFunction;
|
||||||
import eu.dnetlib.enabling.is.lookup.rmi.ISLookUpException;
|
import eu.dnetlib.enabling.is.lookup.rmi.ISLookUpException;
|
||||||
|
|
||||||
@Disabled
|
// @Disabled
|
||||||
@ExtendWith(MockitoExtension.class)
|
@ExtendWith(MockitoExtension.class)
|
||||||
public class BaseTransfomationTest extends AbstractVocabularyTest {
|
public class BaseTransfomationTest extends AbstractVocabularyTest {
|
||||||
|
|
||||||
|
@ -66,9 +65,9 @@ public class BaseTransfomationTest extends AbstractVocabularyTest {
|
||||||
|
|
||||||
private XSLTTransformationFunction loadTransformationRule(final String path) throws Exception {
|
private XSLTTransformationFunction loadTransformationRule(final String path) throws Exception {
|
||||||
final String xslt = new SAXReader()
|
final String xslt = new SAXReader()
|
||||||
.read(this.getClass().getResourceAsStream(path))
|
.read(this.getClass().getResourceAsStream(path))
|
||||||
.selectSingleNode("//CODE/*")
|
.selectSingleNode("//CODE/*")
|
||||||
.asXML();
|
.asXML();
|
||||||
|
|
||||||
final LongAccumulator la = new LongAccumulator();
|
final LongAccumulator la = new LongAccumulator();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue