Project

General

Profile

« Previous | Next » 

Revision 32482

[maven-release-plugin] copy for tag dnet-openaireplus-workflows-1.2.3

View differences:

modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-1.2.3/pom.xml
1
<?xml version="1.0" ?>
2
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3
	<parent>
4
		<groupId>eu.dnetlib</groupId>
5
		<artifactId>dnet-parent</artifactId>
6
		<version>1.0.0</version>
7
		<relativePath />
8
	</parent>
9
	<modelVersion>4.0.0</modelVersion>
10
	<groupId>eu.dnetlib</groupId>
11
	<artifactId>dnet-openaireplus-workflows</artifactId>
12
	<packaging>jar</packaging>
13
	<version>1.2.3</version>
14
	<scm>
15
	  <developerConnection>scm:svn:https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-1.2.3</developerConnection>
16
	</scm>
17
	<dependencies>
18
		<dependency>
19
			<groupId>eu.dnetlib</groupId>
20
			<artifactId>cnr-enabling-database-api</artifactId>
21
			<version>[1.0.0,2.0.0)</version>
22
		</dependency>
23
		<dependency>
24
			<groupId>eu.dnetlib</groupId>
25
			<artifactId>dnet-msro-service</artifactId>
26
			<version>[1.2.0,2.0.0)</version>
27
		</dependency>
28
		<dependency>
29
			<groupId>eu.dnetlib</groupId>
30
			<artifactId>cnr-resultset-service</artifactId>
31
			<version>[1.0.0,2.0.0)</version>
32
		</dependency>
33
		<dependency>
34
			<groupId>eu.dnetlib</groupId>
35
			<artifactId>dnet-openaireplus-datasource-manager-service</artifactId>
36
			<version>[3.0.1,4.0.0)</version>
37
		</dependency>
38
		<dependency>
39
			<groupId>eu.dnetlib</groupId>
40
			<artifactId>dnet-openaireplus-mapping-utils</artifactId>
41
			<version>[2.0.0,3.0.0)</version>
42
		</dependency>
43
		<dependency>
44
			<groupId>eu.dnetlib</groupId>
45
			<artifactId>dnet-hadoop-service-rmi</artifactId>
46
			<version>[1.0.0,2.0.0)</version>
47
		</dependency>
48
		<dependency>
49
			<groupId>eu.dnetlib</groupId>
50
			<artifactId>dnet-index-solr-common</artifactId>
51
			<version>[1.0.0,2.0.0)</version>
52
		</dependency>
53
		<dependency>
54
			<groupId>eu.dnetlib</groupId>
55
			<artifactId>dnet-collector-plugins</artifactId>
56
			<version>[1.0.0,2.0.0)</version>		
57
		</dependency>
58
		<dependency>
59
			<groupId>eu.dnetlib</groupId>
60
			<artifactId>dnet-resource-discovery</artifactId>
61
			<version>[2.0.0,3.0.0)</version>
62
			<exclusions>
63
				<exclusion>
64
					<artifactId>xercesImpl</artifactId>
65
					<groupId>xerces</groupId>
66
				</exclusion>
67
			</exclusions>
68
		</dependency>
69
		<dependency>
70
			<groupId>eu.dnetlib</groupId>
71
			<artifactId>dnet-actionmanager-api</artifactId>
72
			<version>[3.0.0,4.0.0)</version>
73
		</dependency>
74

  
75
		<dependency>
76
			<groupId>eu.dnetlib</groupId>
77
			<artifactId>dnet-oai-common-workflows</artifactId>
78
			<version>[2.0.0,3.0.0)</version>
79
		</dependency>
80

  
81
		<dependency>
82
			<groupId>junit</groupId>
83
			<artifactId>junit</artifactId>
84
			<version>${junit.version}</version>
85
			<scope>test</scope>
86
		</dependency>
87
	</dependencies>
88
</project>
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-1.2.3/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt/wellcometrust_2_db.xsl
1
<?xml version="1.0" encoding="UTF-8"?>
2
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dr="http://www.driver-repository.eu/namespace/dr"
3
	xmlns:dri="http://www.driver-repository.eu/namespace/dri" xmlns:oaa="http://namespace.openaire.eu/oaa" xmlns:oaf="http://namespace.openaire.eu/oaf" xmlns:fn="http://www.w3.org/2005/xpath-functions">
4

  
5
	<xsl:param name="parentDatasourceId" />
6
	<xsl:param name="namespacePrefix" />
7

  
8
	<xsl:variable name="fundingIDtemp">
9
		<xsl:choose>
10
			<xsl:when test="string-length(normalize-space(.//FundingStream)) &gt; 0">
11
				<xsl:value-of select="concat($namespacePrefix, '::', normalize-space(.//FundingStream))" />	
12
			</xsl:when>
13
			<xsl:otherwise>
14
				wt:UNKNOWN
15
			</xsl:otherwise>
16
		</xsl:choose>
17
	</xsl:variable>
18
	
19
	<xsl:variable name="fundingID" select="normalize-space($fundingIDtemp)" />
20
	<xsl:variable name="funderID" select="concat($namespacePrefix, '::', .//Funder)" />
21
	<xsl:variable name="projectID" select="concat($namespacePrefix, '::', .//Grant/Id)" />
22
	<xsl:variable name="orgID" select="concat($namespacePrefix, '::', translate(.//Institution, ' ,', '__'))" />
23
	<xsl:variable name="personID" select="concat($projectID, '::', translate(concat(.//PI/FirstName, ' ', .//PI/LastName), ' ,.', '___'))" />
24
	<xsl:variable name="startDate" select="translate(.//StartDate,'/\','--')" />
25
	<xsl:variable name="endDate" select="translate(.//EndDate,'/\','--')" />
26
	
27
	<xsl:variable name="dateFormat" select="string('dd-MM-yyyy')"/>
28

  
29
	<xsl:template match="/">
30
    	<record xmlns:dr="http://www.driver-repository.eu/namespace/dr"
31
			xmlns:dri="http://www.driver-repository.eu/namespace/dri"
32
			xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
			xmlns:oaf="http://namespace.openaire.eu/oaf" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/">
34

  
35
		<xsl:copy-of select=".//*[local-name()='header']"/>
36
		<metadata>
37
		<ROWS>
38
			<xsl:if test="string-length(normalize-space(.//Grant/Title)) &gt; 0 and string-length($projectID) &gt; 0">
39
				<ROW table="projects">
40
					<FIELD name="_dnet_resource_identifier_"><xsl:value-of select="$projectID" /></FIELD>
41
					<FIELD name="id"><xsl:value-of select="$projectID" /></FIELD>
42
					<FIELD name="code"><xsl:value-of select=".//Grant/Id"/></FIELD>
43
					<FIELD name="startdate" type="date" format="{$dateFormat}"><xsl:value-of select="$startDate" /></FIELD>
44
					<FIELD name="enddate" type="date" format="{$dateFormat}"><xsl:value-of select="$endDate" /></FIELD>
45
					<FIELD name="title"><xsl:value-of select=".//Grant/Title" /></FIELD>
46
					<FIELD name="contracttypeclass">UNKNOWN</FIELD>
47
					<FIELD name="contracttypescheme">wt:contractTypes</FIELD>
48
					<FIELD name="acronym">UNKNOWN</FIELD>
49
					<FIELD name="keywords"><xsl:value-of select=".//Grant/Type" /></FIELD>
50
					<FIELD name="provenanceActionClass">sysimport:crosswalk:entityregistry</FIELD>
51
					<FIELD name="provenanceActionScheme">dnet:provenanceActions</FIELD>
52
					<FIELD name="collectedfrom"><xsl:value-of select="$parentDatasourceId" /></FIELD>
53
					<FIELD name="optional1"><xsl:value-of select="concat(.//Grant/AmountAwarded, ' pounds')" /></FIELD>
54
				</ROW>
55
	
56
				<ROW table="fundings">
57
					<FIELD name="_dnet_resource_identifier_">wt::WT</FIELD>
58
					<FIELD name="id">wt::WT</FIELD>
59
					<FIELD name="name">WT</FIELD>
60
					<FIELD name="description">Wellcome Trust</FIELD>
61
					<FIELD name="semanticclass">wt:fundingStream</FIELD>
62
					<FIELD name="semanticscheme">wt:funding_typologies</FIELD>
63
				</ROW>
64
	
65
				<ROW table="fundings">
66
					<FIELD name="_dnet_resource_identifier_"><xsl:value-of select="$fundingID" /></FIELD>
67
					<FIELD name="id"><xsl:value-of select="$fundingID" /></FIELD>
68
					<FIELD name="name"><xsl:value-of select=".//FundingStream" /></FIELD>
69
					<FIELD name="description"><xsl:value-of select=".//FundingStream" /></FIELD>
70
					<FIELD name="semanticclass">wt:fundingStream</FIELD>
71
					<FIELD name="semanticscheme">wt:funding_typologies</FIELD>
72
				</ROW>
73
				
74
				<ROW table="funding_funding">
75
					<FIELD name="_dnet_resource_identifier_"><xsl:value-of select="concat($fundingID,'@@wt::WT')" /></FIELD>
76
					<FIELD name="funding1"><xsl:value-of select="$fundingID" /></FIELD>
77
					<FIELD name="funding2">wt::WT</FIELD>
78
					<FIELD name="semanticclass">wt:hasParentFunding</FIELD>
79
					<FIELD name="semanticscheme">wt:funding_relations</FIELD>
80
				</ROW>
81
	
82
				<ROW table="organizations">
83
					<FIELD name="_dnet_resource_identifier_"><xsl:value-of select="$funderID" /></FIELD>
84
					<FIELD name="id"><xsl:value-of select="$funderID" /></FIELD>
85
					<FIELD name="legalshortname"><xsl:value-of select=".//Funder" /></FIELD>
86
					<FIELD name="legalname"><xsl:value-of select=".//Funder" /></FIELD>
87
					<FIELD name="provenanceActionClass">sysimport:crosswalk:entityregistry</FIELD>
88
					<FIELD name="provenanceActionScheme">dnet:provenanceActions</FIELD>
89
				</ROW>
90
	
91
				<ROW table="organization_funding">
92
					<FIELD name="_dnet_resource_identifier_"><xsl:value-of select="concat($funderID,'@@', $fundingID)" /></FIELD>
93
					<FIELD name="funder"><xsl:value-of select="$funderID" /></FIELD>
94
					<FIELD name="funding"><xsl:value-of select="$fundingID" /></FIELD>
95
				</ROW>
96
	
97
				<ROW table="project_funding">
98
					<FIELD name="_dnet_resource_identifier_"><xsl:value-of select="concat($fundingID,'@@', $projectID)" /></FIELD>
99
					<FIELD name="funding"><xsl:value-of select="$fundingID" /></FIELD>
100
					<FIELD name="project"><xsl:value-of select="$projectID" /></FIELD>
101
					<FIELD name="startdate" type="date" format="{$dateFormat}"><xsl:value-of select="$startDate" /></FIELD>
102
					<FIELD name="enddate" type="date" format="{$dateFormat}"><xsl:value-of select="$endDate" /></FIELD>
103
				</ROW>
104
				
105
				<ROW table="persons">
106
					<FIELD name="_dnet_resource_identifier_"><xsl:value-of select="$personID" /></FIELD>
107
					<FIELD name="id"><xsl:value-of select="$personID" /></FIELD>
108
					<FIELD name="firstname"><xsl:value-of select=".//PI/FirstName" /></FIELD>
109
					<FIELD name="secondnames"><xsl:value-of select=".//PI/LastName" /></FIELD>
110
					<FIELD name="collectedfrom"><xsl:value-of select="$parentDatasourceId" /></FIELD>
111
					<FIELD name="optional1"><xsl:value-of select=".//PI/Title" /></FIELD>
112
					<FIELD name="provenanceActionClass">sysimport:crosswalk:entityregistry</FIELD>
113
					<FIELD name="provenanceActionScheme">dnet:provenanceActions</FIELD>
114
				</ROW>
115
				
116
				<xsl:if test="string-length($orgID) &gt; 4"> 
117
					<ROW table="organizations">
118
						<FIELD name="_dnet_resource_identifier_"><xsl:value-of select="$orgID" /></FIELD>
119
						<FIELD name="id"><xsl:value-of select="$orgID" /></FIELD>
120
						<FIELD name="legalshortname"><xsl:value-of select=".//Institution" /></FIELD>
121
						<FIELD name="legalname"><xsl:value-of select=".//Institution" /></FIELD>
122
						<FIELD name="collectedfrom"><xsl:value-of select="$parentDatasourceId" /></FIELD>
123
						<FIELD name="provenanceActionClass">sysimport:crosswalk:entityregistry</FIELD>
124
						<FIELD name="provenanceActionScheme">dnet:provenanceActions</FIELD>
125
						<FIELD name="trust" type="float">0.8</FIELD>
126
					</ROW>
127
		
128
					<ROW table="project_organization">
129
						<FIELD name="_dnet_resource_identifier_"><xsl:value-of select="concat($projectID, '@@', $orgID)" /></FIELD>
130
						<FIELD name="participantnumber" type="int">1</FIELD>
131
						<FIELD name="startdate" type="date" format="{$dateFormat}"><xsl:value-of select="$startDate" /></FIELD>
132
						<FIELD name="enddate" type="date" format="{$dateFormat}"><xsl:value-of select="$endDate" /></FIELD>
133
						<FIELD name="project"><xsl:value-of select="$projectID" /></FIELD>
134
						<FIELD name="resporganization"><xsl:value-of select="$orgID" /></FIELD>
135
						<FIELD name="contactperson"><xsl:value-of select="$personID" /></FIELD>
136
						<FIELD name="semanticclass">coordinator</FIELD>
137
						<FIELD name="semanticscheme">dnet:project_organization_relations</FIELD>
138
					</ROW>
139
				</xsl:if>
140
			</xsl:if>
141
		</ROWS>
142
		</metadata>
143
		</record>
144
	</xsl:template>
145
</xsl:stylesheet>
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-1.2.3/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt/row_2_mdstore.xsl
1
<?xml version="1.0" encoding="UTF-8"?>
2
<xsl:stylesheet version="1.0"
3
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
	xmlns:datetime="http://exslt.org/dates-and-times" xmlns:exslt="http://exslt.org/common"
5
	xmlns:oai="http://www.openarchives.org/OAI/2.0/"
6
	exclude-result-prefixes="xsl datetime exslt xsi" xmlns:dri="http://www.driver-repository.eu/namespace/dri">
7

  
8
	<xsl:param name="datasourceId" />
9

  
10
	<xsl:template match="/">
11
		<record xmlns:dri="http://www.driver-repository.eu/namespace/dri">
12
  			<header>
13
	  			<dri:objIdentifier>
14
					<xsl:value-of select="concat($datasourceId, '::', normalize-space(//FIELD[@name='_dnet_resource_identifier_']))"/>
15
				</dri:objIdentifier>
16
				<dri:dateOfCollection>
17
					<xsl:value-of select="datetime:dateTime()" />
18
				</dri:dateOfCollection>
19
				<dri:repositoryId>
20
					<xsl:value-of select="$datasourceId" />
21
				</dri:repositoryId>
22
			</header>
23
			<metadata>
24
				<xsl:copy-of select="." />			
25
			</metadata>
26
		</record>
27
	</xsl:template>
28

  
29
</xsl:stylesheet>
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-1.2.3/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt-datacite/DatasetfromPangaeaTransform.xsl
1
<?xml version="1.0" encoding="UTF-8"?>
2
<xsl:stylesheet version="1.0"
3
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dc="http://purl.org/dc/elements/1.1/"
4
                xmlns:dr="http://www.driver-repository.eu/namespace/dr" xmlns:oai="http://www.openarchives.org/OAI/2.0/"
5
                xmlns:datetime="http://exslt.org/dates-and-times"
6
                xmlns:dri="http://www.driver-repository.eu/namespace/dri"
7
                xmlns:md="http://www.pangaea.de/MetaData" xmlns:oaa="http://namespace.openaire.eu/oaa"
8
                xmlns:oaf="http://namespace.openaire.eu/oaf" xmlns:fn="http://www.w3.org/2005/xpath-functions"
9
                xmlns:dnet="eu.dnetlib.data.transform.xml.DNetMdStoreToHbaseXsltFunctions"
10
                xmlns:stringUtils="org.apache.commons.lang.StringUtils"
11
                exclude-result-prefixes="xsl dnet oaa fn stringUtils datetime">
12
    <xsl:param name="namespacePrefix"/>
13
    <xsl:param name="dataSourceId"/>
14
    <xsl:param name="parentDatasourceId"/>
15
    <xsl:param name="dataprovider_name"/>
16
    <xsl:param name="dataprovider_id"/>
17

  
18
    <xsl:template match="/">
19

  
20

  
21
        <xsl:variable name="identifier_datacite">
22
            <xsl:value-of select="oai:record/oai:header/dri:objIdentifier"/>
23
        </xsl:variable>
24

  
25
        <xsl:variable name="dataset_identifier">
26
            <xsl:value-of
27
                    select="stringUtils:substringAfter(//md:citation/md:URI,'doi:')"/>
28
        </xsl:variable>
29
        <xsl:variable name="openaire_dataset_identifier">
30
            <xsl:value-of
31
                    select="concat($namespacePrefix,'::', dnet:md5($dataset_identifier))"/>
32
        </xsl:variable>
33

  
34
        <xsl:variable name="parentURI">
35
            <xsl:value-of select="//md:citation/md:parentURI"/>
36
        </xsl:variable>
37

  
38
        <xsl:call-template name="CreateRecord">
39
            <xsl:with-param name="openaire_dataset_identifier" select="$openaire_dataset_identifier"/>
40
            <xsl:with-param name="dataset_identifier" select="$dataset_identifier"/>
41
            <xsl:with-param name="parent_uri" select="$parentURI" />
42
        </xsl:call-template>
43

  
44

  
45
    </xsl:template>
46
    <xsl:template name="CreateRecord">
47
        <xsl:param name="openaire_dataset_identifier"/>
48
        <xsl:param name="dataset_identifier"/>
49
        <xsl:param name="parent_uri" />
50
        <oai:record>
51
            <oai:header>
52
                <dri:objIdentifier>
53
                    <xsl:value-of select="$openaire_dataset_identifier"/>
54
                </dri:objIdentifier>
55
                <dri:recordIdentifier>
56
                    <xsl:value-of select="$dataset_identifier"/>
57
                </dri:recordIdentifier>
58
                <dri:dateOfCollection>
59
                    <xsl:value-of select="datetime:dateTime()"/>
60
                </dri:dateOfCollection>
61
                <dri:repositoryId>
62
                    <xsl:value-of select="$dataprovider_id"/>
63
                </dri:repositoryId>
64
                <oaf:datasourceprefix>
65
                    <xsl:value-of select="$namespacePrefix"/>
66
                </oaf:datasourceprefix>
67
            </oai:header>
68
            <oai:metadata>
69
                <resource
70
                        xsi:schemaLocation="http://datacite.org/schema/kernel-3 http://schema.datacite.org/meta/kernel-3/metadata.xsd"
71
                        xmlns="http://datacite.org/schema/kernel-3"
72
                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
73
                    <identifier identifierType="DOI">
74
                        <xsl:value-of
75
                                select="$dataset_identifier"/>
76
                    </identifier>
77
                    <creators>
78
                        <xsl:for-each select="//md:citation/md:author">
79
                            <creator>
80
                                <creatorName>
81
                                    <xsl:value-of select="concat(./md:firstName, ' ', ./md:lastName)"/>
82
                                </creatorName>
83
                                <nameIdentifier schemeURI="http://www.pangaea.de"
84
                                                nameIdentifierScheme="PANGAEA">
85
                                    <xsl:value-of select="./@id"/>
86
                                </nameIdentifier>
87

  
88
                            </creator>
89
                        </xsl:for-each>
90
                    </creators>
91
                    <titles>
92
                        <xsl:for-each select="//md:citation/md:title">
93
                            <title xml:lang="en-us">
94
                                <xsl:value-of select="."/>
95
                            </title>
96
                        </xsl:for-each>
97
                    </titles>
98
                    <publisher>PANGAEA</publisher>
99
                    <publicationYear>
100
                        <xsl:value-of select="//md:citation/md:year"/>
101
                    </publicationYear>
102
                    <xsl:variable name="description">
103
                        <xsl:value-of select="//md:citation/md:abstract"/>
104
                    </xsl:variable>
105
                    <xsl:if test="$description">
106
                        <descriptions>
107
                            <description descriptionType="Abstract">
108
                                <xsl:value-of select="$description"/>
109
                            </description>
110
                        </descriptions>
111
                    </xsl:if>
112
                    <rights>info:eu-repo/semantics/openAccess</rights>
113
                    <contributors>
114
                        <contributor contributorType="Funder">
115
                            <contributorName>European Commission</contributorName>
116
                            <nameIdentifier nameIdentifierScheme="info">
117
                                <xsl:value-of
118
                                        select="//oaf:projectid"/>
119
                            </nameIdentifier>
120
                        </contributor>
121
                    </contributors>
122
                </resource>
123
                <xsl:for-each select="//md:citation/md:supplementTo/@id">
124
                    <xsl:variable name="publicationID">
125
                        <xsl:value-of select="."/>
126
                    </xsl:variable>
127
                    <xsl:choose>
128
                        <xsl:when test="string-length($publicationID) &gt; 0">
129
                            <oaf:relatedPublication>
130
                                <xsl:attribute name="id">
131
                                    <xsl:value-of
132
                                            select="concat($namespacePrefix,'::', dnet:md5($publicationID))"/>
133
                                </xsl:attribute>
134
                            </oaf:relatedPublication>
135
                        </xsl:when>
136
                    </xsl:choose>
137
                </xsl:for-each>
138

  
139
               <xsl:choose>
140
                   <xsl:when test="string-length($parent_uri) &gt; 0">
141
                       <xsl:variable name="dataset_relate_ID">
142
                           <xsl:value-of select="stringUtils:substringAfter($parent_uri,'doi:')"/>
143
                       </xsl:variable>
144
                       <xsl:choose>
145
                           <xsl:when test="string-length($dataset_relate_ID) &gt; 0">
146
                               <oaf:relatedDataSet>
147
                                   <xsl:attribute name="id">
148
                                       <xsl:value-of
149
                                               select="concat($namespacePrefix,'::', dnet:md5($dataset_relate_ID))"/>
150
                                   </xsl:attribute>
151
                               </oaf:relatedDataSet>
152
                           </xsl:when>
153
                       </xsl:choose>
154

  
155
                   </xsl:when>
156
               </xsl:choose>
157

  
158
                <oaf:about>
159
                    <oaf:datainfo>
160
                        <oaf:inferred>false</oaf:inferred>
161
                        <oaf:deletedbyinference>false</oaf:deletedbyinference>
162
                        <oaf:trust>0.9</oaf:trust>
163
                        <oaf:inferenceprovenance/>
164
                        <oaf:provenanceaction classid="sysimport:crosswalk:datasetarchive"
165
                                              classname="sysimport:crosswalk:datasetarchive"
166
                                              schemeid="dnet:provenanceActions"
167
                                              schemename="dnet:provenanceActions"/>
168
                    </oaf:datainfo>
169
                </oaf:about>
170
            </oai:metadata>
171
        </oai:record>
172
    </xsl:template>
173
</xsl:stylesheet>
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-1.2.3/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/repo/repoBye_files.wf.st
1
<NODE name="SET_INFO" isStart="true" type="SetProviderInfo">
2
	<DESCRIPTION>Set information about current provider</DESCRIPTION>
3
	<PARAMETERS>
4
		<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM>
5
		<PARAM required="true" type="string" name="providerName" managedBy="system">$params.("dataprovider:name")$</PARAM>
6
		<PARAM required="true" type="string" name="api" managedBy="system">$params.("dataprovider:interface")$</PARAM>
7
	</PARAMETERS>
8
	<ARCS>
9
		<ARC to="DeleteObjectStore"/>
10
	</ARCS>
11
</NODE>
12

  
13
<NODE name="DeleteObjectStore" type="DeleteObjectStore">
14
	<DESCRIPTION>Delete the associated ObjectStore</DESCRIPTION>
15
	<PARAMETERS>
16
		<PARAM required="true" type="string" name="objectstoreId" managedBy="system" category="OBJECTSTORE_ID">$params.("objs_id")$</PARAM>
17
	</PARAMETERS>
18
	<ARCS>
19
		<ARC to="DeleteMetaWorkflow"/>
20
	</ARCS>
21
</NODE>
22

  
23
<NODE name="DeleteMetaWorkflow" type="DeleteOpenaireMetaWf">
24
	<DESCRIPTION>Delete the MetaWorkflow</DESCRIPTION>
25
	<PARAMETERS>
26
		<PARAM required="true" type="string" name="metaWfId" managedBy="system">$params.("META_WORKFLOW_ID")$</PARAM>
27
	</PARAMETERS>
28
	<ARCS>
29
		<ARC to="RemoveApiExtraFields"/>
30
	</ARCS>
31
</NODE>
32

  
33
<NODE name="RemoveApiExtraFields" type="RemoveApiExtraFields">
34
	<DESCRIPTION>Reset the extrafields of the api</DESCRIPTION>
35
	<PARAMETERS>
36
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
37
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
38
		<PARAM required="true" type="string" name="fields" managedBy="system">last_download_total, last_download_date, last_download_objId</PARAM>
39
	</PARAMETERS>
40
	<ARCS>
41
		<ARC to="success"/>
42
	</ARCS>
43
</NODE>
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-1.2.3/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/repo/repoBye.wf.st
1
<NODE name="SET_INFO" isStart="true" type="SetProviderInfo">
2
	<DESCRIPTION>Set information about current provider</DESCRIPTION>
3
	<PARAMETERS>
4
		<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM>
5
		<PARAM required="true" type="string" name="providerName" managedBy="system">$params.("dataprovider:name")$</PARAM>
6
		<PARAM required="true" type="string" name="api" managedBy="system">$params.("dataprovider:interface")$</PARAM>
7
	</PARAMETERS>
8
	<ARCS>
9
		<ARC to="DeleteMetaWorkflow"/>
10
	</ARCS>
11
</NODE>
12

  
13
<NODE name="DeleteMetaWorkflow" type="DeleteOpenaireMetaWf">
14
	<DESCRIPTION>Delete the MetaWorkflow</DESCRIPTION>
15
	<PARAMETERS>
16
		<PARAM required="true" type="string" name="metaWfId" managedBy="system">$params.("META_WORKFLOW_ID")$</PARAM>
17
	</PARAMETERS>
18
	<ARCS>
19
		<ARC to="DeleteMDStoreDC"/>
20
	</ARCS>
21
</NODE>
22

  
23
<NODE name="DeleteMDStoreDC" type="DeleteMDStore">
24
	<DESCRIPTION>Delete the oai_dc mdstore</DESCRIPTION>
25
	<PARAMETERS>
26
		<PARAM required="true" type="string" name="mdstoreId" managedBy="system" category="MDSTORE_ID">$params.("harv_id")$</PARAM>
27
	</PARAMETERS>
28
	<ARCS>
29
		<ARC to="DeleteMDStoreDMF"/>
30
	</ARCS>
31
</NODE>
32

  
33
<NODE name="DeleteMDStoreDMF" type="DeleteMDStore">
34
	<DESCRIPTION>Delete the DMF mdstore</DESCRIPTION>
35
	<PARAMETERS>
36
		<PARAM required="true" type="string" name="mdstoreId" managedBy="system" category="MDSTORE_ID">$params.("tran_id")$</PARAM>
37
	</PARAMETERS>
38
	<ARCS>
39
		<ARC to="RemoveApiExtraFields"/>
40
	</ARCS>
41
</NODE>
42

  
43
<NODE name="RemoveApiExtraFields" type="RemoveApiExtraFields">
44
	<DESCRIPTION>Reset the extrafields of the api</DESCRIPTION>
45
	<PARAMETERS>
46
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
47
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
48
		<PARAM required="true" type="string" name="fields" managedBy="system">last_collection_total, last_collection_date, last_collection_mdId, last_aggregation_total, last_aggregation_date, last_aggregation_mdId</PARAM>
49
	</PARAMETERS>
50
	<ARCS>
51
		<ARC to="success"/>
52
	</ARCS>
53
</NODE>
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-1.2.3/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt-datacite/PublicationFromPangaeatransform.xsl
1
<?xml version="1.0" encoding="UTF-8"?>
2
<xsl:stylesheet version="1.0"
3
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dc="http://purl.org/dc/elements/1.1/"
4
                xmlns:dr="http://www.driver-repository.eu/namespace/dr" xmlns:oai="http://www.openarchives.org/OAI/2.0/"
5
                xmlns:datetime="http://exslt.org/dates-and-times"
6
                xmlns:dri="http://www.driver-repository.eu/namespace/dri"
7
                xmlns:md="http://www.pangaea.de/MetaData" xmlns:oaa="http://namespace.openaire.eu/oaa"
8
                xmlns:oaf="http://namespace.openaire.eu/oaf" xmlns:fn="http://www.w3.org/2005/xpath-functions"
9
                xmlns:dnet="eu.dnetlib.data.transform.xml.DNetMdStoreToHbaseXsltFunctions"
10
                xmlns:stringUtils="org.apache.commons.lang.StringUtils"
11
                exclude-result-prefixes="xsl dnet oaa fn stringUtils datetime">
12

  
13
    <xsl:param name="namespacePrefix"/>
14
    <xsl:param name="dataprovider_id"/>
15
    <xsl:param name="parentDatasourceId"/>
16
    <xsl:param name="dataprovider_name"/>
17

  
18
    <xsl:template match="/">
19
        <xsl:variable name="identifier">
20
            <xsl:value-of select="stringUtils:substringAfter(//md:citation/md:URI,'doi:')"/>
21
        </xsl:variable>
22
        <xsl:variable name="identifier_datacite">
23
            <xsl:value-of select="oai:record/oai:header/dri:objIdentifier"/>
24
        </xsl:variable>
25
        <publications>
26
            <xsl:for-each select="//md:citation/md:supplementTo">
27
                <xsl:variable name="pub_identifier">
28
                    <xsl:value-of select="./@id"/>
29
                </xsl:variable>
30
                <xsl:choose>
31
                    <xsl:when test="string-length($pub_identifier)">
32
                        <xsl:call-template name="GeneratePublication">
33
                            <xsl:with-param name="pub_identifier" select="$pub_identifier"/>
34
                        </xsl:call-template>
35
                    </xsl:when>
36
                </xsl:choose>
37
            </xsl:for-each>
38
        </publications>
39
    </xsl:template>
40
    <xsl:template name="GeneratePublication">
41
        <xsl:param name="pub_identifier"/>
42
        <publication>
43
            <oai:record>
44
                <oai:header>
45
                    <dri:objIdentifier>
46
                        <xsl:value-of
47
                                select="concat($namespacePrefix,'::', dnet:md5($pub_identifier))"/>
48
                    </dri:objIdentifier>
49
                    <dri:recordIdentifier>
50
                        <xsl:value-of select="$pub_identifier"/>
51
                    </dri:recordIdentifier>
52
                    <dri:dateOfCollection>
53
                        <xsl:value-of select="datetime:dateTime()"/>
54
                    </dri:dateOfCollection>
55
                    <dri:repositoryId>
56
                        <xsl:value-of select="$dataprovider_id"/>
57
                    </dri:repositoryId>
58
                    <oaf:datasourceprefix>
59
                        <xsl:value-of select="$namespacePrefix"/>
60
                    </oaf:datasourceprefix>
61
                </oai:header>
62
                <oai:metadata>
63
                    <dc:identifier>
64
                        <xsl:value-of select="$pub_identifier"/>
65
                    </dc:identifier>
66
                    <xsl:variable name="publicationDOI">
67
                        <xsl:value-of select="./md:URI" />
68
                    </xsl:variable>
69
                    <xsl:choose>
70
                        <xsl:when test="string-length($publicationDOI) &gt; 0">
71
                        <dc:identifier>
72
                            <xsl:value-of select="$publicationDOI" />
73
                        </dc:identifier>
74
                        </xsl:when>
75
                    </xsl:choose>
76
                    
77
                    <dc:title>
78
                        <xsl:value-of select=".//md:title"/>
79
                    </dc:title>
80
                    <xsl:for-each select=".//md:author">
81
                        <dc:creator>
82
                            <xsl:value-of select="concat(./md:lastName,' ', md:firstName)"/>
83
                        </dc:creator>
84
                    </xsl:for-each>
85
                    <dc:source>
86
                        <xsl:value-of select="./md:source"/>
87
                    </dc:source>
88
                    <dr:CobjCategory>0000</dr:CobjCategory>
89
                    <dc:language>und</dc:language>
90
                    <oaf:journal>
91
                        <xsl:value-of select="./md:source"/>
92
                    </oaf:journal>
93
                    <oaf:accessrights>UNKNOWN</oaf:accessrights>
94
                    <xsl:variable name="projectId">
95
                        <xsl:value-of select="normalize-space(//*[local-name() ='projectid'])"/>
96
                    </xsl:variable>
97
                    <xsl:choose>
98
                        <xsl:when test="string-length($projectId) &gt; 0">
99
                            <oaf:projectid>
100
                                <xsl:value-of
101
                                        select="concat('corda_______::', stringUtils:substringAfterLast($projectId, '/'))"/>
102
                            </oaf:projectid>
103
                        </xsl:when>
104
                    </xsl:choose>
105
                    <oaf:hostedBy
106
                            id="openaire____::1256f046-bf1f-4afc-8b47-d0b147148b18"
107
                            name="Unknown Repository"/>
108
                    <oaf:collectedFrom>
109
                        <xsl:attribute name="id">
110
                            <xsl:value-of select="$parentDatasourceId"/>
111
                        </xsl:attribute>
112
                        <xsl:attribute name="name">
113
                            <xsl:value-of select="$dataprovider_name"/>
114
                        </xsl:attribute>
115
                    </oaf:collectedFrom>
116
                    <oaf:about>
117
                        <oaf:datainfo>
118
                            <oaf:inferred>false</oaf:inferred>
119
                            <oaf:deletedbyinference>false</oaf:deletedbyinference>
120
                            <oaf:trust>0.9</oaf:trust>
121
                            <oaf:inferenceprovenance/>
122
                            <oaf:provenanceaction classid="sysimport:crosswalk:datasetarchive"
123
                                                  classname="sysimport:crosswalk:datasetarchive"
124
                                                  schemeid="dnet:provenanceActions"
125
                                                  schemename="dnet:provenanceActions"/>
126
                        </oaf:datainfo>
127
                    </oaf:about>
128
                </oai:metadata>
129
            </oai:record>
130
        </publication>
131
    </xsl:template>
132
</xsl:stylesheet>
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-1.2.3/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/repo/indexNative.wf.st
1
 <NODE name="SET_INFO" isStart="true" type="SetProviderInfo">
2
	<DESCRIPTION>Set information about current provider</DESCRIPTION>
3
	<PARAMETERS>
4
		<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM>
5
		<PARAM required="true" type="string" name="providerName" managedBy="system">$params.("dataprovider:name")$</PARAM>
6
		<PARAM required="true" type="string" name="api" managedBy="system">$params.("dataprovider:interface")$</PARAM>
7
	</PARAMETERS>
8
	<ARCS>
9
		<ARC to="fetchOriginals"/>
10
	</ARCS>
11
</NODE>
12

  
13
<NODE name="fetchOriginals" type="FetchMDStoreRecords">
14
	<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
15
	<PARAMETERS>
16
		<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("harv_id")$</PARAM>
17
		<PARAM required="true" type="string" name="mdFormat" managedBy="system">$params.("harv_format")$</PARAM>
18
		<PARAM required="true" type="string" name="eprParam" managedBy="system">orig_epr</PARAM>
19
	</PARAMETERS>
20
	<ARCS>
21
		<ARC to="indexRecords"/>
22
	</ARCS>
23
</NODE>
24

  
25
<NODE name="indexRecords"  type = "UpdateIndex">	
26
	<DESCRIPTION>Index records</DESCRIPTION>
27
	<PARAMETERS>
28
		<PARAM required="true" type="string" name="eprParam" managedBy="system">orig_epr</PARAM>
29
		<PARAM required="true" type="string" name="indexId" managedBy="system">$params.("index_id")$</PARAM>
30
		<PARAM required="true" type="string" name="format" managedBy="system">$params.("index_format")$</PARAM>
31
		<PARAM required="true" type="string" name="layout" managedBy="system">$params.("index_layout")$</PARAM>
32
		<PARAM required="true" type="string" name="feedingType" managedBy="system">REFRESH</PARAM>
33
	</PARAMETERS>
34
	<ARCS>
35
		<ARC to="success"/>
36
	</ARCS>
37
</NODE>
38
 
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-1.2.3/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/aggrDatarepoOaiSets/collection.wf.st
1
<NODE name="SET_INFO" isStart="true" type="SetProviderInfo">
2
	<DESCRIPTION>Set information about current provider</DESCRIPTION>
3
	<PARAMETERS>
4
		<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM>
5
		<PARAM required="true" type="string" name="providerName" managedBy="system">$params.("dataprovider:name")$</PARAM>
6
		<PARAM required="true" type="string" name="api" managedBy="system">$params.("dataprovider:interface")$</PARAM>
7
	</PARAMETERS>
8
	<ARCS>
9
		<ARC to="COLLECT"/>
10
	</ARCS>
11
</NODE>
12

  
13
<NODE name="COLLECT" type="CollectRecords">
14
	<DESCRIPTION>Start Harvesting</DESCRIPTION>
15
	<PARAMETERS>
16
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
17
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
18
		<PARAM required="true" type="string" name="eprParam" managedBy="system">collected_epr</PARAM>
19
	</PARAMETERS>
20
	<ARCS>
21
		<ARC to="MD_BUILDER"/>
22
	</ARCS>
23
</NODE>
24

  
25
<NODE name="MD_BUILDER" type="MdBuilder">
26
	<DESCRIPTION>Prepare mdstore records</DESCRIPTION>
27
	<PARAMETERS>
28
		<PARAM required="true" type="string" name="inputEprParam" managedBy="system">collected_epr</PARAM>
29
		<PARAM required="true" type="string" name="outputEprParam" managedBy="system">store_epr</PARAM>
30
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
31
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
32
	</PARAMETERS>
33
	<ARCS>
34
		<ARC to="STORE"/>
35
	</ARCS>
36
</NODE>
37

  
38
<NODE name="STORE" type="StoreMDStoreRecords">
39
	<DESCRIPTION>Store mdtore records</DESCRIPTION>
40
	<PARAMETERS>
41
		<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("orig_id")$</PARAM>
42
		<PARAM required="true" type="string" name="storingType" managedBy="system">REFRESH</PARAM>
43
		<PARAM required="true" type="string" name="eprParam" managedBy="system">store_epr</PARAM>
44
	</PARAMETERS>
45
	<ARCS>
46
		<ARC to="UPDATE_INFO"/>
47
	</ARCS>
48
</NODE>
49

  
50
<NODE name="UPDATE_INFO" type="MDStoreToApiExtraField">
51
	<DESCRIPTION>Update datasouce API extra fields</DESCRIPTION>
52
	<PARAMETERS>
53
		<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("orig_id")$</PARAM>
54
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
55
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
56
		<PARAM required="true" type="string" name="extraFieldForTotal" managedBy="system">last_collection_total</PARAM>
57
		<PARAM required="true" type="string" name="extraFieldForDate" managedBy="system">last_collection_date</PARAM>
58
		<PARAM required="true" type="string" name="extraFieldForMdId" managedBy="system">last_collection_mdId</PARAM>
59
	</PARAMETERS>
60
	<ARCS>
61
		<ARC to="success"/>
62
	</ARCS>
63
</NODE>
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-1.2.3/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt-datacite/datacite_sets_2_db.xslt
1
<?xml version="1.0" encoding="UTF-8"?>
2
<xsl:stylesheet version="1.0"
3
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dc="http://purl.org/dc/elements/1.1/"
4
	xmlns:dr="http://www.driver-repository.eu/namespace/dr" xmlns:dri="http://www.driver-repository.eu/namespace/dri"
5
	xmlns:oaa="http://namespace.openaire.eu/oaa" xmlns:oaf="http://namespace.openaire.eu/oaf"
6
	xmlns:fn="http://www.w3.org/2005/xpath-functions"
7
	xmlns:dnet="eu.dnetlib.data.transform.xml.DNetMdStoreToHbaseXsltFunctions"
8
	xmlns:clean="eu.dnetlib.msro.openaireplus.utils.CleaningXsltFunctions">
9
	
10
	<xsl:param name="parentDatasourceId" />
11
	<xsl:param name="namespacePrefix" />
12

  
13
	<xsl:template match="/">
14

  
15
		<record xmlns:dr="http://www.driver-repository.eu/namespace/dr"
16
			xmlns:dri="http://www.driver-repository.eu/namespace/dri" xmlns:dc="http://purl.org/dc/elements/1.1/"
17
			xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:oaf="http://namespace.openaire.eu/oaf"
18
			xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/">
19

  
20
			<xsl:copy-of select=".//*[local-name()='header']" />
21

  
22
			<metadata>
23
				<ROWS>
24
					<xsl:variable name="setSpec" select=".//*[local-name()='setSpec']" />
25
					<xsl:variable name="setName" select=".//*[local-name()='setName']" />
26
					
27
					<xsl:variable name="id" select="concat($namespacePrefix,'::', $setSpec)" />
28

  
29
					<ROW table="datacite_temp_sets">
30
						<FIELD name="_dnet_resource_identifier_">
31
							<xsl:value-of select="$id" />
32
						</FIELD>
33
						<FIELD name="id">
34
							<xsl:value-of select="$id" />
35
						</FIELD>
36
						<FIELD name="setname">
37
							<xsl:value-of select="$setName" />
38
						</FIELD>
39
						<FIELD name="setspec">
40
							<xsl:value-of select="$setSpec" />
41
						</FIELD>
42
						<FIELD name="setname_cleaned">
43
							<xsl:value-of select="clean:clean($setName)" />
44
						</FIELD>
45
						<FIELD name="oa_source_id">
46
							<xsl:value-of select="$parentDatasourceId" />
47
						</FIELD>
48
					</ROW>
49
				</ROWS>
50
			</metadata>
51
		</record>
52

  
53
	</xsl:template>
54
</xsl:stylesheet>
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-1.2.3/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/wos/repoBye.wf.st
1
<NODE name="SET_INFO" isStart="true" type="SetProviderInfo">
2
	<DESCRIPTION>Set information about current provider</DESCRIPTION>
3
	<PARAMETERS>
4
		<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM>
5
		<PARAM required="true" type="string" name="providerName" managedBy="system">$params.("dataprovider:name")$</PARAM>
6
		<PARAM required="true" type="string" name="api" managedBy="system">$params.("dataprovider:interface")$</PARAM>
7
	</PARAMETERS>
8
	<ARCS>
9
		<ARC to="DeleteMetaWorkflow"/>
10
	</ARCS>
11
</NODE>
12

  
13
<NODE name="DeleteMetaWorkflow" type="DeleteOpenaireMetaWf">
14
	<DESCRIPTION>Delete the MetaWorkflow</DESCRIPTION>
15
	<PARAMETERS>
16
		<PARAM required="true" type="string" name="metaWfId" managedBy="system">$params.("META_WORKFLOW_ID")$</PARAM>
17
	</PARAMETERS>
18
	<ARCS>
19
		<ARC to="DeleteMDStoreGMF"/>
20
	</ARCS>
21
</NODE>
22

  
23
<NODE name="DeleteMDStoreGMF" type="DeleteMDStore">
24
	<DESCRIPTION>Delete the GMF mdstore</DESCRIPTION>
25
	<PARAMETERS>
26
		<PARAM required="true" type="string" name="mdstoreId" managedBy="system" category="MDSTORE_ID">$params.("harv_id")$</PARAM>
27
	</PARAMETERS>
28
	<ARCS>
29
		<ARC to="DeleteMDStoreOAF"/>
30
	</ARCS>
31
</NODE>
32

  
33
<NODE name="DeleteMDStoreOAF" type="DeleteMDStore">
34
	<DESCRIPTION>Delete the OAF mdstore</DESCRIPTION>
35
	<PARAMETERS>
36
		<PARAM required="true" type="string" name="mdstoreId" managedBy="system" category="MDSTORE_ID">$params.("tran_id")$</PARAM>
37
	</PARAMETERS>
38
	<ARCS>
39
		<ARC to="RemoveApiExtraFields"/>
40
	</ARCS>
41
</NODE>
42

  
43
<NODE name="RemoveApiExtraFields" type="RemoveApiExtraFields">
44
	<DESCRIPTION>Reset the extrafields of the api</DESCRIPTION>
45
	<PARAMETERS>
46
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
47
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
48
		<PARAM required="true" type="string" name="fields" managedBy="system">last_collection_total, last_collection_date, last_collection_mdId, last_aggregation_total, last_aggregation_date, last_aggregation_mdId</PARAM>
49
	</PARAMETERS>
50
	<ARCS>
51
		<ARC to="success"/>
52
	</ARCS>
53
</NODE>
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-1.2.3/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/wos/feedObjectStore.st
1
 <NODE name="SET_INFO" isStart="true" type="SetProviderInfo">
2
	<DESCRIPTION>Set information about current provider</DESCRIPTION>
3
	<PARAMETERS>
4
		<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM>
5
		<PARAM required="true" type="string" name="providerName" managedBy="system">$params.("dataprovider:name")$</PARAM>
6
		<PARAM required="true" type="string" name="api" managedBy="system">$params.("dataprovider:interface")$</PARAM>
7
	</PARAMETERS>
8
	<ARCS>
9
		<ARC to="fetchOriginals"/>		
10
	</ARCS>
11
</NODE>
12

  
13
<NODE name="fetchOriginals" type="FetchMDStoreRecords">
14
	<DESCRIPTION>Fetch records from MDStore</DESCRIPTION>
15
	<PARAMETERS>
16
		<PARAM required="true" type="string" name="mdId" managedBy="user"></PARAM>
17
		<PARAM required="true" type="string" name="mdFormat" managedBy="system">OAF</PARAM>
18
		<PARAM required="true" type="string" name="eprParam" managedBy="system">orig_epr</PARAM>
19
	</PARAMETERS>
20
	<ARCS>
21
		<ARC to="STOREOBJECT"/>
22
	</ARCS>
23
</NODE>
24

  
25
<NODE name="STOREOBJECT" type="DownloadIntoObjectStore">
26
	<DESCRIPTION>Store files into objectStore</DESCRIPTION>
27
	<PARAMETERS>
28
		<PARAM required="true" type="string" name="idXpath" managedBy="user">//*[local-name()='objIdentifier']</PARAM>		
29
		<PARAM required="true" type="string" name="objectStoreId" managedBy="system" category="OBJECTSTORE_ID">$params.("objs_id")$</PARAM>		
30
		<PARAM required="true" type="string" name="eprParam" managedBy="system">orig_epr</PARAM>
31
		<PARAM required="false" type="string" name="objectIsInsideEpr" managedBy="system">true</PARAM>
32
		<PARAM required="true" type="string" name="contentDescription" managedBy="system">$params.("objectStoreContentDescription")$</PARAM>
33
		
34
	</PARAMETERS>
35
	<ARCS>
36
		<ARC to="success"/>
37
	</ARCS>
38
</NODE>
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-1.2.3/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt-datacite/DatasetsFromPangaeaIngestion.xsl
1
<?xml version="1.0" encoding="UTF-8"?>
2
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3
    xmlns:dc="http://purl.org/dc/elements/1.1/"
4
    xmlns:dr="http://www.driver-repository.eu/namespace/dr"
5
    xmlns:oai="http://www.openarchives.org/OAI/2.0/"
6
    xmlns:datetime="http://exslt.org/dates-and-times"
7
    xmlns:dri="http://www.driver-repository.eu/namespace/dri"
8
    xmlns:md="http://www.pangaea.de/MetaData" xmlns:oaa="http://namespace.openaire.eu/oaa"
9
    xmlns:oaf="http://namespace.openaire.eu/oaf" xmlns:fn="http://www.w3.org/2005/xpath-functions"
10
    xmlns:dnet="eu.dnetlib.data.transform.xml.DNetMdStoreToHbaseXsltFunctions"
11
    xmlns:stringUtils="org.apache.commons.lang.StringUtils"
12
    exclude-result-prefixes="xsl dc dnet oaa fn stringUtils datetime">
13

  
14
    <xsl:param name="namespacePrefix"/>
15
    <xsl:param name="dataSourceId"/>
16
    <xsl:param name="dataprovider_id"/>
17

  
18
    <xsl:template match="/">
19
        <xsl:variable name="identifier">
20
            <xsl:value-of
21
                select="stringUtils:substringAfter(/*[local-name()='datasetsRecord']/*[local-name()='metadata']/*[local-name()='MetaData']/*[local-name()='citation']/*[local-name()='URI'],'doi:')"
22
            />
23
        </xsl:variable>
24
        <oai:record>
25
            <oai:header>
26
                <dri:objIdentifier>
27
                    <xsl:value-of select="concat($namespacePrefix,'::', dnet:md5($identifier))"/>
28
                </dri:objIdentifier>
29
                <dri:recordIdentifier>
30
                    <xsl:value-of select="$identifier"/>
31
                </dri:recordIdentifier>
32
                <dri:dateOfCollection>
33
                    <xsl:value-of select="datetime:dateTime()"/>
34
                </dri:dateOfCollection>
35
                <dri:repositoryId>
36
                    <xsl:value-of select="$dataSourceId"/>
37
                </dri:repositoryId>
38
                <oaf:datasourceprefix>
39
                    <xsl:value-of select="$namespacePrefix"/>
40
                </oaf:datasourceprefix>
41
                <dri:repositoryId>
42
                	<xsl:value-of select="$dataprovider_id"/>
43
                </dri:repositoryId>                
44
            </oai:header>
45
            <oai:metadata>
46
                <xsl:copy-of select="."/>
47
            </oai:metadata>
48
        </oai:record>
49

  
50
    </xsl:template>
51
</xsl:stylesheet>
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-1.2.3/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/claim/repoBye.wf.st
1
<NODE name="SET_INFO" isStart="true" type="SetProviderInfo">
2
	<DESCRIPTION>Set information about current provider</DESCRIPTION>
3
	<PARAMETERS>
4
		<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM>
5
		<PARAM required="true" type="string" name="providerName" managedBy="system">$params.("dataprovider:name")$</PARAM>
6
		<PARAM required="true" type="string" name="api" managedBy="system">$params.("dataprovider:interface")$</PARAM>
7
	</PARAMETERS>
8
	<ARCS>
9
		<ARC to="DeleteMetaWorkflow"/>
10
	</ARCS>
11
</NODE>
12

  
13
<NODE name="DeleteMetaWorkflow" type="DeleteOpenaireMetaWf">
14
	<DESCRIPTION>Delete the MetaWorkflow</DESCRIPTION>
15
	<PARAMETERS>
16
		<PARAM required="true" type="string" name="metaWfId" managedBy="system">$params.("META_WORKFLOW_ID")$</PARAM>
17
	</PARAMETERS>
18
	<ARCS>
19
		<ARC to="DeleteMDStoreNative"/>
20
	</ARCS>
21
</NODE>
22

  
23
<NODE name="DeleteMDStoreNative" type="DeleteMDStore">
24
	<DESCRIPTION>Delete the native mdstore</DESCRIPTION>
25
	<PARAMETERS>
26
		<PARAM required="true" type="string" name="mdstoreId" managedBy="system" category="MDSTORE_ID">$params.("harv_id")$</PARAM>
27
	</PARAMETERS>
28
	<ARCS>
29
		<ARC to="DeleteMDStoreCleaned"/>
30
	</ARCS>
31
</NODE>
32

  
33
<NODE name="DeleteMDStoreCleaned" type="DeleteMDStore">
34
	<DESCRIPTION>Delete the cleaned mdstore</DESCRIPTION>
35
	<PARAMETERS>
36
		<PARAM required="true" type="string" name="mdstoreId" managedBy="system" category="MDSTORE_ID">$params.("tran_id")$</PARAM>
37
	</PARAMETERS>
38
	<ARCS>
39
		<ARC to="RemoveApiExtraFields"/>
40
	</ARCS>
41
</NODE>
42

  
43
<NODE name="RemoveApiExtraFields" type="RemoveApiExtraFields">
44
	<DESCRIPTION>Reset the extrafields of the api</DESCRIPTION>
45
	<PARAMETERS>
46
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
47
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
48
		<PARAM required="true" type="string" name="fields" managedBy="system">last_collection_total, last_collection_date, last_collection_mdId, last_aggregation_total, last_aggregation_date, last_aggregation_mdId</PARAM>
49
	</PARAMETERS>
50
	<ARCS>
51
		<ARC to="success"/>
52
	</ARCS>
53
</NODE>
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-1.2.3/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg/repoBye.wf.st
1
<NODE name="SET_INFO" isStart="true" type="SetProviderInfo">
2
	<DESCRIPTION>Set information about current provider</DESCRIPTION>
3
	<PARAMETERS>
4
		<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM>
5
		<PARAM required="true" type="string" name="providerName" managedBy="system">$params.("dataprovider:name")$</PARAM>
6
		<PARAM required="true" type="string" name="api" managedBy="system">$params.("dataprovider:interface")$</PARAM>
7
	</PARAMETERS>
8
	<ARCS>
9
		<ARC to="DeleteMetaWorkflow"/>
10
	</ARCS>
11
</NODE>
12

  
13
<NODE name="DeleteMetaWorkflow" type="DeleteOpenaireMetaWf">
14
	<DESCRIPTION>Delete the MetaWorkflow</DESCRIPTION>
15
	<PARAMETERS>
16
		<PARAM required="true" type="string" name="metaWfId" managedBy="system">$params.("META_WORKFLOW_ID")$</PARAM>
17
	</PARAMETERS>
18
	<ARCS>
19
		<ARC to="DeleteMDStoreGMF"/>
20
	</ARCS>
21
</NODE>
22

  
23
<NODE name="DeleteMDStoreGMF" type="DeleteMDStore">
24
	<DESCRIPTION>Delete the GMF mdstore</DESCRIPTION>
25
	<PARAMETERS>
26
		<PARAM required="true" type="string" name="mdstoreId" managedBy="system" category="MDSTORE_ID">$params.("orig_id")$</PARAM>
27
	</PARAMETERS>
28
	<ARCS>
29
		<ARC to="DeleteMDStoreDBMF"/>
30
	</ARCS>
31
</NODE>
32

  
33
<NODE name="DeleteMDStoreDBMF" type="DeleteMDStore">
34
	<DESCRIPTION>Delete the DBMF mdstore</DESCRIPTION>
35
	<PARAMETERS>
36
		<PARAM required="true" type="string" name="mdstoreId" managedBy="system" category="MDSTORE_ID">$params.("row_id")$</PARAM>
37
	</PARAMETERS>
38
	<ARCS>
39
		<ARC to="RemoveApiExtraFields"/>
40
	</ARCS>
41
</NODE>
42

  
43
<NODE name="RemoveApiExtraFields" type="RemoveApiExtraFields">
44
	<DESCRIPTION>Reset the extrafields of the api</DESCRIPTION>
45
	<PARAMETERS>
46
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
47
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
48
		<PARAM required="true" type="string" name="fields" managedBy="system">last_collection_total, last_collection_date, last_collection_mdId, last_aggregation_total, last_aggregation_date, last_aggregation_mdId</PARAM>
49
	</PARAMETERS>
50
	<ARCS>
51
		<ARC to="success"/>
52
	</ARCS>
53
</NODE>
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-1.2.3/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt-datacite/datacite_datarepos_2_db.xslt
1
<?xml version="1.0" encoding="UTF-8"?>
2
<xsl:stylesheet version="1.0"
3
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dc="http://purl.org/dc/elements/1.1/"
4
	xmlns:dr="http://www.driver-repository.eu/namespace/dr" xmlns:dri="http://www.driver-repository.eu/namespace/dri"
5
	xmlns:oaa="http://namespace.openaire.eu/oaa" xmlns:oaf="http://namespace.openaire.eu/oaf"
6
	xmlns:fn="http://www.w3.org/2005/xpath-functions"
7
	xmlns:clean="eu.dnetlib.msro.openaireplus.utils.CleaningXsltFunctions">
8

  
9
	<xsl:template match="/">
10
		<ROWS>
11
			<xsl:variable name="id" select="//FIELD[@name='id']" />
12
			<xsl:variable name="name" select="//FIELD[@name='name']" />
13
			<xsl:variable name="class" select="//FIELD[@name='class']" />
14
			
15
			<ROW table="datacite_temp_datarepos">
16
				<FIELD name="_dnet_resource_identifier_">
17
					<xsl:value-of select="$id" />
18
				</FIELD>
19
				<FIELD name="id">
20
					<xsl:value-of select="$id" />
21
				</FIELD>
22
				<FIELD name="name">
23
					<xsl:value-of select="$name" />
24
				</FIELD>
25
				<FIELD name="name_cleaned">
26
					<xsl:value-of select="clean:clean($name)" />
27
				</FIELD>
28
				<FIELD name="class">
29
					<xsl:value-of select="$class" />
30
				</FIELD>
31
			</ROW>
32
		</ROWS>
33
	</xsl:template>
34
</xsl:stylesheet>
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-1.2.3/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg/collection.wf.st
1
<NODE name="SET_INFO" isStart="true" type="SetProviderInfo">
2
	<DESCRIPTION>Set information about current provider</DESCRIPTION>
3
	<PARAMETERS>
4
		<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM>
5
		<PARAM required="true" type="string" name="providerName" managedBy="system">$params.("dataprovider:name")$</PARAM>
6
		<PARAM required="true" type="string" name="api" managedBy="system">$params.("dataprovider:interface")$</PARAM>
7
	</PARAMETERS>
8
	<ARCS>
9
		<ARC to="COLLECT"/>
10
	</ARCS>
11
</NODE>
12

  
13
<NODE name="COLLECT" type="CollectRecords">
14
	<DESCRIPTION>Start Harvesting</DESCRIPTION>
15
	<PARAMETERS>
16
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
17
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
18
		<PARAM required="true" type="string" name="eprParam" managedBy="system">collected_epr</PARAM>
19
	</PARAMETERS>
20
	<ARCS>
21
		<ARC to="MD_BUILDER"/>
22
	</ARCS>
23
</NODE>
24

  
25
<NODE name="MD_BUILDER" type="MdBuilder">
26
	<DESCRIPTION>Prepare mdstore records</DESCRIPTION>
27
	<PARAMETERS>
28
		<PARAM required="true" type="string" name="inputEprParam" managedBy="system">collected_epr</PARAM>
29
		<PARAM required="true" type="string" name="outputEprParam" managedBy="system">store_epr</PARAM>
30
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
31
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
32
	</PARAMETERS>
33
	<ARCS>
34
		<ARC to="STORE"/>
35
	</ARCS>
36
</NODE>
37

  
38
<NODE name="STORE" type="StoreMDStoreRecords">
39
	<DESCRIPTION>Store mdtore records</DESCRIPTION>
40
	<PARAMETERS>
41
		<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("orig_id")$</PARAM>
42
		<PARAM required="true" type="string" name="storingType" managedBy="user" function="validValues(['REFRESH','INCREMENTAL'])">REFRESH</PARAM>
43
		<PARAM required="true" type="string" name="eprParam" managedBy="system">store_epr</PARAM>
44
	</PARAMETERS>
45
	<ARCS>
46
		<ARC to="UPDATE_INFO"/>
47
	</ARCS>
48
</NODE>
49

  
50
<NODE name="UPDATE_INFO" type="MDStoreToApiExtraField">
51
	<DESCRIPTION>Update datasouce API extra fields</DESCRIPTION>
52
	<PARAMETERS>
53
		<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("orig_id")$</PARAM>
54
		<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM>
55
		<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM>
56
		<PARAM required="true" type="string" name="extraFieldForTotal" managedBy="system">last_collection_total</PARAM>
57
		<PARAM required="true" type="string" name="extraFieldForDate" managedBy="system">last_collection_date</PARAM>
58
		<PARAM required="true" type="string" name="extraFieldForMdId" managedBy="system">last_collection_mdId</PARAM>
59
	</PARAMETERS>
60
	<ARCS>
61
		<ARC to="success"/>
62
	</ARCS>
63
</NODE>
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-1.2.3/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/hbase/prepareQueryDatasources.sql
1
CREATE OR REPLACE VIEW temp_compliances AS 
2
	SELECT 
3
		a.id                 as api, 
4
		a.compatibilityclass as compliance
5
	FROM 
6
		api a
7
	WHERE
8
		a.id NOT IN (SELECT api from apicollections WHERE param = 'overriding_compliance')
9
	UNION SELECT
10
		a.id as api, 
11
		ac.original as compliance
12
	FROM
13
		api a LEFT OUTER JOIN apicollections ac ON (ac.api = a.id) 
14
	WHERE
15
		ac.param = 'overriding_compliance';
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-1.2.3/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt-datacite/transform-Datacite.xslt
1
<?xml version="1.0" encoding="UTF-8"?>
2
<xsl:stylesheet version="1.0"
3
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
	xmlns:datetime="http://exslt.org/dates-and-times" xmlns:exslt="http://exslt.org/common"
5
	xmlns:oai="http://www.openarchives.org/OAI/2.0/" xmlns:dc="http://purl.org/dc/elements/1.1/"
6
	xmlns:dri="http://www.driver-repository.eu/namespace/dri" xmlns:dr="http://www.driver-repository.eu/namespace/dr"
7
	xmlns:oaf="http://namespace.openaire.eu/oaf" exclude-result-prefixes="xsl datetime exslt xsi" >
8
    
9
    <!-- <xsl:param name="
10
	repositoryCountry " />
11
-->
12
<xsl:param name="repositoryName" />
13
<!-- <xsl:param name="repositoryLink" /> -->
14
<xsl:param name="dataSourceId" />
15

  
16
<xsl:template match="/">
17
	<xsl:variable name="datasourcePrefix"
18
		select="normalize-space(//oaf:datasourceprefix)" />
19
	<xsl:variable name="mid"
20
		select="normalize-space(//*[local-name()='identifier' and ./@identifierType='DOI'])" />
21
	<xsl:call-template name="validRecord" />
22
</xsl:template>
23

  
24

  
25
<xsl:template name="validRecord">
26
	<xsl:param name="relatedId" />
27

  
28
	<record>
29
		<xsl:copy-of select="//header" />
30

  
31
		<metadata>
32
			<xsl:copy-of
33
				select="//*[local-name() = 'metadata']//*[local-name() = 'resource']" />
34

  
35
			<oaf:collectedDatasourceid>
36
				<xsl:value-of select="$dataSourceId" />
37
			</oaf:collectedDatasourceid>
38
			<oaf:collectedFrom name="{$repositoryName}" id="{$dataSourceId}" />
39
			<oaf:hostedBy name="{$repositoryName}" id="{$dataSourceId}" />
40
			<xsl:if test="$relatedId">
41
				<xsl:call-template name="processIds">
42
					<xsl:with-param name="s" select="$relatedId" />
43
				</xsl:call-template>
44
				<!-- <oaf:relatedId> <xsl:value-of select="$relatedId"></xsl:value-of></oaf:relatedId> -->
45
			</xsl:if>
46
			<xsl:for-each
47
				select="//*[local-name() = 'contributor' and ./@contributorType='Funder']/*[local-name() = 'nameIdentifier' and starts-with(text(), 'info:eu-repo/grantAgreement/EC/FP7/')]">
48
				<oaf:projectid>
49
					<xsl:value-of
50
						select="concat('corda_______::', substring-after(text(),'info:eu-repo/grantAgreement/EC/FP7/'))" />
51
				</oaf:projectid>
52
			</xsl:for-each>
53
			<xsl:for-each
54
				select="//*[local-name() = 'contributor' and ./@contributorType='Funder']/*[local-name() = 'nameIdentifier' and starts-with(text(), 'info:eu-repo/grantAgreement/WT/WT/')]">
55
				<oaf:projectid>
56
					<xsl:value-of
57
						select="concat('welcometrust::', substring-after(text(),'info:eu-repo/grantAgreement/WT/WT/'))" />
58
				</oaf:projectid>
59
			</xsl:for-each>
60
		</metadata>
61
	</record>
62
</xsl:template>
63

  
64
<xsl:template name="processIds">
65
	<xsl:param name="s" />
66

  
67
	<xsl:choose>
68
		<xsl:when test="contains($s, ',')">
69
			<oaf:relatedId>
70
				<xsl:value-of select="normalize-space(substring-before($s, ','))" />
71
			</oaf:relatedId>
72
			<xsl:call-template name="processIds">
73
				<xsl:with-param name="s" select="substring-after($s, ',')" />
74
			</xsl:call-template>
75
		</xsl:when>
76
		<xsl:otherwise>
77
			<oaf:relatedId>
78
				<xsl:value-of select="normalize-space($s)" />
79
			</oaf:relatedId>
80
		</xsl:otherwise>
81
	</xsl:choose>
82

  
83
</xsl:template>
84

  
85
</xsl:stylesheet>    
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-1.2.3/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/applicationContext-msro-openaire-nodes.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<beans xmlns="http://www.springframework.org/schema/beans"
3
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
4
	xmlns:p="http://www.springframework.org/schema/p" xmlns:util="http://www.springframework.org/schema/util"
5
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
6
		http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
7
		http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">
8

  
9

  
10
	<bean id="wfNodePrepareCopyTable" class="eu.dnetlib.msro.openaireplus.workflows.nodes.hbase.PrepareCopyTableJobNode"
11
		scope="prototype" />
12

  
13
	<bean id="wfNodeReuseHdfsRecords" class="eu.dnetlib.msro.openaireplus.workflows.nodes.ReuseHdfsRecordsJobNode"
14
		scope="prototype" />
15

  
16
	<bean id="wfNodeDecapsuleClaims" class="eu.dnetlib.msro.openaireplus.workflows.nodes.claims.DecapsuleClaimsJobNode"
17
		scope="prototype" />
18

  
19
	<bean id="wfNodeOpenaireMdBuilder" class="eu.dnetlib.msro.openaireplus.workflows.nodes.OpenaireMdBuilderJobNode"
20
		p:xsltMappedResultSetFactory-ref="xsltResultSetFactory"	
21
		p:mdBuilderTemplateXslt-ref="openaireMdBuilderTemplateXslt"
22
		scope="prototype"/>
23
	
24
	<bean id="openaireMdBuilderTemplateXslt"
25
		class="eu.dnetlib.springutils.stringtemplate.StringTemplateFactory"
26
		p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt/openaireMdBuilder.xslt.st"
27
		scope="prototype" />
28
	
29
	<bean id="wfNodeUpdateOpenaireMetaWfStatus"
30
		class="eu.dnetlib.msro.openaireplus.workflows.nodes.repohi.UpdateOpenaireMetaWfStatusJobNode"
31
		p:datasourceManagerServiceLocator-ref="openaireDatasourceManagerServiceLocator" />
32

  
33
	<bean id="wfNodeDeleteOpenaireMetaWf"
34
		class="eu.dnetlib.msro.openaireplus.workflows.nodes.repobye.DeleteOpenaireMetaWfJobNode"
35
		p:datasourceManagerServiceLocator-ref="openaireDatasourceManagerServiceLocator" />
36

  
37
	<bean id="wfNodeFindComplianceRepositories"
38
		class="eu.dnetlib.msro.openaireplus.workflows.nodes.FindComplianceRepositoriesJobNode"
39
		scope="prototype" p:dbServiceLocator-ref="dbServiceLocator"
40
		p:xsltMappedResultSetFactory-ref="xsltResultSetFactory" />
41

  
42
	<bean id="wfNodeFindExistingRepositories"
43
		class="eu.dnetlib.msro.openaireplus.workflows.nodes.FindExistingRepositoriesJobNode"
44
		scope="prototype" />
45

  
46
	<bean id="wfNodeUpdateRepositoryProfiles"
47
		class="eu.dnetlib.msro.openaireplus.workflows.nodes.UpdateRepositoryProfilesJobNode"
48
		scope="prototype" />
49

  
50
	<bean id="wfNodeUpdateOpenaireDb" class="eu.dnetlib.msro.workflows.nodes.db.UpdateDbJobNode"
51
		scope="prototype" p:processCountingResultSetFactory-ref="msroProcessCountingResultSetFactory"
52
		p:db="${dnet.openaire.db.name}" />
53

  
54
	<bean id="wfNodeFindVocabularyEntries"
55
		class="eu.dnetlib.msro.openaireplus.workflows.nodes.FindVocabularyEntriesJobNode"
56
		scope="prototype" p:lookupLocator-ref="lookupLocator"
57
		p:xquery="classpath:/eu/dnetlib/msro/openaireplus/workflows/db/vocabulary_entries.xquery" />
58

  
59
	<bean id="wfNodeStoreHBase"
60
		class="eu.dnetlib.msro.openaireplus.workflows.nodes.hbase.StoreHBaseRecordsJobNode"
61
		scope="prototype" p:processCountingResultSetFactory-ref="msroProcessCountingResultSetFactory" />
62

  
63
	<bean id="wfNodeCheckHBaseTable" class="eu.dnetlib.msro.openaireplus.workflows.nodes.hbase.ExistHBaseTableJobNode"
64
		scope="prototype" />
65

  
66
	<bean id="wfNodeDefineHBaseOpenaireSchema" class="eu.dnetlib.msro.openaireplus.workflows.nodes.hbase.DefineHBaseOpenaireSchemaJobNode"
67
		scope="prototype" />
68
		
69
	<bean id="wfNodeGetHBaseTableDescription" class="eu.dnetlib.msro.openaireplus.workflows.nodes.hbase.GetHBaseTableDescriptionJobNode"
70
		scope="prototype" />		
71

  
72
	<bean id="wfNodeDropHBaseTable"
73
		class="eu.dnetlib.msro.openaireplus.workflows.nodes.hbase.DropHBaseTableJobNode"
74
		scope="prototype" />		
75
		
76
	<bean id="wfNodeCreateHBaseTable"
77
		class="eu.dnetlib.msro.openaireplus.workflows.nodes.hbase.CreateHBaseTableJobNode"
78
		scope="prototype" />		
79

  
80
	<bean id="wfNodeSubmitHadoopJob"
81
		class="eu.dnetlib.msro.openaireplus.workflows.nodes.hbase.SubmitHadoopJobNode"
82
		scope="prototype" />
83

  
84
	<bean id="wfNodeImportFiles"
85
		class="eu.dnetlib.msro.openaireplus.workflows.nodes.objectStore.ImportFilesJobNode"
86
		p:processCountingResultSetFactory-ref="msroProcessCountingResultSetFactory"
87
		p:iterableResultSetFactory-ref="iterableResultSetFactory" scope="prototype" />
88

  
89
	<bean id="wfNodeRetreiveInterfaceInfo"
90
		class="eu.dnetlib.msro.openaireplus.workflows.nodes.repohi.RetrieveInterfaceInfoJobNode"
91
		p:lookupLocator-ref="lookupLocator" scope="prototype" />
92

  
93
	<bean id="wfNodeObtainOpenaireDataSourceParams"
94
		class="eu.dnetlib.msro.openaireplus.workflows.nodes.ObtainOpenaireDataSourceParamsJobNode"
95
		scope="prototype" />
96

  
97
	<bean id="wfNodePrepareMDStoreImport"
98
		class="eu.dnetlib.msro.openaireplus.workflows.nodes.hbase.PrepareMDStoreImportJobNode"
99
		scope="prototype" />
100

  
101
	<bean id="wfNodeMDStoreBatchExporter"
102
		class="eu.dnetlib.msro.openaireplus.workflows.nodes.hbase.MDStoreBatchExporterJobNode"
103
		scope="prototype" p:mdstoreLocator-ref="msroMDstoreServiceLocator" />
104

  
105
	<bean id="wfNodeStoreHdfsRecords"
106
		class="eu.dnetlib.msro.openaireplus.workflows.nodes.hbase.StoreHdfsRecordsJobNode"
107
		scope="prototype" p:processCountingResultSetFactory-ref="msroProcessCountingResultSetFactory" />
108

  
109
	<bean id="wfNodePromoteActions"
110
		class="eu.dnetlib.msro.openaireplus.workflows.nodes.actions.PromoteActionsJobNode"
111
		scope="prototype" />
112

  
113
	<bean id="wfNodeGarbageSets"
114
		class="eu.dnetlib.msro.openaireplus.workflows.nodes.actions.GarbageSetsJobNode"
115
		scope="prototype" />
116

  
117
	<bean id="wfNodeCleanActionSetsProfile"
118
		class="eu.dnetlib.msro.openaireplus.workflows.nodes.actions.CleanActionSetsProfileJobNode"
119
		p:xupdate="${dnet.actionmanager.garbage.sets.xupdate}" scope="prototype" />
120

  
121
	<bean id="wfNodeSetHdfsFile" class="eu.dnetlib.msro.openaireplus.workflows.nodes.SetHdfsFileJobNode"
122
		scope="prototype" />
123

  
124
	<!-- <bean id="wfNodeMDStoreImportJob" -->
125
	<!-- class="eu.dnetlib.msro.openaireplus.workflows.nodes.hbase.HBaseMapReduceJobNode" -->
126
	<!-- scope="prototype" p:hadoopJob-ref="mdStoreHdfsImportJob" -->
127
	<!-- p:targetTable="${hbase.mapred.datatable}" p:hFileOutput="${services.mapreduce.mdrecords.hdsf.hfile.output}" -->
128
	<!-- p:xslt="classpath:/eu/dnetlib/data/transform/dmf_2_hbase.xsl" /> -->
129

  
130
	<bean id="wfNodeFindIndex"
131
		class="eu.dnetlib.msro.openaireplus.workflows.nodes.index.FindIndexJobNode"
132
		scope="prototype" />
133
		
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff