Project

General

Profile

« Previous | Next » 

Revision 40247

dynamic mapping in workflow definition, refactor, introduced new dedup workflows

View differences:

applicationContext-workflow.properties
1 1
dnet.dedup.db.name = dnet_dedup
2 2

  
3
dnet.dedup.index.format = STDL
4
dnet.dedup.index.collection = STDL-index-dedup
3
dnet.dedup.index.format = OPENAIRE
4
dnet.dedup.index.collection = OPENAIRE-index-dedup
5 5

  
6 6
dnet.openaire.model.relclasses.xquery = distinct-values(for $x in /RESOURCE_PROFILE[./HEADER/RESOURCE_TYPE/@value='OntologyDSResourceType']//TERM return concat($x/@code/string(), ":", $x//RELATION[./@type = 'inverseOf']/@code/string()))
7 7

  
......
9 9

  
10 10
dnet.openaire.dataload.dstypemap.xquery = for $x in /RESOURCE_PROFILE[./HEADER/RESOURCE_TYPE/@value = 'RepositoryServiceResourceType' and ./HEADER/RESOURCE_KIND/@value = 'RepositoryServiceResources'] return concat('"', $x/BODY/CONFIGURATION/EXTRA_FIELDS/FIELD[./key/text() = 'NamespacePrefix']/value/text(), '" : "', $x/BODY/CONFIGURATION/DATASOURCE_TYPE/text(), '"')
11 11

  
12
dnet.openaire.dataload.datasource.mdstores.xquery = let $apiId:=/RESOURCE_PROFILE[./HEADER/RESOURCE_TYPE/@value = 'RepositoryServiceResourceType' and ./HEADER/RESOURCE_KIND/@value = 'RepositoryServiceResources' and ./BODY/CONFIGURATION/DATASOURCE_ORIGINAL_ID/text() = '%s' ]//INTERFACE/@id/string() return /RESOURCE_PROFILE[.//WORKFLOW_NAME='transform' and .//PARAM[@name='api']=$apiId]//NODE[@name='storeRecords']//PARAM[@name='mdId']/string()
12
dnet.openaire.dataload.datasource.mdstores.xquery = let $apiId:=/RESOURCE_PROFILE[./HEADER/RESOURCE_TYPE/@value = 'RepositoryServiceResourceType' and ./HEADER/RESOURCE_KIND/@value = 'RepositoryServiceResources' and ./BODY/CONFIGURATION/DATASOURCE_ORIGINAL_ID/text() = '%s' ]//INTERFACE/@id/string() return /RESOURCE_PROFILE[.//WORKFLOW_NAME='transform' and .//PARAM[@name='api']=$apiId]//NODE[@name='storeRecords']//PARAM[@name='mdId']/string()

Also available in: Unified diff