Project

General

Profile

« Previous | Next » 

Revision 42825

#2091: testing dataset claims

View differences:

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

  
127 127
	@Test
128
	public void testParseClaimDataset() throws Exception {
129

  
130
		doTest(loadFromTransformationProfile("odf2hbase.xml"), load("recordClaimDataset.xml"));
131
	}
132

  
133
	@Test
128 134
	public void testParseACM() throws Exception {
129 135

  
130 136
		doTest(loadFromTransformationProfile("oaf2hbase.xml"), load("recordACM.xml"));
modules/dnet-mapreduce-jobs/trunk/src/test/resources/eu/dnetlib/data/transform/recordClaimDataset.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<oai:record xmlns:dc="http://purl.org/dc/elements/1.1/"
3
            xmlns:dr="http://www.driver-repository.eu/namespace/dr"
4
            xmlns:dri="http://www.driver-repository.eu/namespace/dri"
5
            xmlns:oaf="http://namespace.openaire.eu/oaf" xmlns:oai="http://www.openarchives.org/OAI/2.0/">
6
    <oai:header>
7
        <dri:objIdentifier>datacite____::00dde293cda4dc22b4ea7e9b4d5b26d7</dri:objIdentifier>
8
        <dri:recordIdentifier>10.17026/DANS-ZZQ-YMGE</dri:recordIdentifier>
9
        <dri:dateOfCollection/>
10
        <dri:mdFormat/>
11
        <dri:mdFormatInterpretation/>
12
        <dri:repositoryId/>
13
        <dr:objectIdentifier/>
14
        <dr:dateOfCollection>2015-08-18T13:01:04+00:00</dr:dateOfCollection>
15
        <oaf:datasourceprefix>openaire____</oaf:datasourceprefix>
16
        <dr:dateOfTransformation>2016-06-13T17:23:12.408+02:00</dr:dateOfTransformation>
17
    </oai:header>
18
    <oai:metadata>
19
        <resource xmlns="http://datacite.org/schema/kernel-3"
20
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://datacite.org/schema/kernel-3 http://schema.datacite.org/meta/kernel-3/metadata.xsd">
21
            <identifier identifierType="URL">http://dx.doi.org/10.17026%2FDANS-ZZQ-YMGE</identifier>
22
            <alternateIdentifiers>
23
                <alternateIdentifier alternateIdentifierType="doi">10.17026/DANS-ZZQ-YMGE</alternateIdentifier>
24
            </alternateIdentifiers>
25
            <creators>
26
                <creator>
27
                    <creatorName>Nagel, D</creatorName>
28
                </creator>
29
                <creator>
30
                    <creatorName>Cocquyt, T.</creatorName>
31
                </creator>
32
            </creators>
33
            <titles>
34
                <title>Animated, interactive 3D visualization of a corn mill, after a description by Ramelli</title>
35
            </titles>
36
            <publisher>Data Archiving and Networked Services (DANS)</publisher>
37
            <dates>
38
                <date dateType="Accepted">2015-01-01T00:00:00Z</date>
39
            </dates>
40
            <resourceType resourceTypeGeneral="Dataset">dataset</resourceType>
41
            <descriptions/>
42
        </resource>
43
        <oaf:accessrights>UNKNOWN</oaf:accessrights>
44
        <dr:CobjCategory>0021</dr:CobjCategory>
45
        <oaf:collectedDatasourceid>openaire____::datacite</oaf:collectedDatasourceid>
46
        <oaf:accessrights/>
47
        <oaf:hostedBy
48
                id="openaire____::1256f046-bf1f-4afc-8b47-d0b147148b18" name="Unknown Repository"/>
49
        <oaf:collectedFrom id="openaire____::datacite" name="Datacite"/>
50
        <oaf:identifier identifierType="doi">10.17026/DANS-ZZQ-YMGE</oaf:identifier>
51
    </oai:metadata>
52
    <about>
53
        <oaf:datainfo>
54
            <oaf:inferred>false</oaf:inferred>
55
            <oaf:deletedbyinference>false</oaf:deletedbyinference>
56
            <oaf:trust>0.9</oaf:trust>
57
            <oaf:inferenceprovenance/>
58
            <oaf:provenanceaction classid="user:claim:datacite"
59
                                  classname="user:claim:datacite"
60
                                  schemeid="dnet:provenanceActions" schemename="dnet:provenanceActions"/>
61
        </oaf:datainfo>
62
    </about>
63
</oai:record>
64

  

Also available in: Unified diff