Revision 40960
Added by Alessia Bardi over 8 years ago
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.10/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByProject/transformPublications.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="fetchOriginalsForPublication"/> |
|
10 |
<ARC to="obtainParams" /> |
|
11 |
</ARCS> |
|
12 |
</NODE> |
|
13 |
<NODE name="obtainParams" type="ObtainOpenaireDataSourceParams"> |
|
14 |
<DESCRIPTION>Fetch records from MDStore</DESCRIPTION> |
|
15 |
<PARAMETERS> |
|
16 |
<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM> |
|
17 |
</PARAMETERS> |
|
18 |
<ARCS> |
|
19 |
<ARC to="fetchOriginalsForPublication"/> |
|
20 |
</ARCS> |
|
21 |
</NODE> |
|
22 |
|
|
23 |
|
|
24 |
<NODE name="fetchOriginalsForPublication" type="FetchMDStoreRecords" isJoin="true"> |
|
25 |
<DESCRIPTION>Fetch records from MDStore</DESCRIPTION> |
|
26 |
<PARAMETERS> |
|
27 |
<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("harv_id")$</PARAM> |
|
28 |
<PARAM required="true" type="string" name="mdFormat" managedBy="system">$params.("harv_format")$</PARAM> |
|
29 |
<PARAM required="true" type="string" name="eprParam" managedBy="system">orig_publication_epr</PARAM> |
|
30 |
</PARAMETERS> |
|
31 |
<ARCS> |
|
32 |
<ARC to="transformPublication"/> |
|
33 |
</ARCS> |
|
34 |
</NODE> |
|
35 |
|
|
36 |
<NODE name="transformPublication" type="ApplyXslt"> |
|
37 |
<DESCRIPTION>Transform original records to Publication</DESCRIPTION> |
|
38 |
<PARAMETERS> |
|
39 |
<PARAM required="true" type="string" name="xsltClasspath" managedBy="user" function="listFiles('/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByProject/xsl','xsl')"></PARAM> |
|
40 |
<PARAM required="true" type="string" name="inputEprParam" managedBy="system">orig_publication_epr</PARAM> |
|
41 |
<PARAM required="true" type="string" name="outputEprParam" managedBy="system">packed_publication_epr</PARAM> |
|
42 |
</PARAMETERS> |
|
43 |
<ARCS> |
|
44 |
<ARC to="splitRecords"/> |
|
45 |
</ARCS> |
|
46 |
</NODE> |
|
47 |
|
|
48 |
<NODE name="splitRecords" type="SplitDatasetRecord"> |
|
49 |
<DESCRIPTION>Split Records into datasets and publication</DESCRIPTION> |
|
50 |
<PARAMETERS> |
|
51 |
<PARAM required="true" type="string" name="inputEprParm" managedBy="system">packed_publication_epr</PARAM> |
|
52 |
<PARAM required="true" type="string" name="outputEprParm" managedBy="system">publication_epr</PARAM> |
|
53 |
</PARAMETERS> |
|
54 |
<ARCS> |
|
55 |
<ARC to="findHostedBy"/> |
|
56 |
</ARCS> |
|
57 |
</NODE> |
|
58 |
|
|
59 |
<NODE name="findHostedBy" type="FindHostedBy"> |
|
60 |
<DESCRIPTION>Patch oaf:hostedBy fields</DESCRIPTION> |
|
61 |
<PARAMETERS> |
|
62 |
<PARAM required="true" type="string" name="inputEprParam" managedBy="system">publication_epr</PARAM> |
|
63 |
<PARAM required="true" type="string" name="outputEprParam" managedBy="system">patched_epr</PARAM> |
|
64 |
<PARAM required="true" type="string" name="countersParam" managedBy="system">hostedByCounters</PARAM> |
|
65 |
</PARAMETERS> |
|
66 |
<ARCS> |
|
67 |
<ARC to="storePublicationRecords"/> |
|
68 |
</ARCS> |
|
69 |
</NODE> |
|
70 |
|
|
71 |
<NODE name="storePublicationRecords" type="StoreMDStoreRecords"> |
|
72 |
<DESCRIPTION>Store records</DESCRIPTION> |
|
73 |
<PARAMETERS> |
|
74 |
<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("tranOAF_id")$</PARAM> |
|
75 |
<PARAM required="true" type="string" name="storingType" managedBy="system">REFRESH</PARAM> |
|
76 |
<PARAM required="true" type="string" name="eprParam" managedBy="system">patched_epr</PARAM> |
|
77 |
</PARAMETERS> |
|
78 |
<ARCS> |
|
79 |
<ARC to="validateHostedByRepos"/> |
|
80 |
</ARCS> |
|
81 |
</NODE> |
|
82 |
|
|
83 |
<NODE name="validateHostedByRepos" type="UpsertHostedByApis"> |
|
84 |
<DESCRIPTION>Validate hostedBy Repos</DESCRIPTION> |
|
85 |
<PARAMETERS> |
|
86 |
<PARAM required="true" type="string" name="countersParam" managedBy="system">hostedByCounters</PARAM> |
|
87 |
<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("tranOAF_id")$</PARAM> |
|
88 |
</PARAMETERS> |
|
89 |
<ARCS> |
|
90 |
<ARC to="success"/> |
|
91 |
</ARCS> |
|
92 |
</NODE> |
|
93 |
|
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.10/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByProject/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="DeleteMDStoreDatacite"/> |
|
20 |
</ARCS> |
|
21 |
</NODE> |
|
22 |
|
|
23 |
<NODE name="DeleteMDStoreDatacite" type="DeleteMDStore"> |
|
24 |
<DESCRIPTION>Delete the oai_datacite 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="DeleteMDStoreODF"/> |
|
30 |
</ARCS> |
|
31 |
</NODE> |
|
32 |
|
|
33 |
<NODE name="DeleteMDStoreODF" type="DeleteMDStore"> |
|
34 |
<DESCRIPTION>Delete the IMEF mdstore</DESCRIPTION> |
|
35 |
<PARAMETERS> |
|
36 |
<PARAM required="true" type="string" name="mdstoreId" managedBy="system" category="MDSTORE_ID">$params.("tranODF_id")$</PARAM> |
|
37 |
</PARAMETERS> |
|
38 |
<ARCS> |
|
39 |
<ARC to="DeleteMDStoreOAF"/> |
|
40 |
</ARCS> |
|
41 |
</NODE> |
|
42 |
|
|
43 |
<NODE name="DeleteMDStoreOAF" type="DeleteMDStore"> |
|
44 |
<DESCRIPTION>Delete the IMEF mdstore</DESCRIPTION> |
|
45 |
<PARAMETERS> |
|
46 |
<PARAM required="true" type="string" name="mdstoreId" managedBy="system" category="MDSTORE_ID">$params.("tranOAF_id")$</PARAM> |
|
47 |
</PARAMETERS> |
|
48 |
<ARCS> |
|
49 |
<ARC to="RemoveApiExtraFields"/> |
|
50 |
</ARCS> |
|
51 |
</NODE> |
|
52 |
|
|
53 |
<NODE name="RemoveApiExtraFields" type="RemoveApiExtraFields"> |
|
54 |
<DESCRIPTION>Reset the extrafields of the api</DESCRIPTION> |
|
55 |
<PARAMETERS> |
|
56 |
<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM> |
|
57 |
<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM> |
|
58 |
<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> |
|
59 |
</PARAMETERS> |
|
60 |
<ARCS> |
|
61 |
<ARC to="success"/> |
|
62 |
</ARCS> |
|
63 |
</NODE> |
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.10/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByJournal/sql/pangaea_journal_findmatches.sql | ||
---|---|---|
1 |
INSERT INTO hostedby_map(_dnet_resource_identifier_, oa_source_id, entry, datasourceid) |
|
2 |
SELECT p.issn||'__'||p.id ||'@@'||p.oa_source_id, p.oa_source_id, p.issn||'__'||p.id , d.id |
|
3 |
FROM datasources d, pangaea_temp_journals p where |
|
4 |
d.collectedfrom ='driver______::1790119e-d281-4b7a-aedf-866d1d853a07' and d.issn is not null and d.id like 'doajarticles::%' and p.issn = d.issn |
|
5 |
AND |
|
6 |
(p.oa_source_id, p.issn||'__'||p.id) NOT IN |
|
7 |
(SELECT oa_source_id, entry from hostedby_map) |
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.10/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByJournal/xsl/DatasetfromPangaeaTransform.xsl | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|
3 |
xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dr="http://www.driver-repository.eu/namespace/dr" |
|
4 |
xmlns:oai="http://www.openarchives.org/OAI/2.0/" xmlns:datetime="http://exslt.org/dates-and-times" |
|
5 |
xmlns:dri="http://www.driver-repository.eu/namespace/dri" |
|
6 |
xmlns:md="http://www.pangaea.de/MetaData" |
|
7 |
xmlns:oaa="http://namespace.openaire.eu/oaa" xmlns:oaf="http://namespace.openaire.eu/oaf" |
|
8 |
xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:dnet="eu.dnetlib.data.transform.xml.AbstractDNetXsltFunctions" |
|
9 |
xmlns:stringUtils="org.apache.commons.lang.StringUtils" |
|
10 |
version="1.0" |
|
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 |
<xsl:template match="/"> |
|
18 |
|
|
19 |
<xsl:variable name="identifier_datacite"> |
|
20 |
<xsl:value-of select="oai:record/oai:header/dri:objIdentifier"/> |
|
21 |
</xsl:variable> |
|
22 |
|
|
23 |
<xsl:variable name="dataset_identifier"> |
|
24 |
<xsl:value-of |
|
25 |
select="stringUtils:substringAfter(//md:citation/md:URI,'doi:')"/> |
|
26 |
</xsl:variable> |
|
27 |
<xsl:variable name="openaire_dataset_identifier"> |
|
28 |
<xsl:value-of |
|
29 |
select="concat($namespacePrefix,'::', dnet:md5($dataset_identifier))"/> |
|
30 |
</xsl:variable> |
|
31 |
|
|
32 |
<xsl:variable name="parentURI"> |
|
33 |
<xsl:value-of select="//md:citation/md:parentURI"/> |
|
34 |
</xsl:variable> |
|
35 |
|
|
36 |
<xsl:call-template name="CreateRecord"> |
|
37 |
<xsl:with-param name="openaire_dataset_identifier" select="$openaire_dataset_identifier"/> |
|
38 |
<xsl:with-param name="dataset_identifier" select="$dataset_identifier"/> |
|
39 |
<xsl:with-param name="parent_uri" select="$parentURI"/> |
|
40 |
</xsl:call-template> |
|
41 |
|
|
42 |
|
|
43 |
</xsl:template> |
|
44 |
<xsl:template name="CreateRecord"> |
|
45 |
<xsl:param name="openaire_dataset_identifier"/> |
|
46 |
<xsl:param name="dataset_identifier"/> |
|
47 |
<xsl:param name="parent_uri"/> |
|
48 |
<xsl:variable name="parentUri"> |
|
49 |
<xsl:value-of select="//md:citation/md:parentURI"/> |
|
50 |
</xsl:variable> |
|
51 |
<oai:record> |
|
52 |
<oai:header> |
|
53 |
<xsl:choose> |
|
54 |
<xsl:when test="string-length($parentUri) = 0"> |
|
55 |
<xsl:choose> |
|
56 |
<xsl:when test="//md:citation/md:supplementTo"> |
|
57 |
<dri:objIdentifier> |
|
58 |
<xsl:value-of select="$openaire_dataset_identifier"/> |
|
59 |
</dri:objIdentifier> |
|
60 |
</xsl:when> |
|
61 |
</xsl:choose> |
|
62 |
</xsl:when> |
|
63 |
<xsl:otherwise> |
|
64 |
<dri:objIdentifier> |
|
65 |
<xsl:value-of select="$openaire_dataset_identifier"/> |
|
66 |
</dri:objIdentifier> |
|
67 |
</xsl:otherwise> |
|
68 |
</xsl:choose> |
|
69 |
<dri:recordIdentifier> |
|
70 |
<xsl:value-of select="$dataset_identifier"/> |
|
71 |
</dri:recordIdentifier> |
|
72 |
<dri:dateOfCollection> |
|
73 |
<xsl:value-of select="datetime:dateTime()"/> |
|
74 |
</dri:dateOfCollection> |
|
75 |
<dri:repositoryId> |
|
76 |
<xsl:value-of select="$dataprovider_id"/> |
|
77 |
</dri:repositoryId> |
|
78 |
<oaf:datasourceprefix> |
|
79 |
<xsl:value-of select="$namespacePrefix"/> |
|
80 |
</oaf:datasourceprefix> |
|
81 |
</oai:header> |
|
82 |
<oai:metadata> |
|
83 |
<resource |
|
84 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
85 |
xsi:schemaLocation="http://datacite.org/schema/kernel-3 http://schema.datacite.org/meta/kernel-3/metadata.xsd" |
|
86 |
xmlns="http://datacite.org/schema/kernel-3"> |
|
87 |
<identifier identifierType="DOI"> |
|
88 |
<xsl:value-of |
|
89 |
select="$dataset_identifier"/> |
|
90 |
</identifier> |
|
91 |
<creators> |
|
92 |
<xsl:for-each select="//md:citation/md:author"> |
|
93 |
<creator> |
|
94 |
<creatorName> |
|
95 |
<xsl:value-of select="concat(./md:firstName, ' ', ./md:lastName)"/> |
|
96 |
</creatorName> |
|
97 |
<nameIdentifier schemeURI="http://www.pangaea.de" |
|
98 |
nameIdentifierScheme="PANGAEA"> |
|
99 |
<xsl:value-of select="./@id"/> |
|
100 |
</nameIdentifier> |
|
101 |
|
|
102 |
</creator> |
|
103 |
</xsl:for-each> |
|
104 |
</creators> |
|
105 |
<titles> |
|
106 |
<xsl:for-each select="//md:citation/md:title"> |
|
107 |
<title xml:lang="en-us"> |
|
108 |
<xsl:value-of select="."/> |
|
109 |
</title> |
|
110 |
</xsl:for-each> |
|
111 |
</titles> |
|
112 |
<publisher>PANGAEA</publisher> |
|
113 |
<publicationYear> |
|
114 |
<xsl:value-of select="//md:citation/md:year"/> |
|
115 |
</publicationYear> |
|
116 |
<resourceType resourceTypeGeneral="Dataset"/> |
|
117 |
<xsl:variable name="description"> |
|
118 |
<xsl:value-of select="//md:citation/md:abstract"/> |
|
119 |
</xsl:variable> |
|
120 |
<xsl:if test="$description"> |
|
121 |
<descriptions> |
|
122 |
<description descriptionType="Abstract"> |
|
123 |
<xsl:value-of select="$description"/> |
|
124 |
</description> |
|
125 |
</descriptions> |
|
126 |
</xsl:if> |
|
127 |
<rights>info:eu-repo/semantics/openAccess</rights> |
|
128 |
<contributors> |
|
129 |
<contributor contributorType="Funder"> |
|
130 |
<contributorName>European Commission</contributorName> |
|
131 |
<nameIdentifier nameIdentifierScheme="info"> |
|
132 |
<xsl:value-of |
|
133 |
select="//oaf:projectid"/> |
|
134 |
</nameIdentifier> |
|
135 |
</contributor> |
|
136 |
</contributors> |
|
137 |
</resource> |
|
138 |
<xsl:variable name="journalName"> |
|
139 |
<xsl:value-of select="//*[local-name() ='journal']/@name"/> |
|
140 |
</xsl:variable> |
|
141 |
<xsl:variable name="journalISSN"> |
|
142 |
<xsl:value-of select="//*[local-name() ='journal']/@issn"/> |
|
143 |
</xsl:variable> |
|
144 |
<xsl:variable name="journalDSId"> |
|
145 |
<xsl:value-of select="//*[local-name() ='journal']/@datasourceid"/> |
|
146 |
</xsl:variable> |
|
147 |
|
|
148 |
<xsl:choose> |
|
149 |
<xsl:when test="string-length($journalISSN) > 0"> |
|
150 |
<oaf:journal issn="{$journalISSN}" eissn=""> |
|
151 |
<xsl:value-of select="$journalName"/> |
|
152 |
</oaf:journal> |
|
153 |
<oaf:hostedBy> |
|
154 |
<xsl:attribute name="id"> |
|
155 |
<xsl:value-of select="$journalDSId"/> |
|
156 |
</xsl:attribute> |
|
157 |
<xsl:attribute name="name"> |
|
158 |
<xsl:value-of select="$journalName"/> |
|
159 |
</xsl:attribute> |
|
160 |
</oaf:hostedBy> |
|
161 |
</xsl:when> |
|
162 |
<xsl:otherwise> |
|
163 |
<oaf:hostedBy |
|
164 |
id="openaire____::1256f046-bf1f-4afc-8b47-d0b147148b18" |
|
165 |
name="Unknown Repository"/> |
|
166 |
</xsl:otherwise> |
|
167 |
</xsl:choose> |
|
168 |
<xsl:for-each select="//md:citation/md:supplementTo/@id"> |
|
169 |
<xsl:variable name="publicationID"> |
|
170 |
<xsl:value-of select="."/> |
|
171 |
</xsl:variable> |
|
172 |
<xsl:choose> |
|
173 |
<xsl:when test="string-length($publicationID) > 0"> |
|
174 |
<oaf:relatedPublication> |
|
175 |
<xsl:attribute name="id"> |
|
176 |
<xsl:value-of |
|
177 |
select="concat($namespacePrefix,'::', dnet:md5($publicationID))"/> |
|
178 |
</xsl:attribute> |
|
179 |
</oaf:relatedPublication> |
|
180 |
</xsl:when> |
|
181 |
</xsl:choose> |
|
182 |
</xsl:for-each> |
|
183 |
|
|
184 |
<xsl:choose> |
|
185 |
<xsl:when test="string-length($parent_uri) > 0"> |
|
186 |
<xsl:variable name="dataset_relate_ID"> |
|
187 |
<xsl:value-of select="stringUtils:substringAfter($parent_uri,'doi:')"/> |
|
188 |
</xsl:variable> |
|
189 |
<xsl:choose> |
|
190 |
<xsl:when test="string-length($dataset_relate_ID) > 0"> |
|
191 |
<oaf:relatedDataSet> |
|
192 |
<xsl:attribute name="id"> |
|
193 |
<xsl:value-of |
|
194 |
select="concat($namespacePrefix,'::', dnet:md5($dataset_relate_ID))"/> |
|
195 |
</xsl:attribute> |
|
196 |
</oaf:relatedDataSet> |
|
197 |
</xsl:when> |
|
198 |
</xsl:choose> |
|
199 |
|
|
200 |
</xsl:when> |
|
201 |
</xsl:choose> |
|
202 |
|
|
203 |
<oaf:about> |
|
204 |
<oaf:datainfo> |
|
205 |
<oaf:inferred>false</oaf:inferred> |
|
206 |
<oaf:deletedbyinference>false</oaf:deletedbyinference> |
|
207 |
<oaf:trust>0.9</oaf:trust> |
|
208 |
<oaf:inferenceprovenance/> |
|
209 |
<oaf:provenanceaction classid="sysimport:crosswalk:datasetarchive" |
|
210 |
classname="sysimport:crosswalk:datasetarchive" |
|
211 |
schemeid="dnet:provenanceActions" |
|
212 |
schemename="dnet:provenanceActions"/> |
|
213 |
</oaf:datainfo> |
|
214 |
</oaf:about> |
|
215 |
</oai:metadata> |
|
216 |
</oai:record> |
|
217 |
</xsl:template> |
|
218 |
</xsl:stylesheet> |
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.10/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>5.0.10</version> |
|
14 |
<scm> |
|
15 |
<developerConnection>scm:svn:https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.10</developerConnection> |
|
16 |
</scm> |
|
17 |
<repositories> |
|
18 |
<repository> |
|
19 |
<id>dfm-releases</id> |
|
20 |
<url>http://maven.research-infrastructures.eu/nexus/content/repositories/dfm-releases</url> |
|
21 |
</repository> |
|
22 |
</repositories> |
|
23 |
<dependencies> |
|
24 |
<dependency> |
|
25 |
<groupId>eu.dnetlib</groupId> |
|
26 |
<artifactId>cnr-data-flow-monitoring-core</artifactId> |
|
27 |
<version>[0.0.0,1.0.0)</version> |
|
28 |
<exclusions> |
|
29 |
<exclusion> |
|
30 |
<artifactId>wstx-asl</artifactId> |
|
31 |
<groupId>org.codehaus.woodstox</groupId> |
|
32 |
</exclusion> |
|
33 |
</exclusions> |
|
34 |
</dependency> |
|
35 |
<dependency> |
|
36 |
<groupId>eu.dnetlib</groupId> |
|
37 |
<artifactId>cnr-enabling-database-api</artifactId> |
|
38 |
<version>[1.0.0,2.0.0)</version> |
|
39 |
</dependency> |
|
40 |
<dependency> |
|
41 |
<groupId>eu.dnetlib</groupId> |
|
42 |
<artifactId>dnet-msro-service</artifactId> |
|
43 |
<version>[3.0.0,4.0.0)</version> |
|
44 |
</dependency> |
|
45 |
<dependency> |
|
46 |
<groupId>eu.dnetlib</groupId> |
|
47 |
<artifactId>cnr-resultset-service</artifactId> |
|
48 |
<version>[2.0.0,3.0.0)</version> |
|
49 |
</dependency> |
|
50 |
<dependency> |
|
51 |
<groupId>eu.dnetlib</groupId> |
|
52 |
<artifactId>dnet-openaireplus-datasource-manager-service</artifactId> |
|
53 |
<version>[5.0.0,6.0.0)</version> |
|
54 |
</dependency> |
|
55 |
<dependency> |
|
56 |
<groupId>eu.dnetlib</groupId> |
|
57 |
<artifactId>dnet-openaireplus-mapping-utils</artifactId> |
|
58 |
<version>[3.0.0,4.0.0)</version> |
|
59 |
</dependency> |
|
60 |
<dependency> |
|
61 |
<groupId>eu.dnetlib</groupId> |
|
62 |
<artifactId>dnet-hadoop-service-rmi</artifactId> |
|
63 |
<version>[1.0.0,2.0.0)</version> |
|
64 |
</dependency> |
|
65 |
<dependency> |
|
66 |
<groupId>eu.dnetlib</groupId> |
|
67 |
<artifactId>dnet-index-solr-common</artifactId> |
|
68 |
<version>[1.0.0,2.0.0)</version> |
|
69 |
</dependency> |
|
70 |
<dependency> |
|
71 |
<groupId>eu.dnetlib</groupId> |
|
72 |
<artifactId>dnet-collector-plugins</artifactId> |
|
73 |
<version>[1.0.0,2.0.0)</version> |
|
74 |
</dependency> |
|
75 |
|
|
76 |
|
|
77 |
<dependency> |
|
78 |
<groupId>eu.dnetlib</groupId> |
|
79 |
<artifactId>dnet-actionmanager-api</artifactId> |
|
80 |
<version>[3.0.0,4.0.0)</version> |
|
81 |
</dependency> |
|
82 |
|
|
83 |
<dependency> |
|
84 |
<groupId>eu.dnetlib</groupId> |
|
85 |
<artifactId>dnet-oai-common-workflows</artifactId> |
|
86 |
<version>[3.0.0,4.0.0)</version> |
|
87 |
</dependency> |
|
88 |
|
|
89 |
<dependency> |
|
90 |
<groupId>eu.dnetlib</groupId> |
|
91 |
<artifactId>dnet-index-solr-client</artifactId> |
|
92 |
<version>[2.0.0,3.0.0)</version> |
|
93 |
</dependency> |
|
94 |
|
|
95 |
<dependency> |
|
96 |
<groupId>eu.dnetlib</groupId> |
|
97 |
<artifactId>dnet-validator-workflows</artifactId> |
|
98 |
<version>[1.0.0,2.0.0)</version> |
|
99 |
</dependency> |
|
100 |
|
|
101 |
<!-- modular ui and servlet api are here because of the stats controller --> |
|
102 |
<dependency> |
|
103 |
<groupId>eu.dnetlib</groupId> |
|
104 |
<artifactId>dnet-modular-vocabularies-ui</artifactId> |
|
105 |
<version>[2.0.0,3.0.0)</version> |
|
106 |
</dependency> |
|
107 |
|
|
108 |
<dependency> |
|
109 |
<groupId>org.apache.velocity</groupId> |
|
110 |
<artifactId>velocity</artifactId> |
|
111 |
<version>1.7</version> |
|
112 |
</dependency> |
|
113 |
<dependency> |
|
114 |
<groupId>org.apache.velocity</groupId> |
|
115 |
<artifactId>velocity-tools</artifactId> |
|
116 |
<version>2.0</version> |
|
117 |
</dependency> |
|
118 |
<dependency> |
|
119 |
<groupId>javax.servlet</groupId> |
|
120 |
<artifactId>javax.servlet-api</artifactId> |
|
121 |
<version>${javax.servlet.version}</version> |
|
122 |
<scope>provided</scope> |
|
123 |
</dependency> |
|
124 |
<dependency> |
|
125 |
<groupId>junit</groupId> |
|
126 |
<artifactId>junit</artifactId> |
|
127 |
<version>${junit.version}</version> |
|
128 |
<scope>test</scope> |
|
129 |
</dependency> |
|
130 |
<dependency> |
|
131 |
<groupId>eu.dnetlib</groupId> |
|
132 |
<artifactId>dnet-openaireplus-profiles</artifactId> |
|
133 |
<version>[1.0.0,2.0.0)</version> |
|
134 |
<scope>test</scope> |
|
135 |
</dependency> |
|
136 |
</dependencies> |
|
137 |
|
|
138 |
</project> |
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.10/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByJournal/xsl/DatasetsFromPangaeaIngestion.xsl | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dc="http://purl.org/dc/elements/1.1/" |
|
3 |
xmlns:dr="http://www.driver-repository.eu/namespace/dr" |
|
4 |
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" |
|
8 |
xmlns:oaa="http://namespace.openaire.eu/oaa" xmlns:oaf="http://namespace.openaire.eu/oaf" |
|
9 |
xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:dnet="eu.dnetlib.data.transform.xml.AbstractDNetXsltFunctions" |
|
10 |
xmlns:stringUtils="org.apache.commons.lang.StringUtils" |
|
11 |
version="1.0" |
|
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-5.0.10/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByJournal/sql/pangaea_preparetable.sql | ||
---|---|---|
1 |
DROP TABLE IF EXISTS pangaea_temp_journals; |
|
2 |
CREATE TABLE IF NOT EXISTS pangaea_temp_journals ( |
|
3 |
_dnet_resource_identifier_ character varying(2048) DEFAULT 'temp_'||md5(clock_timestamp()::text)||'_'||md5(random()::text), |
|
4 |
id character varying(255) PRIMARY KEY, |
|
5 |
issn character varying(255), |
|
6 |
oa_source_id character varying(255) references datasources(id) |
|
7 |
); |
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.10/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/fillhostedByDoaj/sql/ekt_journal.sql | ||
---|---|---|
1 |
INSERT INTO hostedby_map(_dnet_resource_identifier_, oa_source_id, entry, datasourceid) |
|
2 |
SELECT d.issn||'@@'||d.collectedfrom, d.collectedfrom, d.issn, d.id |
|
3 |
FROM datasources d where |
|
4 |
d.collectedfrom ='openaire____::ekt_journals' and d.issn is not null and d.id like 'ekt_journals::%' |
|
5 |
AND |
|
6 |
(d.collectedfrom, d.issn) NOT IN |
|
7 |
(SELECT oa_source_id, entry from hostedby_map) |
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.10/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/fillhostedByDoaj/sql/tubitak_journal.sql | ||
---|---|---|
1 |
INSERT INTO hostedby_map(_dnet_resource_identifier_, oa_source_id, entry, datasourceid) |
|
2 |
SELECT d.issn||'@@'||d.collectedfrom, d.collectedfrom, d.issn, d.id |
|
3 |
FROM datasources d where |
|
4 |
d.collectedfrom ='openaire____::tubitak' and d.issn is not null and d.id like 'tubitak::%' |
|
5 |
AND |
|
6 |
(d.collectedfrom, d.issn) NOT IN |
|
7 |
(SELECT oa_source_id, entry from hostedby_map) |
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.10/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByJournal/update.db.patch.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="PREPARE_DB"/> |
|
10 |
<ARC to="obtainParams"/> |
|
11 |
</ARCS> |
|
12 |
</NODE> |
|
13 |
|
|
14 |
<NODE name="obtainParams" type="ObtainOpenaireDataSourceParams"> |
|
15 |
<DESCRIPTION>Obtain parameters for current provider</DESCRIPTION> |
|
16 |
<PARAMETERS> |
|
17 |
<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM> |
|
18 |
</PARAMETERS> |
|
19 |
<ARCS> |
|
20 |
<ARC to="generateRow"/> |
|
21 |
</ARCS> |
|
22 |
</NODE> |
|
23 |
|
|
24 |
<NODE name="PREPARE_DB" type="ExecuteSql"> |
|
25 |
<DESCRIPTION>Create necessary tables</DESCRIPTION> |
|
26 |
<PARAMETERS> |
|
27 |
<PARAM name="dbProperty" type="string" managedBy="system" required="true">dnet.openaire.db.name</PARAM> |
|
28 |
<PARAM name="sql" type="string" managedBy="system" required="true">/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByJournal/sql/pangaea_preparetable.sql</PARAM> |
|
29 |
</PARAMETERS> |
|
30 |
<ARCS> |
|
31 |
<ARC to="COLLECT"/> |
|
32 |
</ARCS> |
|
33 |
</NODE> |
|
34 |
|
|
35 |
<NODE name="COLLECT" type="CollectRecords"> |
|
36 |
<DESCRIPTION>Start Harvesting</DESCRIPTION> |
|
37 |
<PARAMETERS> |
|
38 |
<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM> |
|
39 |
<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM> |
|
40 |
<PARAM required="true" type="string" name="eprParam" managedBy="system">collected_epr</PARAM> |
|
41 |
</PARAMETERS> |
|
42 |
<ARCS> |
|
43 |
<ARC to="generateRow"/> |
|
44 |
</ARCS> |
|
45 |
</NODE> |
|
46 |
|
|
47 |
<NODE name="generateRow" type="ApplyXslt" isJoin="true"> |
|
48 |
<DESCRIPTION>Transform original records to Publication</DESCRIPTION> |
|
49 |
<PARAMETERS> |
|
50 |
<PARAM required="true" type="string" name="xsltClasspath" managedBy="user" function="listFiles('/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByJournal/xsl','xsl')"></PARAM> |
|
51 |
<PARAM required="true" type="string" name="inputEprParam" managedBy="system">collected_epr</PARAM> |
|
52 |
<PARAM required="true" type="string" name="outputEprParam" managedBy="system">row_epr</PARAM> |
|
53 |
</PARAMETERS> |
|
54 |
<ARCS> |
|
55 |
<ARC to="UPDATE_JORUNAL_DB"/> |
|
56 |
</ARCS> |
|
57 |
</NODE> |
|
58 |
|
|
59 |
<NODE name="UPDATE_JORUNAL_DB" type="UpdateOpenaireDb"> |
|
60 |
<DESCRIPTION>Update Db</DESCRIPTION> |
|
61 |
<PARAMETERS> |
|
62 |
<PARAM required="true" type="string" name="eprParam" managedBy="system">row_epr</PARAM> |
|
63 |
</PARAMETERS> |
|
64 |
<ARCS> |
|
65 |
<ARC to="FIND_MATCHES"/> |
|
66 |
</ARCS> |
|
67 |
</NODE> |
|
68 |
|
|
69 |
<NODE name="FIND_MATCHES" type="ExecuteSql"> |
|
70 |
<DESCRIPTION>Add new journal to patch entry tables</DESCRIPTION> |
|
71 |
<PARAMETERS> |
|
72 |
<PARAM name="dbProperty" type="string" managedBy="system" required="true">dnet.openaire.db.name</PARAM> |
|
73 |
<PARAM name="sql" type="string" managedBy="user" required="true" function="listFiles('/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByJournal/sql','sql')"></PARAM> |
|
74 |
</PARAMETERS> |
|
75 |
<ARCS> |
|
76 |
<ARC to="success"/> |
|
77 |
</ARCS> |
|
78 |
</NODE> |
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.10/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/fillhostedByDoaj/sql/doajJournals_findMatches.sql | ||
---|---|---|
1 |
INSERT INTO hostedby_map(_dnet_resource_identifier_, oa_source_id, entry, datasourceid) |
|
2 |
SELECT d.issn||'@@'||d.collectedfrom, d.collectedfrom, d.issn, d.id |
|
3 |
FROM datasources d where |
|
4 |
d.collectedfrom ='driver______::1790119e-d281-4b7a-aedf-866d1d853a07' and d.issn is not null and d.id like 'doajarticles::%' |
|
5 |
AND |
|
6 |
(d.collectedfrom, d.issn) NOT IN |
|
7 |
(SELECT oa_source_id, entry from hostedby_map) |
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.10/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByJournal/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="obtainParams"/> |
|
10 |
</ARCS> |
|
11 |
</NODE> |
|
12 |
|
|
13 |
<NODE name="obtainParams" type="ObtainOpenaireDataSourceParams"> |
|
14 |
<DESCRIPTION>Fetch records from MDStore</DESCRIPTION> |
|
15 |
<PARAMETERS> |
|
16 |
<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM> |
|
17 |
</PARAMETERS> |
|
18 |
<ARCS> |
|
19 |
<ARC to="FETCH_JOURNAL_INTERSECTION"/> |
|
20 |
</ARCS> |
|
21 |
</NODE> |
|
22 |
|
|
23 |
<NODE name="FETCH_JOURNAL_INTERSECTION" type="QueryDb"> |
|
24 |
<DESCRIPTION>Fetch records by Query</DESCRIPTION> |
|
25 |
<PARAMETERS> |
|
26 |
<PARAM name="dbProperty" type="string" managedBy="system" required="true">dnet.openaire.db.name</PARAM> |
|
27 |
<PARAM name="sql" type="string" managedBy="system" required="true">/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByJournal/sql/find_journal_intersection.sql</PARAM> |
|
28 |
<PARAM name="outputEprParam" type="string" managedBy="system" required="true">sql_epr</PARAM> |
|
29 |
</PARAMETERS> |
|
30 |
<ARCS> |
|
31 |
<ARC to="COLLECT_DATASETS" /> |
|
32 |
</ARCS> |
|
33 |
</NODE> |
|
34 |
|
|
35 |
<NODE name="COLLECT_DATASETS" type="CollectDatasetsByJournal"> |
|
36 |
<DESCRIPTION>Start Harvesting Datasets</DESCRIPTION> |
|
37 |
<PARAMETERS> |
|
38 |
<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM> |
|
39 |
<PARAM required="true" type="string" name="inputEprParam" managedBy="system">sql_epr</PARAM> |
|
40 |
<PARAM required="true" type="string" name="outputEprParam" managedBy="system">collected_epr</PARAM> |
|
41 |
</PARAMETERS> |
|
42 |
<ARCS> |
|
43 |
<ARC to="MD_BUILDER_REFRESH"/> |
|
44 |
</ARCS> |
|
45 |
</NODE> |
|
46 |
|
|
47 |
<NODE name="MD_BUILDER_REFRESH" type="ApplyXslt"> |
|
48 |
<DESCRIPTION>Transform original records in DB rows</DESCRIPTION> |
|
49 |
<PARAMETERS> |
|
50 |
<PARAM required="true" type="string" name="xsltClasspath" managedBy="user" function="listFiles('/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByJournal/xsl','xsl')"></PARAM> |
|
51 |
<PARAM required="true" type="string" name="inputEprParam" managedBy="system">collected_epr</PARAM> |
|
52 |
<PARAM required="true" type="string" name="outputEprParam" managedBy="system">store_epr</PARAM> |
|
53 |
</PARAMETERS> |
|
54 |
<ARCS> |
|
55 |
<ARC to="STORE_REFRESH"/> |
|
56 |
</ARCS> |
|
57 |
</NODE> |
|
58 |
|
|
59 |
<NODE name="STORE_REFRESH" type="StoreMDStoreRecords"> |
|
60 |
<DESCRIPTION>Store mdstore records</DESCRIPTION> |
|
61 |
<PARAMETERS> |
|
62 |
<PARAM required="true" type="string" name="mdId" managedBy="system" category="MDSTORE_ID">$params.("harv_id")$</PARAM> |
|
63 |
<PARAM required="true" type="string" name="storingType" managedBy="system">INCREMENTAL</PARAM> |
|
64 |
<PARAM required="true" type="string" name="eprParam" managedBy="system">store_epr</PARAM> |
|
65 |
</PARAMETERS> |
|
66 |
<ARCS> |
|
67 |
<ARC to="UPDATE_INFO"/> |
|
68 |
</ARCS> |
|
69 |
</NODE> |
|
70 |
|
|
71 |
<NODE name="UPDATE_INFO" type="MDStoreToApiExtraField"> |
|
72 |
<DESCRIPTION>Update datasouce API extra fields</DESCRIPTION> |
|
73 |
<PARAMETERS> |
|
74 |
<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("harv_id")$</PARAM> |
|
75 |
<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM> |
|
76 |
<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM> |
|
77 |
<PARAM required="true" type="string" name="extraFieldForTotal" managedBy="system">last_collection_total</PARAM> |
|
78 |
<PARAM required="true" type="string" name="extraFieldForDate" managedBy="system">last_collection_date</PARAM> |
|
79 |
<PARAM required="true" type="string" name="extraFieldForMdId" managedBy="system">last_collection_mdId</PARAM> |
|
80 |
</PARAMETERS> |
|
81 |
<ARCS> |
|
82 |
<ARC to="success"/> |
|
83 |
</ARCS> |
|
84 |
</NODE> |
|
85 |
|
|
86 |
|
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.10/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/fillhostedByDoaj/update.db.patch.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="FIND_MATCHES"/> |
|
10 |
</ARCS> |
|
11 |
</NODE> |
|
12 |
|
|
13 |
<NODE name="FIND_MATCHES" type="ExecuteSql"> |
|
14 |
<DESCRIPTION>Add new journal to patch entry tables</DESCRIPTION> |
|
15 |
<PARAMETERS> |
|
16 |
<PARAM name="dbProperty" type="string" managedBy="system" required="true">dnet.openaire.db.name</PARAM> |
|
17 |
<PARAM name="sql" type="string" managedBy="user" required="true" function="listFiles('/eu/dnetlib/msro/openaireplus/workflows/repo-hi/fillhostedByDoaj/sql','sql')">/eu/dnetlib/msro/openaireplus/workflows/repo-hi/fillhostedByDoaj/sql/doajJournals_findMatches.sql</PARAM> |
|
18 |
</PARAMETERS> |
|
19 |
<ARCS> |
|
20 |
<ARC to="success"/> |
|
21 |
</ARCS> |
|
22 |
</NODE> |
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.10/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 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dc="http://purl.org/dc/elements/1.1/" |
|
3 |
xmlns:oai="http://www.openarchives.org/OAI/2.0/" |
|
4 |
xmlns:datetime="http://exslt.org/dates-and-times" |
|
5 |
xmlns:dri="http://www.driver-repository.eu/namespace/dri" |
|
6 |
xmlns:oaa="http://namespace.openaire.eu/oaa" xmlns:oaf="http://namespace.openaire.eu/oaf" |
|
7 |
xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:dnet="eu.dnetlib.data.transform.xml.AbstractDNetXsltFunctions" |
|
8 |
xmlns:stringUtils="org.apache.commons.lang.StringUtils" |
|
9 |
version="1.0" |
|
10 |
exclude-result-prefixes="xsl dc dnet oaa fn stringUtils datetime"> |
|
11 |
|
|
12 |
<xsl:param name="namespacePrefix"/> |
|
13 |
<xsl:param name="dataSourceId"/> |
|
14 |
<xsl:param name="dataprovider_id"/> |
|
15 |
|
|
16 |
<xsl:template match="/"> |
|
17 |
<xsl:variable name="identifier"> |
|
18 |
<xsl:value-of |
|
19 |
select="stringUtils:substringAfter(/*[local-name()='datasetsRecord']/*[local-name()='metadata']/*[local-name()='MetaData']/*[local-name()='citation']/*[local-name()='URI'],'doi:')" |
|
20 |
/> |
|
21 |
</xsl:variable> |
|
22 |
<oai:record> |
|
23 |
<oai:header> |
|
24 |
<dri:objIdentifier> |
|
25 |
<xsl:value-of select="concat($namespacePrefix,'::', dnet:md5($identifier))"/> |
|
26 |
</dri:objIdentifier> |
|
27 |
<dri:recordIdentifier> |
|
28 |
<xsl:value-of select="$identifier"/> |
|
29 |
</dri:recordIdentifier> |
|
30 |
<dri:dateOfCollection> |
|
31 |
<xsl:value-of select="datetime:dateTime()"/> |
|
32 |
</dri:dateOfCollection> |
|
33 |
<dri:repositoryId> |
|
34 |
<xsl:value-of select="$dataSourceId"/> |
|
35 |
</dri:repositoryId> |
|
36 |
<oaf:datasourceprefix> |
|
37 |
<xsl:value-of select="$namespacePrefix"/> |
|
38 |
</oaf:datasourceprefix> |
|
39 |
<dri:repositoryId> |
|
40 |
<xsl:value-of select="$dataprovider_id"/> |
|
41 |
</dri:repositoryId> |
|
42 |
</oai:header> |
|
43 |
<oai:metadata> |
|
44 |
<xsl:copy-of select="."/> |
|
45 |
</oai:metadata> |
|
46 |
</oai:record> |
|
47 |
|
|
48 |
</xsl:template> |
|
49 |
</xsl:stylesheet> |
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.10/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/doaj_journals/sql/doajJournals_findMatches.sql | ||
---|---|---|
1 |
INSERT INTO hostedby_map(_dnet_resource_identifier_, oa_source_id, entry, datasourceid) |
|
2 |
SELECT d.issn||'@@'||d.collectedfrom, d.collectedfrom, d.issn, d.id |
|
3 |
FROM datasources d where |
|
4 |
d.collectedfrom ='driver______::1790119e-d281-4b7a-aedf-866d1d853a07' and d.issn is not null and d.id like 'doajarticles::%' |
|
5 |
AND |
|
6 |
(d.collectedfrom, d.issn) NOT IN |
|
7 |
(SELECT oa_source_id, entry from hostedby_map) |
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.10/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg-contexts/xsl/nsf_contexts.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:fn="http://www.w3.org/2005/xpath-functions" |
|
4 |
exclude-result-prefixes="fn"> |
|
5 |
|
|
6 |
<xsl:variable name="namespacePrefix" select="string('nsf_________')" /> |
|
7 |
<xsl:variable name="funderID" select="concat($namespacePrefix, '::NSF')" /> |
|
8 |
|
|
9 |
<xsl:template match="/"> |
|
10 |
<fundings> |
|
11 |
<xsl:for-each select=".//ProgramElement"> |
|
12 |
<xsl:call-template name="addFundingTree"> |
|
13 |
<xsl:with-param name="parentName" select="string('PEC')" /> |
|
14 |
<xsl:with-param name="parentDesc" select="string('NSF Program Element Codes')" /> |
|
15 |
</xsl:call-template> |
|
16 |
</xsl:for-each> |
|
17 |
<xsl:for-each select=".//ProgramReference"> |
|
18 |
<xsl:call-template name="addFundingTree"> |
|
19 |
<xsl:with-param name="parentName" select="string('PRC')" /> |
|
20 |
<xsl:with-param name="parentDesc" select="string('NSF Program Reference Codes')" /> |
|
21 |
</xsl:call-template> |
|
22 |
</xsl:for-each> |
|
23 |
</fundings> |
|
24 |
</xsl:template> |
|
25 |
|
|
26 |
<xsl:template name="addFundingTree"> |
|
27 |
<xsl:param name="parentName" /> |
|
28 |
<xsl:param name="parentDesc" /> |
|
29 |
|
|
30 |
<xsl:if test="string-length(normalize-space(./Code)) > 0"> |
|
31 |
<fundingtree> |
|
32 |
<funder> |
|
33 |
<id><xsl:value-of select="$funderID" /></id> |
|
34 |
<shortname>NSF</shortname> |
|
35 |
<name>National Science Foundation</name> |
|
36 |
<jurisdiction>US</jurisdiction> |
|
37 |
</funder> |
|
38 |
<funding_level_1> |
|
39 |
<id><xsl:value-of select="concat($funderID, '::', $parentName, '::', normalize-space(./Code))" /></id> |
|
40 |
<xsl:choose> |
|
41 |
<xsl:when test="string-length(normalize-space(./Text)) > 0"> |
|
42 |
<description><xsl:value-of select="./Text" /></description> |
|
43 |
<name><xsl:value-of select="./Text" /></name> |
|
44 |
</xsl:when> |
|
45 |
<xsl:otherwise> |
|
46 |
<description><xsl:value-of select="./Code" /></description> |
|
47 |
<name><xsl:value-of select="./Code" /></name> |
|
48 |
</xsl:otherwise> |
|
49 |
</xsl:choose> |
|
50 |
<parent> |
|
51 |
<funding_level_0> |
|
52 |
<id><xsl:value-of select="concat($funderID, '::', $parentName)" /></id> |
|
53 |
<description><xsl:value-of select="$parentDesc" /></description> |
|
54 |
<name><xsl:value-of select="$parentName" /></name> |
|
55 |
<parent /> |
|
56 |
<class>nsf:fundingStream</class> |
|
57 |
</funding_level_0> |
|
58 |
</parent> |
|
59 |
<class>nsf:fundingStream</class> |
|
60 |
</funding_level_1> |
|
61 |
</fundingtree> |
|
62 |
</xsl:if> |
|
63 |
</xsl:template> |
|
64 |
|
|
65 |
</xsl:stylesheet> |
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.10/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByJournal/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="DeleteMDStoreDatacite"/> |
|
20 |
</ARCS> |
|
21 |
</NODE> |
|
22 |
|
|
23 |
<NODE name="DeleteMDStoreDatacite" type="DeleteMDStore"> |
|
24 |
<DESCRIPTION>Delete the oai_datacite 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="DeleteMDStoreODF"/> |
|
30 |
</ARCS> |
|
31 |
</NODE> |
|
32 |
|
|
33 |
<NODE name="DeleteMDStoreODF" type="DeleteMDStore"> |
|
34 |
<DESCRIPTION>Delete the IMEF mdstore</DESCRIPTION> |
|
35 |
<PARAMETERS> |
|
36 |
<PARAM required="true" type="string" name="mdstoreId" managedBy="system" category="MDSTORE_ID">$params.("tranODF_id")$</PARAM> |
|
37 |
</PARAMETERS> |
|
38 |
<ARCS> |
|
39 |
<ARC to="DeleteMDStoreOAF"/> |
|
40 |
</ARCS> |
|
41 |
</NODE> |
|
42 |
|
|
43 |
<NODE name="DeleteMDStoreOAF" type="DeleteMDStore"> |
|
44 |
<DESCRIPTION>Delete the IMEF mdstore</DESCRIPTION> |
|
45 |
<PARAMETERS> |
|
46 |
<PARAM required="true" type="string" name="mdstoreId" managedBy="system" category="MDSTORE_ID">$params.("tranOAF_id")$</PARAM> |
|
47 |
</PARAMETERS> |
|
48 |
<ARCS> |
|
49 |
<ARC to="RemoveApiExtraFields"/> |
|
50 |
</ARCS> |
|
51 |
</NODE> |
|
52 |
|
|
53 |
<NODE name="RemoveApiExtraFields" type="RemoveApiExtraFields"> |
|
54 |
<DESCRIPTION>Reset the extrafields of the api</DESCRIPTION> |
|
55 |
<PARAMETERS> |
|
56 |
<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM> |
|
57 |
<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM> |
|
58 |
<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> |
|
59 |
</PARAMETERS> |
|
60 |
<ARCS> |
|
61 |
<ARC to="success"/> |
|
62 |
</ARCS> |
|
63 |
</NODE> |
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.10/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg-contexts/xsl/arc_contexts.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:fn="http://www.w3.org/2005/xpath-functions" |
|
4 |
xmlns:ands="http://ands.org.au/standards/rif-cs/registryObjects" |
|
5 |
exclude-result-prefixes="fn"> |
|
6 |
|
|
7 |
<xsl:output indent="yes" /> |
|
8 |
|
|
9 |
<xsl:template match="/"> |
|
10 |
<fundings> |
|
11 |
<xsl:for-each select="//ands:description[@type='fundingScheme']"> |
|
12 |
<fundingtree> |
|
13 |
<funder> |
|
14 |
<id>arc_________::ARC</id> |
|
15 |
<shortname>ARC</shortname> |
|
16 |
<name>Australian Research Council (ARC)</name> |
|
17 |
<jurisdiction>AU</jurisdiction> |
|
18 |
</funder> |
|
19 |
<funding_level_0> |
|
20 |
<id> |
|
21 |
<xsl:value-of select="concat('arc_________::ARC::', normalize-space(.))" /> |
|
22 |
</id> |
|
23 |
<name> |
|
24 |
<xsl:value-of select="normalize-space(.)" /> |
|
25 |
</name> |
|
26 |
<description> |
|
27 |
<xsl:value-of select="normalize-space(.)" /> |
|
28 |
</description> |
|
29 |
<parent></parent> |
|
30 |
<class>arc:fundingStream</class> |
|
31 |
</funding_level_0> |
|
32 |
</fundingtree> |
|
33 |
</xsl:for-each> |
|
34 |
</fundings> |
|
35 |
</xsl:template> |
|
36 |
</xsl:stylesheet> |
|
37 |
|
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.10/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 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|
3 |
xmlns:oai="http://www.openarchives.org/OAI/2.0/" |
|
4 |
xmlns:datetime="http://exslt.org/dates-and-times" |
|
5 |
xmlns:dri="http://www.driver-repository.eu/namespace/dri" |
|
6 |
xmlns:md="http://www.pangaea.de/MetaData" |
|
7 |
xmlns:oaa="http://namespace.openaire.eu/oaa" xmlns:oaf="http://namespace.openaire.eu/oaf" |
|
8 |
xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:dnet="eu.dnetlib.data.transform.xml.AbstractDNetXsltFunctions" |
|
9 |
xmlns:stringUtils="org.apache.commons.lang.StringUtils" |
|
10 |
version="1.0" |
|
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 |
</xsl:template> |
|
44 |
|
|
45 |
|
|
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 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
71 |
xsi:schemaLocation="http://datacite.org/schema/kernel-3 http://schema.datacite.org/meta/kernel-3/metadata.xsd" |
|
72 |
xmlns="http://datacite.org/schema/kernel-3"> |
|
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 |
<resourceType resourceTypeGeneral="Dataset"/> |
|
103 |
<xsl:variable name="description"> |
|
104 |
<xsl:value-of select="//md:citation/md:abstract"/> |
|
105 |
</xsl:variable> |
|
106 |
<xsl:if test="$description"> |
|
107 |
<descriptions> |
|
108 |
<description descriptionType="Abstract"> |
|
109 |
<xsl:value-of select="$description"/> |
|
110 |
</description> |
|
111 |
</descriptions> |
|
112 |
</xsl:if> |
|
113 |
<rights>info:eu-repo/semantics/openAccess</rights> |
|
114 |
<contributors> |
|
115 |
<contributor contributorType="Funder"> |
|
116 |
<contributorName>European Commission</contributorName> |
|
117 |
<nameIdentifier nameIdentifierScheme="info"> |
|
118 |
<xsl:value-of |
|
119 |
select="//oaf:projectid"/> |
|
120 |
</nameIdentifier> |
|
121 |
</contributor> |
|
122 |
</contributors> |
|
123 |
</resource> |
|
124 |
<xsl:variable name="journalName"> |
|
125 |
<xsl:value-of select="//*[local-name() ='journal']/@name"/> |
|
126 |
</xsl:variable> |
|
127 |
<xsl:variable name="journalISSN"> |
|
128 |
<xsl:value-of select="//*[local-name() ='journal']/@issn"/> |
|
129 |
</xsl:variable> |
|
130 |
<xsl:variable name="journalDSId"> |
|
131 |
<xsl:value-of select="//*[local-name() ='journal']/@datasourceid"/> |
|
132 |
</xsl:variable> |
|
133 |
|
|
134 |
<xsl:choose> |
|
135 |
<xsl:when test="string-length($journalISSN) > 0"> |
|
136 |
<oaf:journal issn="{$journalISSN}" eissn=""> |
|
137 |
<xsl:value-of select="$journalName"/> |
|
138 |
</oaf:journal> |
|
139 |
<oaf:hostedBy> |
|
140 |
<xsl:attribute name="id"> |
|
141 |
<xsl:value-of select="$journalDSId"/> |
|
142 |
</xsl:attribute> |
|
143 |
<xsl:attribute name="name"> |
|
144 |
<xsl:value-of select="$journalName"/> |
|
145 |
</xsl:attribute> |
|
146 |
</oaf:hostedBy> |
|
147 |
</xsl:when> |
|
148 |
<xsl:otherwise> |
|
149 |
<oaf:hostedBy |
|
150 |
id="openaire____::1256f046-bf1f-4afc-8b47-d0b147148b18" |
|
151 |
name="Unknown Repository"/> |
|
152 |
</xsl:otherwise> |
|
153 |
</xsl:choose> |
|
154 |
<xsl:for-each select="//md:citation/md:supplementTo/@id"> |
|
155 |
<xsl:variable name="publicationID"> |
|
156 |
<xsl:value-of select="."/> |
|
157 |
</xsl:variable> |
|
158 |
<xsl:choose> |
|
159 |
<xsl:when test="string-length($publicationID) > 0"> |
|
160 |
<oaf:relatedPublication> |
|
161 |
<xsl:attribute name="id"> |
|
162 |
<xsl:value-of |
|
163 |
select="concat($namespacePrefix,'::', dnet:md5($publicationID))"/> |
|
164 |
</xsl:attribute> |
|
165 |
</oaf:relatedPublication> |
|
166 |
</xsl:when> |
|
167 |
</xsl:choose> |
|
168 |
</xsl:for-each> |
|
169 |
|
|
170 |
<xsl:choose> |
|
171 |
<xsl:when test="string-length($parent_uri) > 0"> |
|
172 |
<xsl:variable name="dataset_relate_ID"> |
|
173 |
<xsl:value-of select="stringUtils:substringAfter($parent_uri,'doi:')"/> |
|
174 |
</xsl:variable> |
|
175 |
<xsl:choose> |
|
176 |
<xsl:when test="string-length($dataset_relate_ID) > 0"> |
|
177 |
<oaf:relatedDataSet> |
|
178 |
<xsl:attribute name="id"> |
|
179 |
<xsl:value-of |
|
180 |
select="concat($namespacePrefix,'::', dnet:md5($dataset_relate_ID))"/> |
|
181 |
</xsl:attribute> |
|
182 |
</oaf:relatedDataSet> |
|
183 |
</xsl:when> |
|
184 |
</xsl:choose> |
|
185 |
|
|
186 |
</xsl:when> |
|
187 |
</xsl:choose> |
|
188 |
|
|
189 |
<oaf:about> |
|
190 |
<oaf:datainfo> |
|
191 |
<oaf:inferred>false</oaf:inferred> |
|
192 |
<oaf:deletedbyinference>false</oaf:deletedbyinference> |
|
193 |
<oaf:trust>0.9</oaf:trust> |
|
194 |
<oaf:inferenceprovenance/> |
|
195 |
<oaf:provenanceaction classid="sysimport:crosswalk:datasetarchive" |
|
196 |
classname="sysimport:crosswalk:datasetarchive" |
|
197 |
schemeid="dnet:provenanceActions" |
|
198 |
schemename="dnet:provenanceActions"/> |
|
199 |
</oaf:datainfo> |
|
200 |
</oaf:about> |
|
201 |
</oai:metadata> |
|
202 |
</oai:record> |
|
203 |
</xsl:template> |
|
204 |
</xsl:stylesheet> |
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.10/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 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|
3 |
xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dr="http://www.driver-repository.eu/namespace/dr" |
|
4 |
xmlns:dri="http://www.driver-repository.eu/namespace/dri" xmlns:oaa="http://namespace.openaire.eu/oaa" |
|
5 |
xmlns:oaf="http://namespace.openaire.eu/oaf" xmlns:fn="http://www.w3.org/2005/xpath-functions" |
|
6 |
xmlns:dnet="eu.dnetlib.miscutils.functional.hash.Hashing" |
|
7 |
xmlns:clean="eu.dnetlib.msro.openaireplus.utils.CleaningXsltFunctions" |
|
8 |
version="1.0"> |
|
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-5.0.10/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg-contexts/xsl/fct_contexts.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:fn="http://www.w3.org/2005/xpath-functions" |
|
4 |
exclude-result-prefixes="fn"> |
|
5 |
|
|
6 |
<xsl:variable name="namespacePrefix" select="string('fct_________')" /> |
|
7 |
<xsl:variable name="funderID" select="concat($namespacePrefix, '::FCT')" /> |
|
8 |
|
|
9 |
<xsl:template match="/"> |
|
10 |
|
|
11 |
<xsl:variable name="funding"> |
|
12 |
<xsl:choose> |
|
13 |
<xsl:when test="normalize-space(.//funding/program)"> |
|
14 |
<xsl:value-of select="normalize-space(.//funding/program)" /> |
|
15 |
</xsl:when> |
|
16 |
<xsl:otherwise> |
|
17 |
<xsl:value-of select="string('UNKNOWN')" /> |
|
18 |
</xsl:otherwise> |
|
19 |
</xsl:choose> |
|
20 |
</xsl:variable> |
|
21 |
|
|
22 |
<fundingtree> |
|
23 |
<funder> |
|
24 |
<id> |
|
25 |
<xsl:value-of select="$funderID" /> |
|
26 |
</id> |
|
27 |
<shortname>FCT</shortname> |
|
28 |
<name>Fundação para a Ciência e a Tecnologia, I.P.</name> |
|
29 |
<jurisdiction>PT</jurisdiction> |
|
30 |
</funder> |
|
31 |
<funding_level_0> |
|
32 |
<id> |
|
33 |
<xsl:value-of select="concat($funderID,'::', $funding)" /> |
|
34 |
</id> |
|
35 |
<description> |
|
36 |
<xsl:value-of select="$funding" /> |
|
37 |
</description> |
|
38 |
<name> |
|
39 |
<xsl:value-of select="$funding" /> |
|
40 |
</name> |
|
41 |
<parent></parent> |
|
42 |
<class>fct:program</class> |
|
43 |
</funding_level_0> |
|
44 |
</fundingtree> |
|
45 |
</xsl:template> |
|
46 |
|
|
47 |
</xsl:stylesheet> |
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.10/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/fillhostedByDoaj/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="success"/> |
|
20 |
</ARCS> |
|
21 |
</NODE> |
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.10/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt-datacite/datacite-filter.xml | ||
---|---|---|
1 |
<filter> |
|
2 |
<record relatedId="oai:arXiv.org:1204.5479" dataciteId="10.4121/uuid:8bf81177-2f2b-49c2-aaf5-d36739873dd9" namespacePrefix="od________18"/> |
|
3 |
<record relatedId="oai:arXiv.org:1209.3237" dataciteId="10.4121/uuid:8bf81177-2f2b-49c2-aaf5-d36739873dd9" namespacePrefix="od________18"/> |
|
4 |
<record relatedId="oai:arXiv.org:1210.0687" dataciteId="10.4121/uuid:8bf81177-2f2b-49c2-aaf5-d36739873dd9" namespacePrefix="od________18"/> |
|
5 |
<record relatedId="oai:arXiv.org:1210.0799" dataciteId="10.4121/uuid:8bf81177-2f2b-49c2-aaf5-d36739873dd9" namespacePrefix="od________18"/> |
|
6 |
<record relatedId="oai:arXiv.org:1204.2248" dataciteId="10.5063/AA/CONNOLLY.126.2" namespacePrefix="od________18"/> |
|
7 |
<record relatedId="oai:arXiv.org:1205.6226" dataciteId="10.6073/PASTA/C7AB9DD02AFAFC581B376C74F733B3EC" namespacePrefix="od________18"/> |
|
8 |
<record relatedId="oai:arXiv.org:1207.1478" dataciteId="10.5063/AA/NCEAS.177.3" namespacePrefix="od________18"/> |
|
9 |
<record relatedId="oai:arXiv.org:1207.2189" dataciteId="10.3334/CDIAC/CLI.NDP026B" namespacePrefix="od________18"/> |
|
10 |
<record relatedId="oai:arXiv.org:1208.3524" dataciteId="10.7265/N5/NSIDC-WGI-2012-02" namespacePrefix="od________18"/> |
|
11 |
<record relatedId="oai:arXiv.org:1204.1571" dataciteId="10.4231/D33F4KN2K" namespacePrefix="od________18"/> |
|
12 |
<record relatedId="oai:arXiv.org:1204.6199" dataciteId="10.4122/1.1000001001" namespacePrefix="od________18"/> |
|
13 |
<record relatedId="oai:arXiv.org:1207.6654" dataciteId="10.5060/D2DN4300" namespacePrefix="od________18"/> |
|
14 |
<record relatedId="oai:arXiv.org:1209.5065" dataciteId="10.5060/D2DN4300" namespacePrefix="od________18"/> |
|
15 |
<record relatedId="oai:arXiv.org:1204.1227" dataciteId="10.6084/M9.FIGSHARE.23401" namespacePrefix="od________18"/> |
|
16 |
<record relatedId="oai:arXiv.org:1209.5923" dataciteId="10.6084/M9.FIGSHARE.23401" namespacePrefix="od________18"/> |
|
17 |
<record relatedId="oai:arXiv.org:1206.4361" dataciteId="10.6084/M9.FIGSHARE.64921" namespacePrefix="od________18"/> |
|
18 |
<record relatedId="oai:arXiv.org:1204.0684" dataciteId="10.6084/M9.FIGSHARE.1210" namespacePrefix="od________18"/> |
|
19 |
<record relatedId="oai:arXiv.org:1204.1220" dataciteId="10.6084/M9.FIGSHARE.1210" namespacePrefix="od________18"/> |
|
20 |
<record relatedId="oai:arXiv.org:1204.2255" dataciteId="10.6084/M9.FIGSHARE.16980" namespacePrefix="od________18"/> |
|
21 |
<record relatedId="oai:arXiv.org:1204.6537" dataciteId="10.6084/M9.FIGSHARE.1210" namespacePrefix="od________18"/> |
|
22 |
<record relatedId="oai:arXiv.org:1205.0151" dataciteId="10.6084/M9.FIGSHARE.1210" namespacePrefix="od________18"/> |
|
23 |
<record relatedId="oai:arXiv.org:1205.1580" dataciteId="10.6084/M9.FIGSHARE.1210" namespacePrefix="od________18"/> |
|
24 |
<record relatedId="oai:arXiv.org:1205.1989" dataciteId="10.6084/M9.FIGSHARE.24460" namespacePrefix="od________18"/> |
|
25 |
<record relatedId="oai:arXiv.org:1205.2081" dataciteId="10.6084/M9.FIGSHARE.1210" namespacePrefix="od________18"/> |
|
26 |
<record relatedId="oai:arXiv.org:1205.2320" dataciteId="10.6084/M9.FIGSHARE.55761" namespacePrefix="od________18"/> |
|
27 |
<record relatedId="oai:arXiv.org:1205.2851" dataciteId="10.6084/M9.FIGSHARE.53842" namespacePrefix="od________18"/> |
|
28 |
<record relatedId="oai:arXiv.org:1205.3347" dataciteId="10.6084/M9.FIGSHARE.1210" namespacePrefix="od________18"/> |
|
29 |
<record relatedId="oai:arXiv.org:1205.3983" dataciteId="10.6084/M9.FIGSHARE.24460" namespacePrefix="od________18"/> |
|
30 |
<record relatedId="oai:arXiv.org:1205.6312" dataciteId="10.6084/M9.FIGSHARE.1210" namespacePrefix="od________18"/> |
|
31 |
<record relatedId="oai:arXiv.org:1205.6790" dataciteId="10.6084/M9.FIGSHARE.4394" namespacePrefix="od________18"/> |
|
32 |
<record relatedId="oai:arXiv.org:1205.7060" dataciteId="10.6084/M9.FIGSHARE.1210" namespacePrefix="od________18"/> |
|
33 |
<record relatedId="oai:arXiv.org:1206.0333" dataciteId="10.6084/M9.FIGSHARE.1210" namespacePrefix="od________18"/> |
|
34 |
<record relatedId="oai:arXiv.org:1206.0338" dataciteId="10.6084/M9.FIGSHARE.1210" namespacePrefix="od________18"/> |
|
35 |
<record relatedId="oai:arXiv.org:1206.1194" dataciteId="10.6084/M9.FIGSHARE.1210" namespacePrefix="od________18"/> |
|
36 |
<record relatedId="oai:arXiv.org:1206.2333" dataciteId="10.6084/M9.FIGSHARE.1210" namespacePrefix="od________18"/> |
|
37 |
<record relatedId="oai:arXiv.org:1206.2372" dataciteId="10.6084/M9.FIGSHARE.1210" namespacePrefix="od________18"/> |
|
38 |
<record relatedId="oai:arXiv.org:1206.3627" dataciteId="10.6084/M9.FIGSHARE.1210" namespacePrefix="od________18"/> |
|
39 |
<record relatedId="oai:arXiv.org:1206.5819" dataciteId="10.6084/M9.FIGSHARE.26373" namespacePrefix="od________18"/> |
|
40 |
<record relatedId="oai:arXiv.org:1206.6627" dataciteId="10.6084/M9.FIGSHARE.26086" namespacePrefix="od________18"/> |
|
41 |
<record relatedId="oai:arXiv.org:1207.1244" dataciteId="10.6084/M9.FIGSHARE.4394" namespacePrefix="od________18"/> |
|
42 |
<record relatedId="oai:arXiv.org:1207.1962" dataciteId="10.6084/M9.FIGSHARE.26373" namespacePrefix="od________18"/> |
|
43 |
<record relatedId="oai:arXiv.org:1207.2440" dataciteId="10.6084/M9.FIGSHARE.1210" namespacePrefix="od________18"/> |
|
44 |
<record relatedId="oai:arXiv.org:1207.3438" dataciteId="10.6084/M9.FIGSHARE.1210" namespacePrefix="od________18"/> |
|
45 |
<record relatedId="oai:arXiv.org:1207.3538" dataciteId="10.6084/M9.FIGSHARE.1210" namespacePrefix="od________18"/> |
|
46 |
<record relatedId="oai:arXiv.org:1207.5371" dataciteId="10.6084/M9.FIGSHARE.1210" namespacePrefix="od________18"/> |
|
47 |
<record relatedId="oai:arXiv.org:1207.5887" dataciteId="10.6084/M9.FIGSHARE.638007" namespacePrefix="od________18"/> |
|
48 |
<record relatedId="oai:arXiv.org:1207.5947" dataciteId="10.6084/M9.FIGSHARE.1210" namespacePrefix="od________18"/> |
|
49 |
<record relatedId="oai:arXiv.org:1208.1065" dataciteId="10.6084/M9.FIGSHARE.1210" namespacePrefix="od________18"/> |
Also available in: Unified diff
[maven-release-plugin] copy for tag dnet-openaireplus-workflows-5.0.10