Project

General

Profile

« Previous | Next » 

Revision 49718

one more mapping test

View differences:

modules/dnet-mapreduce-jobs/trunk/src/test/java/eu/dnetlib/data/transform/XsltRowTransformerFactoryTest.java
64 64
	}
65 65

  
66 66
	@Test
67
	public void testParseFp7IctPUB() throws Exception {
68

  
69
		doTest(loadFromTransformationProfile("oaf2hbase.xml"), load("ec_fp7_ict.xml"));
70
	}
71

  
72
	@Test
67 73
	public void testParseDatasetPUB() throws Exception {
68 74

  
69 75
		doTest(loadFromTransformationProfile("odf2hbase.xml"), load("recordDatasetPUB.xml"));
modules/dnet-mapreduce-jobs/trunk/src/test/resources/eu/dnetlib/data/transform/ec_fp7_ict.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<record xmlns:cr="http://www.crossref.org/qrschema/2.0"
3
        xmlns:dc="http://purl.org/dc/elements/1.1/"
4
        xmlns:dr="http://www.driver-repository.eu/namespace/dr"
5
        xmlns:dri="http://www.driver-repository.eu/namespace/dri"
6
        xmlns:oaf="http://namespace.openaire.eu/oaf"
7
        xmlns:prov="http://www.openarchives.org/OAI/2.0/provenance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
8
	<header xmlns="http://namespace.openaire.eu/">
9
		<dri:objIdentifier>ec_fp7_ict__::2bac79457cd70a71763839a5abc52510</dri:objIdentifier>
10
		<dri:recordIdentifier>10.1016/j.radphyschem.2013.03.050</dri:recordIdentifier>
11
		<dri:dateOfCollection/>
12
		<dri:mdFormat/>
13
		<dri:mdFormatInterpretation/>
14
		<dri:repositoryId>99773040-064e-4fc8-b9ca-5c59b5cec020_UmVwb3NpdG9yeVNlcnZpY2VSZXNvdXJjZXMvUmVwb3NpdG9yeVNlcnZpY2VSZXNvdXJjZVR5cGU=</dri:repositoryId>
15
		<dr:objectIdentifier/>
16
		<dr:dateOfCollection>2016-04-05T12:41:15.78Z</dr:dateOfCollection>
17
		<dr:dateOfTransformation>2016-04-05T12:42:23.175Z</dr:dateOfTransformation>
18
		<oaf:datasourceprefix>ec_fp7_ict__</oaf:datasourceprefix>
19
	</header>
20
	<metadata xmlns="http://namespace.openaire.eu/">
21
		<dc:title>Computed microtomography and numerical study of porous rock samples</dc:title>
22
		<dc:creator>Bielecki J.</dc:creator>
23
		<dc:creator>Jarzyna J.</dc:creator>
24
		<dc:creator>Bozek S.</dc:creator>
25
		<dc:creator>Lekki J.</dc:creator>
26
		<dc:creator>Stachura Z.</dc:creator>
27
		<dc:creator>Kwiatek W.M.</dc:creator>
28
		<dc:date>2013</dc:date>
29
		<dc:identifier>http://dx.doi.org/10.1016/j.radphyschem.2013.03.050</dc:identifier>
30
		<dc:language/>
31
		<dc:source>Radiation Physics and Chemistry</dc:source>
32
		<dc:subject/>
33
		<dr:CobjCategory>0001</dr:CobjCategory>
34
		<dr:CobjIdentifier/>
35
		<oaf:dateAccepted/>
36
		<!-- <oaf:projectid>corda_______::261323</oaf:projectid> -->
37
		<oaf:collectedDatasourceid>openaire____::ec_fp7_ict</oaf:collectedDatasourceid>
38
		<oaf:accessrights>CLOSED</oaf:accessrights>
39
		<oaf:hostedBy
40
				id="openaire____::1256f046-bf1f-4afc-8b47-d0b147148b18" name="Unknown Repository"/>
41
		<oaf:collectedFrom id="openaire____::ec_fp7_ict" name="ICT FP7 Publications Database"/>
42
		<oaf:identifier identifierType="doi">10.1016/j.radphyschem.2013.03.050</oaf:identifier>
43
		<oaf:journal eissn="" issn="0969806X">Radiation Physics and Chemistry</oaf:journal>
44
	</metadata>
45
	<about xmlns="http://namespace.openaire.eu/" xmlns:oai="http://www.openarchives.org/OAI/2.0/">
46
		<provenance xmlns="http://www.openarchives.org/OAI/2.0/provenance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/provenance http://www.openarchives.org/OAI/2.0/provenance.xsd">
47
			<originDescription altered="true" harvestDate="2016-04-05T12:41:15.78Z">
48
				<baseURL>file:///var/lib/dnet/data/ict_fp7</baseURL>
49
				<identifier/>
50
				<datestamp/>
51
				<metadataNamespace/>
52
			</originDescription>
53
		</provenance>
54
		<oaf:datainfo>
55
			<oaf:inferred>false</oaf:inferred>
56
			<oaf:deletedbyinference>false</oaf:deletedbyinference>
57
			<oaf:trust>0.8</oaf:trust>
58
			<oaf:inferenceprovenance/>
59
			<oaf:provenanceaction classid="sysimport:crosswalk:repository"
60
			                      classname="sysimport:crosswalk:repository"
61
			                      schemeid="dnet:provenanceActions" schemename="dnet:provenanceActions"/>
62
		</oaf:datainfo>
63
	</about>
64
</record>

Also available in: Unified diff