Project

General

Profile

« Previous | Next » 

Revision 32115

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

View differences:

modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-1.1.8/deploy.info
1
{"type_source": "SVN", "goal": "package -U -T 4C source:jar", "url": "http://svn-public.driver.research-infrastructures.eu/driver/dnet40/modules/dnet-openaireplus-workflows/trunk/", "deploy_repository": "dnet4-snapshots", "version": "4", "mail": "sandro.labruzzo@isti.cnr.it,michele.artini@isti.cnr.it, claudio.atzori@isti.cnr.it, alessia.bardi@isti.cnr.it", "deploy_repository_url": "http://maven.research-infrastructures.eu/nexus/content/repositories/dnet4-snapshots", "name": "dnet-openaireplus-workflows"}
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-1.1.8/src/test/java/eu/dnetlib/msro/openaireplus/workflows/hbase/Datasource2HbaseTest.java
1
package eu.dnetlib.msro.openaireplus.workflows.hbase;
2

  
3
import java.io.StringReader;
4

  
5
import org.apache.commons.codec.binary.Base64;
6
import org.apache.commons.io.IOUtils;
7
import org.dom4j.Document;
8
import org.dom4j.io.SAXReader;
9
import org.junit.Test;
10
import org.springframework.core.io.ClassPathResource;
11
import org.springframework.core.io.Resource;
12

  
13
import eu.dnetlib.data.proto.OafProtos.Oaf;
14
import eu.dnetlib.miscutils.functional.xml.ApplyXslt;
15

  
16
public class Datasource2HbaseTest {
17

  
18
	private ApplyXslt xslt = new ApplyXslt(new ClassPathResource("/eu/dnetlib/msro/openaireplus/workflows/hbase/datasources_2_hbase.xsl"));
19

  
20
	private SAXReader reader = new SAXReader();
21
	
22
	@Test
23
	public void testXslt() throws Exception {
24
		
25
		final Resource record = new ClassPathResource("/eu/dnetlib/msro/openaireplus/workflows/hbase/datasource_example_1.xml");
26
		final String input = IOUtils.toString(record.getInputStream());
27
		
28
		System.out.println("\n\n*********************************************");
29
		System.out.println("Input XML");
30
		System.out.println(input);
31
		
32
		final String res = xslt.evaluate(input);
33
				
34
		System.out.println("\n\n*********************************************");
35
		System.out.println("Output XML");
36
		System.out.println(res);;
37
		
38
		final Document doc = reader.read(new StringReader(res));
39
		final Oaf proto = Oaf.parseFrom(Base64.decodeBase64(doc.valueOf("//QUALIFIER[@name='body']")));
40
		
41
		System.out.println("\n\n*********************************************");
42
		System.out.println("Decoded Proto");
43
		System.out.println(proto);;
44
	
45
	}
46

  
47
}
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-1.1.8/src/test/java/eu/dnetlib/msro/openaireplus/workflows/hbase/ClaimRels2HbaseTest.java
1
package eu.dnetlib.msro.openaireplus.workflows.hbase;
2

  
3
import java.io.StringReader;
4

  
5
import org.apache.commons.codec.binary.Base64;
6
import org.apache.commons.io.IOUtils;
7
import org.dom4j.Document;
8
import org.dom4j.io.SAXReader;
9
import org.junit.Test;
10
import org.springframework.core.io.ClassPathResource;
11
import org.springframework.core.io.Resource;
12

  
13
import eu.dnetlib.data.proto.OafProtos.Oaf;
14
import eu.dnetlib.miscutils.functional.xml.ApplyXslt;
15

  
16
public class ClaimRels2HbaseTest {
17

  
18
	private ApplyXslt xslt = new ApplyXslt(new ClassPathResource("/eu/dnetlib/msro/openaireplus/workflows/hbase/claimrels_2_hbase.xsl"));
19

  
20
	private SAXReader reader = new SAXReader();
21

  
22
	@Test
23
	public void testXslt() throws Exception {
24

  
25
		final Resource record = new ClassPathResource("/eu/dnetlib/msro/openaireplus/workflows/hbase/claimrel_2.xml");
26
		final String input = IOUtils.toString(record.getInputStream());
27

  
28
		System.out.println("\n\n*********************************************");
29
		System.out.println("Input XML");
30
		System.out.println(input);
31

  
32
		final String res = xslt.evaluate(input);
33

  
34
		System.out.println("\n\n*********************************************");
35
		System.out.println("Output XML");
36
		System.out.println(res);;
37

  
38
		final Document doc = reader.read(new StringReader(res));
39
		final Oaf proto = Oaf.parseFrom(Base64.decodeBase64(doc.valueOf("//ROW[@columnFamily='resultProject_outcome_isProducedBy']/QUALIFIER")));
40

  
41
		System.out.println("\n\n*********************************************");
42
		System.out.println("Decoded Proto");
43
		System.out.println(proto);;
44

  
45
	}
46

  
47
}
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-1.1.8/src/test/java/eu/dnetlib/msro/openaireplus/workflows/index/OpenaireLayoutToRecordStylesheetTest.java
1
package eu.dnetlib.msro.openaireplus.workflows.index;
2

  
3
import static org.junit.Assert.assertFalse;
4
import static org.junit.Assert.assertNotNull;
5

  
6
import java.io.IOException;
7
import java.io.InputStream;
8
import java.io.StringReader;
9
import java.io.StringWriter;
10

  
11
import javax.xml.transform.Transformer;
12
import javax.xml.transform.TransformerException;
13
import javax.xml.transform.TransformerFactory;
14
import javax.xml.transform.stream.StreamResult;
15
import javax.xml.transform.stream.StreamSource;
16

  
17
import org.apache.commons.io.IOUtils;
18
import org.apache.solr.common.SolrInputDocument;
19
import org.junit.Test;
20
import org.springframework.core.io.ClassPathResource;
21

  
22
import eu.dnetlib.enabling.is.lookup.rmi.ISLookUpException;
23
import eu.dnetlib.functionality.index.solr.feed.StreamingInputDocumentFactory;
24
import eu.dnetlib.miscutils.datetime.DateUtils;
25
import eu.dnetlib.miscutils.functional.xml.ApplyXslt;
26
import eu.dnetlib.miscutils.functional.xml.IndentXmlString;
27

  
28
public class OpenaireLayoutToRecordStylesheetTest {
29

  
30
	private static final String OPENAIRE_LAYOUT_TO_RECORD_STYLESHEET_XSL = "/eu/dnetlib/msro/openaireplus/workflows/index/openaireLayoutToRecordStylesheet.xsl";
31

  
32
	private static final String MDFORMAT_FIELDS = "/eu/dnetlib/msro/openaireplus/workflows/index/fields.xml";
33

  
34
	private static final String OAF_RECORD = "/eu/dnetlib/msro/openaireplus/workflows/index/oafRecord.xml";
35

  
36
	@Test
37
	public void test1() throws ISLookUpException, IOException, TransformerException {
38
		String xsl = prepareXslt("DMF");
39
		assertNotNull(xsl);
40
		assertFalse(xsl.isEmpty());
41

  
42
		System.out.println(xsl);
43

  
44
		ApplyXslt xslt = new ApplyXslt(xsl);
45

  
46
		String indexRecord = xslt.evaluate(readFromClasspath(OAF_RECORD));
47

  
48
		assertNotNull(indexRecord);
49
		assertFalse(indexRecord.isEmpty());
50

  
51
		System.out.println(IndentXmlString.apply(indexRecord));
52

  
53
		StreamingInputDocumentFactory factory = new StreamingInputDocumentFactory();
54

  
55
		SolrInputDocument doc = factory.parseDocument(DateUtils.now_ISO8601(), indexRecord, "dsId", "dnetResult");
56
		assertNotNull(doc);
57
		assertFalse(doc.isEmpty());
58

  
59
		// System.out.println(doc);
60

  
61
	}
62

  
63
	protected String prepareXslt(final String format) throws ISLookUpException, IOException, TransformerException {
64

  
65
		final TransformerFactory factory = TransformerFactory.newInstance();
66

  
67
		final Transformer layoutTransformer = factory.newTransformer(streamSource(OPENAIRE_LAYOUT_TO_RECORD_STYLESHEET_XSL));
68

  
69
		final StreamResult layoutToXsltXslt = new StreamResult(new StringWriter());
70

  
71
		layoutTransformer.setParameter("format", format);
72
		layoutTransformer.transform(streamSource(MDFORMAT_FIELDS), layoutToXsltXslt);
73

  
74
		return layoutToXsltXslt.getWriter().toString();
75
	}
76

  
77
	private StreamSource streamSource(final String s) throws IOException {
78
		return new StreamSource(new StringReader(readFromClasspath(s)));
79
	}
80

  
81
	private String readFromClasspath(final String s) throws IOException {
82
		ClassPathResource resource = new ClassPathResource(s);
83
		InputStream inputStream = resource.getInputStream();
84
		return IOUtils.toString(inputStream);
85
	}
86

  
87
}
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-1.1.8/src/test/resources/eu/dnetlib/msro/openaireplus/workflows/hbase/datasource_example_1.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<ROW>
3
	<FIELD name="subjects">
4
		<ITEM>Multidisciplinary###dnet:od_subjects@@@OpenDOAR
5
			subjects@@@dnet:subject_classification_typologies@@@dnet:subject_classification_typologies
6
		</ITEM>
7
	</FIELD>
8
	<FIELD isNull="true" name="databaseaccessrestriction" />
9
	<FIELD isNull="true" name="serviceprovider" />
10
	<FIELD name="contactemail">susan.matveyeva@wichita.edu</FIELD>
11
	<FIELD name="collectedfromname">OpenDOAR</FIELD>
12
	<FIELD name="datasourceid">opendoar____::1097</FIELD>
13
	<FIELD isNull="true" name="versioning" />
14
	<FIELD name="deletedbyinference">false</FIELD>
15
	<FIELD name="policies">
16
		<ITEM isNull="true" />
17
	</FIELD>
18
	<FIELD name="odcontenttypes">
19
		<ITEM>Journal articles</ITEM>
20
		<ITEM>Conference and workshop papers</ITEM>
21
		<ITEM>Theses and dissertations</ITEM>
22
		<ITEM>Multimedia and audio</ITEM>
23
		<ITEM>visual materials</ITEM>
24
	</FIELD>
25
	<FIELD isNull="true" name="datauploadtype" />
26
	<FIELD name="provenanceaction">sysimport:crosswalk:entityregistry@@@sysimport:crosswalk:entityregistry@@@dnet:provenanceActions@@@dnet:provenanceActions
27
	</FIELD>
28
	<FIELD isNull="true" name="dataprovider" />
29
	<FIELD name="odnumberofitems">5784</FIELD>
30
	<FIELD name="namespaceprefix">od______1097</FIELD>
31
	<FIELD name="description">This is an institutional repository providing access
32
		to the research output of Wichita State University employees and
33
		students.</FIELD>
34
	<FIELD isNull="true" name="citationguidelineurl" />
35
	<FIELD name="odlanguages">
36
		<ITEM>English</ITEM>
37
	</FIELD>
38
	<FIELD name="longitude">-97.2935</FIELD>
39
	<FIELD isNull="true" name="pidsystems" />
40
	<FIELD name="englishname">SOAR</FIELD>
41
	<FIELD isNull="true" name="certificates" />
42
	<FIELD isNull="true" name="releaseenddate" />
43
	<FIELD isNull="true" name="odpolicies" />
44
	<FIELD name="trust">0.9</FIELD>
45
	<FIELD isNull="true" name="databaseaccesstype" />
46
	<FIELD name="officialname">Shocker Open Access Repository</FIELD>
47
	<FIELD name="pid">
48
		<ITEM isNull="true" />
49
	</FIELD>
50
	<FIELD name="accessinfopackage">
51
		<ITEM>http://test/oai/1</ITEM>
52
		<ITEM>http://test/oai/2</ITEM>
53
		<ITEM isNull="true" />
54
	</FIELD>
55
	<FIELD name="inferred">false</FIELD>
56
	<FIELD name="openairecompatibility">
57
		<ITEM>UNKNOWN@@@UNKNOWN@@@dnet:compatibilityLevel@@@dnet:compatibilityLevel
58
		</ITEM>
59
	</FIELD>
60
	<FIELD name="datasourcetype">pubsrepository::unknown@@@Publication
61
		Repository@@@dnet:datasource_typologies@@@dnet:datasource_typologies
62
	</FIELD>
63
	<FIELD name="collectedfromid">openaire____::opendoar</FIELD>
64
	<FIELD isNull="true" name="datauploadrestriction" />
65
	<FIELD isNull="true" name="dateofvalidation" />
66
	<FIELD name="odnumberofitemsdate">2014-07-10</FIELD>
67
	<FIELD isNull="true" name="logourl" />
68
	<FIELD name="websiteurl">http://soar.wichita.edu/</FIELD>
69
	<FIELD isNull="true" name="releasestartdate" />
70
	<FIELD isNull="true" name="inferenceprovenance" />
71
	<FIELD isNull="true" name="qualitymanagementkind" />
72
	<FIELD name="latitude">37.719</FIELD>
73
	<FIELD name="dateofcollection">2013-05-28</FIELD>
74
	<FIELD isNull="true" name="missionstatementurl" />
75
</ROW>
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-1.1.8/src/test/resources/eu/dnetlib/msro/openaireplus/workflows/hbase/datasource_example_2.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<ROW>
3
	<FIELD name="subjects">
4
		<ITEM isNull="true" />
5
	</FIELD>
6
	<FIELD isNull="true" name="databaseaccessrestriction" />
7
	<FIELD name="serviceprovider">false</FIELD>
8
	<FIELD name="contactemail">fesarf@ertt.gr</FIELD>
9
	<FIELD name="collectedfromname">OpenAIRE</FIELD>
10
	<FIELD name="datasourceid">journals____::issn12332112</FIELD>
11
	<FIELD name="versioning">false</FIELD>
12
	<FIELD name="deletedbyinference">false</FIELD>
13
	<FIELD name="policies">
14
		<ITEM isNull="true" />
15
	</FIELD>
16
	<FIELD name="odcontenttypes" />
17
	<FIELD isNull="true" name="datauploadtype" />
18
	<FIELD name="provenanceaction">user:insert@@@user:insert@@@dnet:provenanceActions@@@dnet:provenanceActions
19
	</FIELD>
20
	<FIELD name="dataprovider">false</FIELD>
21
	<FIELD isNull="true" name="odnumberofitems" />
22
	<FIELD name="namespaceprefix">issn12332112</FIELD>
23
	<FIELD name="description">ertert</FIELD>
24
	<FIELD isNull="true" name="citationguidelineurl" />
25
	<FIELD name="odlanguages" />
26
	<FIELD name="longitude">23.733</FIELD>
27
	<FIELD isNull="true" name="pidsystems" />
28
	<FIELD name="englishname">ertrewrt</FIELD>
29
	<FIELD isNull="true" name="certificates" />
30
	<FIELD isNull="true" name="releaseenddate" />
31
	<FIELD isNull="true" name="odpolicies" />
32
	<FIELD name="trust">0.9</FIELD>
33
	<FIELD isNull="true" name="databaseaccesstype" />
34
	<FIELD name="officialname">dfadf</FIELD>
35
	<FIELD name="pid">
36
		<ITEM isNull="true" />
37
	</FIELD>
38
	<FIELD name="accessinfopackage">
39
		<ITEM isNull="true" />
40
	</FIELD>
41
	<FIELD name="inferred">false</FIELD>
42
	<FIELD name="openairecompatibility">
43
		<ITEM>files@@@files@@@dnet:compatibilityLevel@@@dnet:compatibilityLevel</ITEM>
44
		<ITEM>openaire3.0@@@openaire3.0@@@dnet:compatibilityLevel@@@dnet:compatibilityLevel</ITEM>
45
	</FIELD>
46
	<FIELD name="datasourcetype">aggregator::pubsrepository::journals@@@Aggregator/Publisher
47
		of Journals@@@dnet:datasource_typologies@@@dnet:datasource_typologies
48
	</FIELD>
49
	<FIELD name="collectedfromid">infrastruct_::openaire</FIELD>
50
	<FIELD isNull="true" name="datauploadrestriction" />
51
	<FIELD isNull="true" name="dateofvalidation" />
52
	<FIELD isNull="true" name="odnumberofitemsdate" />
53
	<FIELD name="logourl">ter</FIELD>
54
	<FIELD name="websiteurl">ertet</FIELD>
55
	<FIELD isNull="true" name="releasestartdate" />
56
	<FIELD isNull="true" name="inferenceprovenance" />
57
	<FIELD isNull="true" name="qualitymanagementkind" />
58
	<FIELD name="latitude">37.983</FIELD>
59
	<FIELD name="dateofcollection">2014-03-17</FIELD>
60
	<FIELD isNull="true" name="missionstatementurl" />
61
</ROW>
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-1.1.8/src/test/resources/eu/dnetlib/msro/openaireplus/workflows/hbase/claimrel_1.xml
1
 <RELATIONS>
2
     <RELATION type='resultProject' source='od________18::79cd090c742e578a26e4130214520715' target='corda_______::2ab57d4fb4e402588c5d51a3c7fea711' />
3
 </RELATIONS>
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-1.1.8/src/test/resources/eu/dnetlib/msro/openaireplus/workflows/hbase/claimrel_2.xml
1
 <RELATIONS>
2
     <RELATION type='resultProject' source='50|crossref____::bd33882ef7ba0eb27ab061ea2cb8e53b' target='40|corda_______::b2c0709c7db02ec089ac7def8e88ad2e' />
3
 </RELATIONS>
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-1.1.8/src/test/resources/eu/dnetlib/msro/openaireplus/workflows/index/oafRecord.xml
1
<?xml version="1.0"?>
2
<record>
3
	<result xmlns:dri="http://www.driver-repository.eu/namespace/dri"
4
		xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
5
		<header>
6
			<dri:objIdentifier>dedup_wf_001::02eff513496d8174f7526c62ac0a3967</dri:objIdentifier>
7
			<dri:dateOfCollection>2014-04-09T08:42:32Z</dri:dateOfCollection>
8
			<counters>
9
				<counter_authorship value="4"/>
10
				<counter_similarity value="20"/>
11
				<counter_dedup value="2"/>
12
			</counters>
13
		</header>
14
		<metadata>
15
			<oaf:entity xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
16
				xmlns:oaf="http://namespace.openaire.eu/oaf"
17
				xsi:schemaLocation="http://namespace.openaire.eu/oaf http://www.openaire.eu/schema/0.2/oaf-0.2.xsd">
18
				<oaf:result>
19
					<subject classid="mesheuropmc" classname="mesheuropmc"
20
						schemeid="dnet:subject_classification_typologies"
21
						schemename="dnet:subject_classification_typologies" inferred="true"
22
						inferenceprovenance="iis::document_classes" provenanceaction="iis" trust="0.0099"
23
						>macromolecular substances</subject>
24
					<subject classid="keyword" classname="keyword" schemeid="dnet:result_subject"
25
						schemename="dnet:result_subject">[INFO:INFO_NI] Informatique/Réseaux et
26
						télécommunications</subject>
27
					<subject classid="arxiv" classname="arxiv" schemeid="dnet:subject_classification_typologies"
28
						schemename="dnet:subject_classification_typologies" inferred="true"
29
						inferenceprovenance="iis::document_classes" provenanceaction="iis" trust="0.0648">Computer
30
						Science::Information Theory</subject>
31
					<subject classid="mesheuropmc" classname="mesheuropmc"
32
						schemeid="dnet:subject_classification_typologies"
33
						schemename="dnet:subject_classification_typologies" inferred="true"
34
						inferenceprovenance="iis::document_classes" provenanceaction="iis" trust="0.0072">food and
35
						beverages</subject>
36
					<subject classid="ddc" classname="ddc" schemeid="dnet:subject_classification_typologies"
37
						schemename="dnet:subject_classification_typologies" inferred="true"
38
						inferenceprovenance="iis::document_classes" provenanceaction="iis" trust="0.0144"
39
						>Science::Mathematics</subject>
40
					<subject classid="arxiv" classname="arxiv" schemeid="dnet:subject_classification_typologies"
41
						schemename="dnet:subject_classification_typologies" inferred="true"
42
						inferenceprovenance="iis::document_classes" provenanceaction="iis" trust="0.0099">Computer
43
						Science::Performance</subject>
44
					<subject classid="arxiv" classname="arxiv" schemeid="dnet:subject_classification_typologies"
45
						schemename="dnet:subject_classification_typologies" inferred="true"
46
						inferenceprovenance="iis::document_classes" provenanceaction="iis" trust="0.0108">Computer
47
						Science::Networking and Internet Architecture</subject>
48
					<subject classid="wos" classname="wos" schemeid="dnet:subject_classification_typologies"
49
						schemename="dnet:subject_classification_typologies" inferred="true"
50
						inferenceprovenance="iis::document_classes" provenanceaction="iis" trust="0.0189"
51
						>PARASITOLOGY</subject>
52
					<subject classid="wos" classname="wos" schemeid="dnet:subject_classification_typologies"
53
						schemename="dnet:subject_classification_typologies" inferred="true"
54
						inferenceprovenance="iis::document_classes" provenanceaction="iis" trust="0.0162">AUTOMATION
55
						&amp; CONTROL SYSTEMS</subject>
56
					<subject classid="arxiv" classname="arxiv" schemeid="dnet:subject_classification_typologies"
57
						schemename="dnet:subject_classification_typologies" inferred="true"
58
						inferenceprovenance="iis::document_classes" provenanceaction="iis" trust="0.009"
59
						>Astrophysics::Cosmology and Extragalactic Astrophysics</subject>
60
					<subject classid="keyword" classname="keyword" schemeid="dnet:result_subject"
61
						schemename="dnet:result_subject">Computer Science - Information Theory</subject>
62
					<subject classid="ddc" classname="ddc" schemeid="dnet:subject_classification_typologies"
63
						schemename="dnet:subject_classification_typologies" inferred="true"
64
						inferenceprovenance="iis::document_classes" provenanceaction="iis" trust="0.0207"
65
						>Science::Astronomy</subject>
66
					<subject classid="mesheuropmc" classname="mesheuropmc"
67
						schemeid="dnet:subject_classification_typologies"
68
						schemename="dnet:subject_classification_typologies" inferred="true"
69
						inferenceprovenance="iis::document_classes" provenanceaction="iis" trust="0.0081"
70
						>education</subject>
71
					<subject classid="wos" classname="wos" schemeid="dnet:subject_classification_typologies"
72
						schemename="dnet:subject_classification_typologies" inferred="true"
73
						inferenceprovenance="iis::document_classes" provenanceaction="iis" trust="0.0225">ENGINEERING,
74
						ELECTRICAL &amp; ELECTRONIC</subject>
75
					<subject classid="wos" classname="wos" schemeid="dnet:subject_classification_typologies"
76
						schemename="dnet:subject_classification_typologies" inferred="true"
77
						inferenceprovenance="iis::document_classes" provenanceaction="iis" trust="0.0423"
78
						>VIROLOGY</subject>
79
					<subject classid="ddc" classname="ddc" schemeid="dnet:subject_classification_typologies"
80
						schemename="dnet:subject_classification_typologies" inferred="true"
81
						inferenceprovenance="iis::document_classes" provenanceaction="iis" trust="0.0153"
82
						>Technology::Engineering</subject>
83
					<subject classid="keyword" classname="keyword" schemeid="dnet:result_subject"
84
						schemename="dnet:result_subject">[INFO:INFO_NI] Computer Science/Networking and Internet
85
						Architecture</subject>
86
					<subject classid="arxiv" classname="arxiv" schemeid="dnet:subject_classification_typologies"
87
						schemename="dnet:subject_classification_typologies" inferred="true"
88
						inferenceprovenance="iis::document_classes" provenanceaction="iis" trust="0.0108"
89
						>Astrophysics::High Energy Astrophysical Phenomena</subject>
90
					<subject classid="wos" classname="wos" schemeid="dnet:subject_classification_typologies"
91
						schemename="dnet:subject_classification_typologies" inferred="true"
92
						inferenceprovenance="iis::document_classes" provenanceaction="iis" trust="0.0738"
93
						>TELECOMMUNICATIONS</subject>
94
					<subject classid="mesheuropmc" classname="mesheuropmc"
95
						schemeid="dnet:subject_classification_typologies"
96
						schemename="dnet:subject_classification_typologies" inferred="true"
97
						inferenceprovenance="iis::document_classes" provenanceaction="iis" trust="0.0063"
98
						>fungi</subject>
99
					<subject classid="mesheuropmc" classname="mesheuropmc"
100
						schemeid="dnet:subject_classification_typologies"
101
						schemename="dnet:subject_classification_typologies" inferred="true"
102
						inferenceprovenance="iis::document_classes" provenanceaction="iis" trust="0.0081"
103
						>humanities</subject>
104
					<subject classid="ddc" classname="ddc" schemeid="dnet:subject_classification_typologies"
105
						schemename="dnet:subject_classification_typologies" inferred="true"
106
						inferenceprovenance="iis::document_classes" provenanceaction="iis" trust="0.0171">History
107
						&amp; geography::History of Europe</subject>
108
					<subject classid="keyword" classname="keyword" schemeid="dnet:result_subject"
109
						schemename="dnet:result_subject">Computer Science - Computer Science and Game Theory</subject>
110
					<subject classid="ddc" classname="ddc" schemeid="dnet:subject_classification_typologies"
111
						schemename="dnet:subject_classification_typologies" inferred="true"
112
						inferenceprovenance="iis::document_classes" provenanceaction="iis" trust="0.0252"
113
						>Technology::Technology</subject>
114
					<title classid="main title" classname="main title" schemeid="dnet:dataCite_title"
115
						schemename="dnet:dataCite_title">Opportunistic Interference Alignment in MIMO Interference
116
						Channels</title>
117
					<dateofacceptance>2008-06-23</dateofacceptance>
118
					<resulttype classid="publication" classname="publication" schemeid="dnet:result_typologies"
119
						schemename="dnet:result_typologies"/>
120
					<language classid="eng" classname="English" schemeid="dnet:languages"
121
						schemename="dnet:languages"/>
122
					<description> We present two interference alignment techniques such that an opportunistic
123
						point-to-point multiple input multiple output (MIMO) link can reuse, without generating any
124
						additional interference, the same frequency band of a similar pre-existing primary link. In
125
						this scenario, we exploit the fact that under power constraints, although each radio maximizes
126
						independently its rate by water-filling on their channel transfer matrix singular values,
127
						frequently, not all of them are used. Therefore, by aligning the interference of the
128
						opportunistic radio it is possible to transmit at a significant rate while insuring
129
						zero-interference on the pre-existing link. We propose a linear pre-coder for a perfect
130
						interference alignment and a power allocation scheme which maximizes the individual data rate
131
						of the secondary link. Our numerical results show that significant data rates are achieved
132
						even for a reduced number of antennas. </description>
133
					<source>PIRMC 2008</source>
134
					<source>Proceedings of the IEEE 19th International Symposium on Personal, Indoor and Mobile
135
						Radio Communications</source>
136
					<relevantdate classid="" classname="" schemeid="" schemename=""/>
137
					<publisher/>
138
					<embargoenddate/>
139
					<storagedate/>
140
					<fulltext/>
141
					<resourcetype classid="" classname="" schemeid="" schemename=""/>
142
					<device/>
143
					<size/>
144
					<format/>
145
					<version/>
146
					<lastmetadataupdate/>
147
					<metadataversionnumber/>
148
					<originalId>oai:hal-supelec.archives-ouvertes.fr:hal-00335246</originalId>
149
					<originalId>oai:arXiv.org:0806.3653</originalId>
150
					<collectedfrom name="INRIA a CCSD electronic archive server"
151
						id="opendoar____::9766527f2b5d3e95d4a733fcfb77bd7e"/>
152
					<collectedfrom name="arXiv.org e-Print Archive"
153
						id="opendoar____::6f4922f45568161a8cdf4ad2299f6d23"/>
154
					<pid classid="doi" classname="doi" schemeid="dnet:pid_types" schemename="dnet:pid_types"
155
						>10.1109/PIMRC.2008.4699872</pid>
156
					<pid classid="oai" classname="oai" schemeid="dnet:pid_types" schemename="dnet:pid_types"
157
						>oai:hal-supelec.archives-ouvertes.fr:hal-00335246</pid>
158
					<pid classid="oai" classname="oai" schemeid="dnet:pid_types" schemename="dnet:pid_types"
159
						>oai:arXiv.org:0806.3653</pid>
160
					<bestlicense classid="OPEN" classname="Open Access" schemeid="dnet:access_modes"
161
						schemename="dnet:access_modes"/>
162
					<datainfo>
163
						<inferred>true</inferred>
164
						<deletedbyinference>false</deletedbyinference>
165
						<trust>0.9</trust>
166
						<inferenceprovenance>dedup</inferenceprovenance>
167
						<provenanceaction classid="sysimport:crosswalk:repository"
168
							classname="sysimport:crosswalk:repository" schemeid="dnet:provenanceActions"
169
							schemename="dnet:provenanceActions"/>
170
					</datainfo>
171
					<rels>
172
						<rel inferred="true" trust="0.9" inferenceprovenance="iis::document_similarities_standard"
173
							provenanceaction="iis">
174
							<to class="hasAmongTopNSimilarDocuments" scheme="dnet:result_result_relations" type="result"
175
								>dedup_wf_001::7855a07e1dcf3d1655b9f1bc2e5ef02f</to>
176
							<similarity>0.38579053</similarity>
177
							<type>STANDARD</type>
178
							<title classid="main title" classname="main title" schemeid="dnet:dataCite_title"
179
								schemename="dnet:dataCite_title">Subsequent reproductive outcome in women who have
180
								experienced a potentially life-threatening condition or a maternal near-miss during
181
								pregnancy</title>
182
							<dateofacceptance>2011-01-01</dateofacceptance>
183
							<publisher>Hospital das Clínicas da Faculdade de Medicina da Universidade de São
184
								Paulo</publisher>
185
							<resulttype classid="publication" classname="publication" schemeid="dnet:result_typologies"
186
								schemename="dnet:result_typologies"/>
187
						</rel>
188
						<rel inferred="true" trust="0.9" inferenceprovenance="iis::document_similarities_standard"
189
							provenanceaction="iis">
190
							<to class="hasAmongTopNSimilarDocuments" scheme="dnet:result_result_relations" type="result"
191
								>od_______908::480ece695f9ef2af80ffd2fda917fb00</to>
192
							<similarity>0.6165079</similarity>
193
							<type>STANDARD</type>
194
							<title classid="main title" classname="main title" schemeid="dnet:dataCite_title"
195
								schemename="dnet:dataCite_title">The psychiatric discharge summary: a tool for management
196
								and audit.</title>
197
							<dateofacceptance>1991-01-01</dateofacceptance>
198
							<resulttype classid="publication" classname="publication" schemeid="dnet:result_typologies"
199
								schemename="dnet:result_typologies"/>
200
						</rel>
201
						<rel inferred="true" trust="0.9" inferenceprovenance="dedup (BuildRoots p:entityToRoot)"
202
							provenanceaction="sysimport:crosswalk:repository">
203
							<to class="hasAuthor" scheme="dnet:personroles" type="person"
204
								>dedup_wf_001::10b97b2ab102b09177bc2bc6d46e756b</to>
205
							<ranking>1</ranking>
206
							<fullname>Perlaza, Samir M.</fullname>
207
						</rel>
208
						<rel inferred="true" trust="0.9" inferenceprovenance="iis::document_similarities_standard"
209
							provenanceaction="iis">
210
							<to class="hasAmongTopNSimilarDocuments" scheme="dnet:result_result_relations" type="result"
211
								>doajarticles::29b8dbbaef3873d36cf0f484685e7f5b</to>
212
							<similarity>0.31480196</similarity>
213
							<type>STANDARD</type>
214
							<title classid="main title" classname="main title" schemeid="dnet:dataCite_title"
215
								schemename="dnet:dataCite_title">Is intravenous paracetamol a useful adjunct for
216
								intraoperative pain?</title>
217
							<dateofacceptance>2012-01-01</dateofacceptance>
218
							<publisher>LIPhealth</publisher>
219
							<resulttype classid="publication" classname="publication" schemeid="dnet:result_typologies"
220
								schemename="dnet:result_typologies"/>
221
						</rel>
222
						<rel inferred="true" trust="0.9" inferenceprovenance="iis::document_similarities_standard"
223
							provenanceaction="iis">
224
							<to class="hasAmongTopNSimilarDocuments" scheme="dnet:result_result_relations" type="result"
225
								>od_______258::ba7a62facead7b7c31939d4af18828d2</to>
226
							<similarity>0.4225903</similarity>
227
							<type>STANDARD</type>
228
							<title classid="main title" classname="main title" schemeid="dnet:dataCite_title"
229
								schemename="dnet:dataCite_title">FACTORS DETERMINING CUSTOMERS’ ADOPTION OF INTERNET BANKING
230
								: A Quantitative Study of Swedish Customers</title>
231
							<dateofacceptance>2012-01-01</dateofacceptance>
232
							<publisher>Mälardalens högskola, Akademin för hållbar samhälls- och
233
								teknikutveckling</publisher>
234
							<resulttype classid="publication" classname="publication" schemeid="dnet:result_typologies"
235
								schemename="dnet:result_typologies"/>
236
						</rel>
237
						<rel inferred="true" trust="0.9" inferenceprovenance="dedup (BuildRoots p:entityToRoot)"
238
							provenanceaction="sysimport:crosswalk:repository">
239
							<to class="hasAuthor" scheme="dnet:personroles" type="person"
240
								>od_______165::4ec9df82781e9d9acfffd564b4f1ab4f</to>
241
							<ranking>4</ranking>
242
							<fullname>Chauffray, Jean-marie</fullname>
243
						</rel>
244
						<rel inferred="true" trust="0.9" inferenceprovenance="iis::document_similarities_standard"
245
							provenanceaction="iis">
246
							<to class="hasAmongTopNSimilarDocuments" scheme="dnet:result_result_relations" type="result"
247
								>doajarticles::9172421e3e16e3a979fa266e53e112ec</to>
248
							<similarity>0.31450638</similarity>
249
							<type>STANDARD</type>
250
							<title classid="main title" classname="main title" schemeid="dnet:dataCite_title"
251
								schemename="dnet:dataCite_title">Music Preferences, Music Engagement and Healing</title>
252
							<dateofacceptance>2013-01-01</dateofacceptance>
253
							<publisher>IACSIT Press</publisher>
254
							<resulttype classid="publication" classname="publication" schemeid="dnet:result_typologies"
255
								schemename="dnet:result_typologies"/>
256
						</rel>
257
						<rel inferred="true" trust="0.9" inferenceprovenance="iis::document_similarities_standard"
258
							provenanceaction="iis">
259
							<to class="hasAmongTopNSimilarDocuments" scheme="dnet:result_result_relations" type="result"
260
								>od______1110::c540c949e01989add256eaea7caf0642</to>
261
							<similarity>0.4920931</similarity>
262
							<type>STANDARD</type>
263
							<title classid="main title" classname="main title" schemeid="dnet:dataCite_title"
264
								schemename="dnet:dataCite_title">Linear pre-coding performance in measured very-large MIMO
265
								channels</title>
266
							<dateofacceptance>2011-01-01</dateofacceptance>
267
							<publisher>IEEE</publisher>
268
							<resulttype classid="publication" classname="publication" schemeid="dnet:result_typologies"
269
								schemename="dnet:result_typologies"/>
270
						</rel>
271
						<rel inferred="true" trust="0.9" inferenceprovenance="iis::document_similarities_standard"
272
							provenanceaction="iis">
273
							<to class="hasAmongTopNSimilarDocuments" scheme="dnet:result_result_relations" type="result"
274
								>doajarticles::3640465a6db0f1fcee4616835fb77c7c</to>
275
							<similarity>0.31721002</similarity>
276
							<type>STANDARD</type>
277
							<title classid="main title" classname="main title" schemeid="dnet:dataCite_title"
278
								schemename="dnet:dataCite_title">THE ROLE OF ADVERSE LIFESTYLE CHANGES IN THE CAUSATION OF
279
								CORONARY ARTERY DISEASE</title>
280
							<dateofacceptance>2008-01-01</dateofacceptance>
281
							<publisher>Tehran University of Medical Sciences</publisher>
282
							<resulttype classid="publication" classname="publication" schemeid="dnet:result_typologies"
283
								schemename="dnet:result_typologies"/>
284
						</rel>
285
						<rel inferred="true" trust="0.9" inferenceprovenance="dedup (BuildRoots p:entityToRoot)"
286
							provenanceaction="sysimport:crosswalk:repository">
287
							<to class="hasAuthor" scheme="dnet:personroles" type="person"
288
								>dedup_wf_001::08264f61ba657f5f5ce3da9e71c1c338</to>
289
							<ranking>3</ranking>
290
							<fullname>Lasaulce, Samson</fullname>
291
						</rel>
292
						<rel inferred="true" trust="0.9" inferenceprovenance="dedup (BuildRoots p:entityToRoot)"
293
							provenanceaction="sysimport:crosswalk:repository">
294
							<to class="hasAuthor" scheme="dnet:personroles" type="person"
295
								>dedup_wf_001::917c855a763a8754bab500c747954ea4</to>
296
							<ranking>2</ranking>
297
							<fullname>Debbah, Merouane</fullname>
298
						</rel>
299
						<rel inferred="true" trust="0.9" inferenceprovenance="iis::document_similarities_standard"
300
							provenanceaction="iis">
301
							<to class="hasAmongTopNSimilarDocuments" scheme="dnet:result_result_relations" type="result"
302
								>od________18::9834b5140a145d265e1096d3b92c020d</to>
303
							<similarity>0.42043006</similarity>
304
							<type>STANDARD</type>
305
							<title classid="main title" classname="main title" schemeid="dnet:dataCite_title"
306
								schemename="dnet:dataCite_title">Explicit MBR All-Symbol Locality Codes</title>
307
							<dateofacceptance>2013-02-04</dateofacceptance>
308
							<resulttype classid="publication" classname="publication" schemeid="dnet:result_typologies"
309
								schemename="dnet:result_typologies"/>
310
						</rel>
311
						<rel inferred="true" trust="0.9" inferenceprovenance="iis::document_similarities_standard"
312
							provenanceaction="iis">
313
							<to class="hasAmongTopNSimilarDocuments" scheme="dnet:result_result_relations" type="result"
314
								>research_asb::8638d892a913d01c623fd40e8240067b</to>
315
							<similarity>0.6165079</similarity>
316
							<type>STANDARD</type>
317
							<title classid="main title" classname="main title" schemeid="dnet:dataCite_title"
318
								schemename="dnet:dataCite_title">Relative validity of the pre-coded food diary used in the
319
								Danish National Survey of Diet and Physical Activity</title>
320
							<dateofacceptance>2011-11-18</dateofacceptance>
321
							<resulttype classid="publication" classname="publication" schemeid="dnet:result_typologies"
322
								schemename="dnet:result_typologies"/>
323
						</rel>
324
						<rel inferred="true" trust="0.9" inferenceprovenance="iis::document_similarities_standard"
325
							provenanceaction="iis">
326
							<to class="hasAmongTopNSimilarDocuments" scheme="dnet:result_result_relations" type="result"
327
								>od________18::d0bf9376e7ff6bbe5b24a13e5d3218dd</to>
328
							<similarity>0.34173214</similarity>
329
							<type>STANDARD</type>
330
							<title classid="main title" classname="main title" schemeid="dnet:dataCite_title"
331
								schemename="dnet:dataCite_title">Low Complexity Differentiating Adaptive Erasure Codes for
332
								Multimedia Wireless Broadcast</title>
333
							<dateofacceptance>2012-09-14</dateofacceptance>
334
							<resulttype classid="publication" classname="publication" schemeid="dnet:result_typologies"
335
								schemename="dnet:result_typologies"/>
336
						</rel>
337
						<rel inferred="true" trust="0.9" inferenceprovenance="iis::document_similarities_standard"
338
							provenanceaction="iis">
339
							<to class="hasAmongTopNSimilarDocuments" scheme="dnet:result_result_relations" type="result"
340
								>od_______260::342b2424e637f1ae3bd9c0888cbfd6ef</to>
341
							<similarity>0.37307</similarity>
342
							<type>STANDARD</type>
343
							<title classid="main title" classname="main title" schemeid="dnet:dataCite_title"
344
								schemename="dnet:dataCite_title">Discrete Cosine Transform for Pre-coded EGPRS</title>
345
							<dateofacceptance>2012-01-01</dateofacceptance>
346
							<publisher>KTH, Signalbehandling</publisher>
347
							<resulttype classid="publication" classname="publication" schemeid="dnet:result_typologies"
348
								schemename="dnet:result_typologies"/>
349
						</rel>
350
						<rel inferred="true" trust="0.9" inferenceprovenance="iis::document_similarities_standard"
351
							provenanceaction="iis">
352
							<to class="hasAmongTopNSimilarDocuments" scheme="dnet:result_result_relations" type="result"
353
								>od_______661::ee0d98250210171a5f4c85f4d9f93a63</to>
354
							<similarity>0.31481624</similarity>
355
							<type>STANDARD</type>
356
							<title classid="main title" classname="main title" schemeid="dnet:dataCite_title"
357
								schemename="dnet:dataCite_title">Codebook Design for Limited Feedback Multiple Input
358
								Multiple Output Systems</title>
359
							<dateofacceptance>2012-01-01</dateofacceptance>
360
							<resulttype classid="publication" classname="publication" schemeid="dnet:result_typologies"
361
								schemename="dnet:result_typologies"/>
362
						</rel>
363
						<rel inferred="true" trust="0.9" inferenceprovenance="iis::document_similarities_standard"
364
							provenanceaction="iis">
365
							<to class="hasAmongTopNSimilarDocuments" scheme="dnet:result_result_relations" type="result"
366
								>od________18::56fd87366db5a2ea367595f030204de8</to>
367
							<similarity>0.36812627</similarity>
368
							<type>STANDARD</type>
369
							<title classid="main title" classname="main title" schemeid="dnet:dataCite_title"
370
								schemename="dnet:dataCite_title">Joint power control and user scheduling in multicell
371
								wireless networks: Capacity scaling laws</title>
372
							<dateofacceptance>2007-09-18</dateofacceptance>
373
							<resulttype classid="publication" classname="publication" schemeid="dnet:result_typologies"
374
								schemename="dnet:result_typologies"/>
375
						</rel>
376
						<rel inferred="true" trust="0.9" inferenceprovenance="iis::document_similarities_standard"
377
							provenanceaction="iis">
378
							<to class="hasAmongTopNSimilarDocuments" scheme="dnet:result_result_relations" type="result"
379
								>webcrawl____::d748bc5659a3b03f7095b6db7e014568</to>
380
							<similarity>0.45640922</similarity>
381
							<type>STANDARD</type>
382
							<title classid="main title" classname="main title" schemeid="dnet:dataCite_title"
383
								schemename="dnet:dataCite_title">Rate Scaling Laws in Multicell Networks Under Distributed
384
								Power Control and User Scheduling</title>
385
							<dateofacceptance>2011</dateofacceptance>
386
							<publisher>IEEE-INST ELECTRICAL ELECTRONICS ENGINEERS INC</publisher>
387
							<resulttype classid="publication" classname="publication" schemeid="dnet:result_typologies"
388
								schemename="dnet:result_typologies"/>
389
						</rel>
390
						<rel inferred="true" trust="0.9" inferenceprovenance="iis::document_similarities_standard"
391
							provenanceaction="iis">
392
							<to class="hasAmongTopNSimilarDocuments" scheme="dnet:result_result_relations" type="result"
393
								>od________18::0ac7557503cdffc323e17fc5acc931e0</to>
394
							<similarity>0.57882494</similarity>
395
							<type>STANDARD</type>
396
							<title classid="main title" classname="main title" schemeid="dnet:dataCite_title"
397
								schemename="dnet:dataCite_title">New Results on the Capacity of the Gaussian Cognitive
398
								Interference Channel</title>
399
							<dateofacceptance>2010-07-07</dateofacceptance>
400
							<resulttype classid="publication" classname="publication" schemeid="dnet:result_typologies"
401
								schemename="dnet:result_typologies"/>
402
						</rel>
403
						<rel inferred="true" trust="0.9" inferenceprovenance="iis::document_similarities_standard"
404
							provenanceaction="iis">
405
							<to class="hasAmongTopNSimilarDocuments" scheme="dnet:result_result_relations" type="result"
406
								>od_______497::caad010052d64eec1900434ed9f31f27</to>
407
							<similarity>0.40609425</similarity>
408
							<type>STANDARD</type>
409
							<title classid="main title" classname="main title" schemeid="dnet:dataCite_title"
410
								schemename="dnet:dataCite_title">JPEG2000 image transmission over frequency selective
411
								channels</title>
412
							<dateofacceptance>2012-08-27</dateofacceptance>
413
							<resulttype classid="publication" classname="publication" schemeid="dnet:result_typologies"
414
								schemename="dnet:result_typologies"/>
415
						</rel>
416
						<rel inferred="true" trust="0.9" inferenceprovenance="iis::document_similarities_standard"
417
							provenanceaction="iis">
418
							<to class="hasAmongTopNSimilarDocuments" scheme="dnet:result_result_relations" type="result"
419
								>od______1248::e246aedcdf242231f4c54a2175f15db4</to>
420
							<similarity>0.6165079</similarity>
421
							<type>STANDARD</type>
422
							<title classid="main title" classname="main title" schemeid="dnet:dataCite_title"
423
								schemename="dnet:dataCite_title">Requirements Gathering for Simulation</title>
424
							<dateofacceptance>2006-01-01</dateofacceptance>
425
							<publisher>Dublin Institute of Technology</publisher>
426
							<resulttype classid="publication" classname="publication" schemeid="dnet:result_typologies"
427
								schemename="dnet:result_typologies"/>
428
						</rel>
429
						<rel inferred="true" trust="0.9" inferenceprovenance="iis::document_similarities_standard"
430
							provenanceaction="iis">
431
							<to class="hasAmongTopNSimilarDocuments" scheme="dnet:result_result_relations" type="result"
432
								>od______1249::2632c9d7bd359b3910b15ef5e91dc0fe</to>
433
							<similarity>0.42851692</similarity>
434
							<type>STANDARD</type>
435
							<title classid="main title" classname="main title" schemeid="dnet:dataCite_title"
436
								schemename="dnet:dataCite_title">Time use of unemployed adults: exploration of temporal
437
								structure</title>
438
							<dateofacceptance>2012-01-01</dateofacceptance>
439
							<publisher>University of Limerick</publisher>
440
							<resulttype classid="publication" classname="publication" schemeid="dnet:result_typologies"
441
								schemename="dnet:result_typologies"/>
442
						</rel>
443
						<rel inferred="true" trust="0.9" inferenceprovenance="iis::document_similarities_standard"
444
							provenanceaction="iis">
445
							<to class="hasAmongTopNSimilarDocuments" scheme="dnet:result_result_relations" type="result"
446
								>od_______185::8d41a4d1b1a56b275a2ac7349a7a7c8d</to>
447
							<similarity>0.40576562</similarity>
448
							<type>STANDARD</type>
449
							<title classid="main title" classname="main title" schemeid="dnet:dataCite_title"
450
								schemename="dnet:dataCite_title">Neural Pre-coding Increases the Pattern Retrieval Capacity
451
								of Hopfield and Bidirectional Associative Memories</title>
452
							<dateofacceptance>2011-01-01</dateofacceptance>
453
							<publisher>Ieee Service Center, 445 Hoes Lane, Po Box 1331, Piscataway, Nj 08855-1331
454
								Usa</publisher>
455
							<resulttype classid="publication" classname="publication" schemeid="dnet:result_typologies"
456
								schemename="dnet:result_typologies"/>
457
						</rel>
458
						<rel inferred="true" trust="0.9" inferenceprovenance="iis::document_similarities_standard"
459
							provenanceaction="iis">
460
							<to class="hasAmongTopNSimilarDocuments" scheme="dnet:result_result_relations" type="result"
461
								>od________18::fe29d3a8e60a0165d4649d040e172628</to>
462
							<similarity>0.48038223</similarity>
463
							<type>STANDARD</type>
464
							<title classid="main title" classname="main title" schemeid="dnet:dataCite_title"
465
								schemename="dnet:dataCite_title">The Capacity of the Semi-Deterministic Cognitive
466
								Interference Channel with a Common Cognitive Message and Approximate Capacity for the
467
								Gaussian Case</title>
468
							<dateofacceptance>2012-02-05</dateofacceptance>
469
							<resulttype classid="publication" classname="publication" schemeid="dnet:result_typologies"
470
								schemename="dnet:result_typologies"/>
471
						</rel>
472
					</rels>
473
					<children>
474
						<result objidentifier="od_______165::02eff513496d8174f7526c62ac0a3967">
475
							<title classid="main title" classname="main title" schemeid="dnet:dataCite_title"
476
								schemename="dnet:dataCite_title">Opportunistic Interference Alignment in MIMO Interference
477
								Channels</title>
478
							<dateofacceptance>2008-09-15</dateofacceptance>
479
							<resulttype classid="publication" classname="publication" schemeid="dnet:result_typologies"
480
								schemename="dnet:result_typologies"/>
481
						</result>
482
						<result objidentifier="od________18::133413b976bd9b6148e59a700f4124bf">
483
							<title classid="main title" classname="main title" schemeid="dnet:dataCite_title"
484
								schemename="dnet:dataCite_title">Opportunistic Interference Alignment in MIMO Interference
485
								Channels</title>
486
							<dateofacceptance>2008-06-23</dateofacceptance>
487
							<resulttype classid="publication" classname="publication" schemeid="dnet:result_typologies"
488
								schemename="dnet:result_typologies"/>
489
						</result>
490
						<instance id="opendoar____::9766527f2b5d3e95d4a733fcfb77bd7e">
491
							<licence classid="OPEN" classname="Open Access" schemeid="dnet:access_modes"
492
								schemename="dnet:access_modes"/>
493
							<instancetype classid="0004" classname="Conference object"
494
								schemeid="dnet:publication_resource" schemename="dnet:publication_resource"/>
495
							<hostedby name="INRIA a CCSD electronic archive server"
496
								id="opendoar____::9766527f2b5d3e95d4a733fcfb77bd7e"/>
497
							<webresource>
498
								<url>http://hal-supelec.archives-ouvertes.fr/hal-00335246</url>
499
							</webresource>
500
							<webresource>
501
								<url>http://hal-supelec.archives-ouvertes.fr/docs/00/33/52/46/PDF/Perlaza-NWMIMO2008.pdf</url>
502
							</webresource>
503
						</instance>
504
						<instance id="opendoar____::6f4922f45568161a8cdf4ad2299f6d23">
505
							<licence classid="OPEN" classname="Open Access" schemeid="dnet:access_modes"
506
								schemename="dnet:access_modes"/>
507
							<instancetype classid="0001" classname="Article" schemeid="dnet:publication_resource"
508
								schemename="dnet:publication_resource"/>
509
							<hostedby name="arXiv.org e-Print Archive"
510
								id="opendoar____::6f4922f45568161a8cdf4ad2299f6d23"/>
511
							<webresource>
512
								<url>http://arxiv.org/abs/0806.3653</url>
513
							</webresource>
514
						</instance>
515
					</children>
516
				</oaf:result>
517
				<extraInfo name="result citations" typology="citations"
518
					provenance="iis::document_referencedDocuments" trust="0.9">
519
					<citations>
520
						<citation>
521
							<rawText>Number of Antennas (Nr = Nt) Figure 4. Average data rate achieved by the primary R1
522
								and secondary link for uniform R2,uniform and optimal R2,optimal power allocation as a
523
								function of their SN R = pm2ax . The dashed lines correspond to Nr = Nt = 20 antennas.
524
								Theσsolid lines correspond to Nr = Nt = 3 antennas.</rawText>
525
						</citation>
526
						<citation>
527
							<rawText>[10] W. Yu, W. Rhee, S. Boyd, and J. M. Cioffi, “Iterative water- filling for gaussian
528
								vector multiple-access channels,” Informa- tion Theory, IEEE Transactions on, vol. 50, no.
529
								1, pp. 145–152, 2004.</rawText>
530
						</citation>
531
						<citation>
532
							<rawText>[11] F. R. Farrokhi, A. Lozano, G. J. Foschini, and R. A. Valen- zuela, “Spectral
533
								efficiency of fdma/tdma wireless systems with transmit and receive antenna arrays,” Wireless
534
								Communications, IEEE Transactions on, vol. 1, no. 4, pp. 591–599, 2002.</rawText>
535
						</citation>
536
						<citation>
537
							<rawText>[12] C.-N. Chuah, D. N. C. Tse, J. M. Kahn, and R. A. Valenzuela, “Capacity scaling
538
								in mimo wireless systems under correlated fading,” Information Theory, IEEE Transactions on,
539
								vol. 48, no. 3, pp. 637–650, 2002.</rawText>
540
						</citation>
541
						<citation>
542
							<rawText>[1] S. Haykin, “Cognitive radio: brain-empowered wireless com- munications,”
543
								Selected Areas in Communications, IEEE Journal on, vol. 23, no. 2, pp. 201–220,
544
								2005.</rawText>
545
						</citation>
546
						<citation>
547
							<rawText>[2] B. A. Fette, Cognitive Radio Technology. Newnes editors, 2006.</rawText>
548
						</citation>
549
						<citation>
550
							<rawText>[3] M. Maddah-Ali, A. Motahari, and A. Khandani, “Communica- tion over x channel:
551
								Signalling and multiplexing gain,” UW- ECE-2006-12, University of Waterloo, Tech. Rep., July
552
								2006.</rawText>
553
						</citation>
554
						<citation>
555
							<rawText>[4] M. A. Maddah-Ali, A. S. Motahari, and A. K. Khandani, “Signaling over mimo
556
								multi-base systems: Combination of multi-access and broadcast schemes,” in Information
557
								Theory, 2006 IEEE International Symposium on, 2006, pp. 2104–2108.</rawText>
558
						</citation>
559
						<citation>
560
							<rawText>[5] V. R. Cadambe and S. A. Jafar, “Interference alignment and spatial degrees of
561
								freedom for the k user interference channel,” in Communications, 2008. ICC ’08. IEEE
562
								International Con- ference on, 2008, pp. 971–975.</rawText>
563
						</citation>
564
						<citation>
565
							<rawText>[7] S. A. Jafar and S. Shamai, “Degrees of freedom region of the mimo x channel,”
566
								Information Theory, IEEE Transactions on, vol. 54, no. 1, pp. 151–170, 2008.</rawText>
567
						</citation>
568
						<citation>
569
							<rawText>[8] L. S. Cardoso, M. Kobayashi, M. Debbah, and O. Ryan, “Vandermonde frequency
570
								division multiplexing for cognitive radio,” in SPAWC2008, July 2008.</rawText>
571
							<id value="dedup_wf_001::8c344af3258b947bd4e2add9f77401d6" type="openaire"
572
								confidenceLevel="0.6140349"/>
573
						</citation>
574
						<citation>
575
							<rawText>[9] H. Sato, “Two-user communication channels,” Information The- ory, IEEE
576
								Transactions on, vol. 23, no. 3, pp. 295–304, 1977.</rawText>
577
						</citation>
578
					</citations>
579
				</extraInfo>
580
			</oaf:entity>
581
		</metadata>
582
	</result>
583
</record>
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-1.1.8/src/test/resources/eu/dnetlib/msro/openaireplus/workflows/index/fields.xml
1
<LAYOUT name="index">
2
    <FIELDS>
3
        <FIELD indexable="false" name="oafentity" result="true" stat="false" tokenizable="true" xpath="//*[local-name() = 'entity']"/>
4
        <FIELD indexable="true" name="oaftype" result="false" stat="false" tokenizable="false" value="local-name(//*[local-name()='entity']/*)"/>
5
        <FIELD indexable="true" name="objIdentifier" result="false" stat="false" tokenizable="false" xpath="//header/dri:objIdentifier"/>
6
                        
7
                        <!-- DATASOURCE FIELDS -->
8
        <FIELD indexable="true" name="datasourceofficialname" result="false" stat="false" value="//*[local-name()='entity']/*[local-name()='datasource']/officialname"/>
9
        <FIELD indexable="true" name="datasourceenglishname" result="false" stat="false" value="//*[local-name()='entity']/*[local-name()='datasource']/englishname"/>
10
        <FIELD indexable="true" name="datasourcewebsiteurl" result="false" stat="false" value="//*[local-name()='entity']/*[local-name()='datasource']/websiteurl"/>
11
        <FIELD indexable="true" name="datasourcelogourl" result="false" stat="false" value="//*[local-name()='entity']/*[local-name()='datasource']/logourl"/>
12
        <FIELD indexable="true" name="datasourcecontactemail" result="false" stat="false" value="//*[local-name()='entity']/*[local-name()='datasource']/contactemail"/>
13
        <FIELD indexable="true" name="datasourceoddescription" result="false" stat="false" value="//*[local-name()='entity']/*[local-name()='datasource']/oddescription"/>
14
        <FIELD indexable="true" name="datasourceodnumberofitems" result="false" stat="false" value="//*[local-name()='entity']/*[local-name()='datasource']/odnumberofitems"/>
15
        <FIELD indexable="true" name="datasourceodnumberofitemsdate" result="false" stat="false" type="date" value="//*[local-name()='entity']/*[local-name()='datasource']/odnumberofitemsdate"/>
16
        <FIELD indexable="true" name="datasourceodsubjects" result="false" stat="false" tokenizable="false" value="//*[local-name()='entity']/*[local-name()='datasource']/odsubjects"/>
17
        <FIELD indexable="true" name="datasourceodlanguages" result="false" stat="false" tokenizable="false" value="//*[local-name()='entity']/*[local-name()='datasource']/odlanguages"/>
18
        <FIELD indexable="true" name="datasourceodcontenttypes" result="false" stat="false" tokenizable="false" value="//*[local-name()='entity']/*[local-name()='datasource']/odcontenttypes"/>
19
        <FIELD indexable="true" name="datasourcetypeid" result="false" stat="false" tokenizable="false" value="//*[local-name()='entity']/*[local-name()='datasource']/datasourcetype/@classid"/>
20
        <FIELD indexable="true" name="datasourcetypename" result="false" stat="false" tokenizable="false" value="//*[local-name()='entity']/*[local-name()='datasource']/datasourcetype/@classname"/>
21
        <FIELD indexable="true" name="datasourcetypeuiid" result="false" stat="false" tokenizable="false" value="//*[local-name()='entity']/*[local-name()='datasource']/datasourcetypeui/@classid"/>
22
        <FIELD indexable="true" name="datasourcetypeuiname" result="false" stat="false" tokenizable="false" value="//*[local-name()='entity']/*[local-name()='datasource']/datasourcetypeui/@classname"/>
23
        <FIELD indexable="true" name="datasourcecompatibilityid" result="false" stat="false" tokenizable="false" value="//*[local-name()='entity']/*[local-name()='datasource']/openairecompatibility/@classid"/>
24
        <FIELD indexable="true" name="datasourcecompatibilityname" result="false" stat="false" tokenizable="false" value="//*[local-name()='entity']/*[local-name()='datasource']/openairecompatibility/@classname"/>
25

  
26
                        <!-- ORGANIZATION FIELDS -->
27
        <FIELD indexable="true" name="organizationlegalshortname" result="false" stat="false" type="ngramtext" value="//*[local-name()='entity']/*[local-name()='organization']/legalshortname"/>
28
        <FIELD indexable="true" name="organizationlegalname" result="false" stat="false" type="ngramtext" value="//*[local-name()='entity']/*[local-name()='organization']/legalname"/>
29
        <FIELD indexable="true" name="organizationwebsiteurl" result="false" stat="false" value="//*[local-name()='entity']/*[local-name()='organization']/websiteurl"/>
30
        <FIELD indexable="true" name="organizationlogourl" result="false" stat="false" value="//*[local-name()='entity']/*[local-name()='organization']/logourl"/>
31
        <FIELD indexable="true" name="organizationeclegalbody" result="false" stat="false" value="//*[local-name()='entity']/*[local-name()='organization']/eclegalbody"/>
32
        <FIELD indexable="true" name="organizationeclegalperson" result="false" stat="false" value="//*[local-name()='entity']/*[local-name()='organization']/eclegalperson"/>
33
        <FIELD indexable="true" name="organizationecnonprofit" result="false" stat="false" value="//*[local-name()='entity']/*[local-name()='organization']/ecnonprofit"/>
34
        <FIELD indexable="true" name="organizationecresearchorganization" result="false" stat="false" value="//*[local-name()='entity']/*[local-name()='organization']/ecresearchorganization"/>
35
        <FIELD indexable="true" name="organizationecinternationalorganizationeurinterests" result="false" stat="false" value="//*[local-name()='entity']/*[local-name()='organization']/ecinternationalorganizationeurinterests"/>
36
        <FIELD indexable="true" name="organizationecinternationalorganization" result="false" stat="false" value="//*[local-name()='entity']/*[local-name()='organization']/ecinternationalorganization"/>
37
        <FIELD indexable="true" name="organizationecenterprise" result="false" stat="false" value="//*[local-name()='entity']/*[local-name()='organization']/ecenterprise"/>
38
        <FIELD indexable="true" name="organizationecsmevalidated" result="false" stat="false" value="//*[local-name()='entity']/*[local-name()='organization']/ecsmevalidated"/>
39
        <FIELD indexable="true" name="organizationecnutscode" result="false" stat="false" value="//*[local-name()='entity']/*[local-name()='organization']/ecnutscode"/>
40
        <FIELD indexable="true" name="organizationcollectedfrom" result="false" stat="false" value="//*[local-name()='entity']/*[local-name()='organization']/collectedfrom"/>
41
        <FIELD indexable="true" name="organizationcountryid" result="false" stat="false" tokenizable="false" value="//*[local-name()='entity']/*[local-name()='organization']/country/@classid"/>
42
        <FIELD indexable="true" name="organizationcountryname" result="false" stat="false" tokenizable="false" value="//*[local-name()='entity']/*[local-name()='organization']/country/@classname"/>
43

  
44
                        <!-- PERSON FIELDS -->
45
        <FIELD indexable="true" name="personfirstname" result="false" stat="false" value="//*[local-name()='entity']/*[local-name()='person']/firstname"/>
46
        <FIELD indexable="true" name="personsecondnames" result="false" stat="false" value="//*[local-name()='entity']/*[local-name()='person']/secondnames"/>
47
        <FIELD indexable="true" name="personfullname" result="false" stat="false" value="//*[local-name()='entity']/*[local-name()='person']/fullname"/>
48
        <FIELD indexable="true" name="personfax" result="false" stat="false" value="//*[local-name()='entity']/*[local-name()='person']/fax"/>
49
        <FIELD indexable="true" name="personemail" result="false" stat="false" value="//*[local-name()='entity']/*[local-name()='person']/email"/>
50
        <FIELD indexable="true" name="personphone" result="false" stat="false" value="//*[local-name()='entity']/*[local-name()='person']/phone"/>
51
        <FIELD indexable="true" name="personcollectedfrom" result="false" stat="false" value="//*[local-name()='entity']/*[local-name()='person']/collectedfrom"/>
52
        <FIELD indexable="true" name="personcountryid" result="false" stat="false" tokenizable="false" value="//*[local-name()='entity']/*[local-name()='person']/nationality/@classid"/>
53
        <FIELD indexable="true" name="personcountryname" result="false" stat="false" tokenizable="false" value="//*[local-name()='entity']/*[local-name()='person']/nationality/@classname"/>
54

  
55
                        <!-- PROJECT FIELDS -->
56
        <FIELD indexable="true" name="projectwebsiteurl" result="false" stat="false" value="//*[local-name()='entity']/*[local-name()='project']/websiteurl"/>
57
        <FIELD indexable="true" name="projectcode" result="false" stat="false" type="ngramtext" value="//*[local-name()='entity']/*[local-name()='project']/code"/>
58
        <FIELD indexable="true" name="projectacronym" result="false" stat="false" type="ngramtext" value="//*[local-name()='entity']/*[local-name()='project']/acronym"/>
59
        <FIELD indexable="true" name="projecttitle" result="false" stat="false" type="ngramtext" value="//*[local-name()='entity']/*[local-name()='project']/title"/>
60
        <FIELD indexable="true" name="projectstartdate" result="false" stat="false" type="date" value="//*[local-name()='entity']/*[local-name()='project']/startdate"/>
61
        <FIELD indexable="true" name="projectstartyear" result="false" stat="false" tokenizable="false" value="dnet:extractYear(//*[local-name()='entity']/*[local-name()='project']/startdate)"/>
62
        <FIELD indexable="true" name="projectenddate" result="false" stat="false" type="date" value="//*[local-name()='entity']/*[local-name()='project']/enddate"/>
63
        <FIELD indexable="true" name="projectendyear" result="false" stat="false" tokenizable="false" value="dnet:extractYear(//*[local-name()='entity']/*[local-name()='project']/enddate)"/>
64
        <FIELD indexable="true" name="projectcallidentifier" result="false" stat="false" tokenizable="false" value="//*[local-name()='entity']/*[local-name()='project']/callidentifier"/>
65
        <FIELD indexable="true" name="projectkeywords" result="false" stat="false" value="//*[local-name()='entity']/*[local-name()='project']/keywords"/>
66
        <FIELD indexable="true" name="projectduration" result="false" stat="false" value="//*[local-name()='entity']/*[local-name()='project']/duration"/>
67
        <FIELD indexable="true" name="projectecsc39" result="false" stat="false" value="//*[local-name()='entity']/*[local-name()='project']/ecsc39"/>
68
        <FIELD indexable="true" name="projectcollectedfrom" result="false" stat="false" value="//*[local-name()='entity']/*[local-name()='project']/collectedfrom"/>
69
        <FIELD indexable="true" name="projectcontracttypeid" result="false" stat="false" tokenizable="false" value="//*[local-name()='entity']/*[local-name()='project']/contracttype/@classid"/>
70
        <FIELD indexable="true" name="projectcontracttypename" result="false" stat="false" tokenizable="false" value="//*[local-name()='entity']/*[local-name()='project']/contracttype/@classname"/>
71
        <FIELD indexable="true" name="fundinglevel0_id" result="false" stat="false" tokenizable="false" value="//*[local-name()='entity']/*[local-name()='project']/fundingtree//funding_level_0/id"/>
72
        <FIELD indexable="true" name="fundinglevel0_name" result="false" stat="false" tokenizable="false" value="//*[local-name()='entity']/*[local-name()='project']/fundingtree//funding_level_0/name"/>
73
        <FIELD indexable="true" name="fundinglevel0_description" result="false" stat="false" value="//*[local-name()='entity']/*[local-name()='project']/fundingtree//funding_level_0/description"/>
74
        <FIELD indexable="true" name="fundinglevel1_id" result="false" stat="false" tokenizable="false" value="//*[local-name()='entity']/*[local-name()='project']/fundingtree//funding_level_1/id"/>
75
        <FIELD indexable="true" name="fundinglevel1_name" result="false" stat="false" tokenizable="false" value="//*[local-name()='entity']/*[local-name()='project']/fundingtree//funding_level_1/name"/>
76
        <FIELD indexable="true" name="fundinglevel1_description" result="false" stat="false" value="//*[local-name()='entity']/*[local-name()='project']/fundingtree//funding_level_1/description"/>
77
        <FIELD indexable="true" name="fundinglevel2_id" result="false" stat="false" tokenizable="false" value="//*[local-name()='entity']/*[local-name()='project']/fundingtree//funding_level_2/id"/>
78
        <FIELD indexable="true" name="fundinglevel2_name" result="false" stat="false" tokenizable="false" value="//*[local-name()='entity']/*[local-name()='project']/fundingtree//funding_level_2/name"/>
79
        <FIELD indexable="true" name="fundinglevel2_description" result="false" stat="false" value="//*[local-name()='entity']/*[local-name()='project']/fundingtree//funding_level_2/description"/>
80

  
81
                        <!-- RESULT FIELDS -->
82
        <FIELD indexable="true" name="resulttitle" result="false" stat="false" xpath="//*[local-name()='entity']/*[local-name()='result']/title"/>
83
        <FIELD indexable="true" name="resulttitleclass" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']/*[local-name()='result']/title/@classname"/>
84
        <FIELD indexable="true" name="resultsubject" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']/*[local-name()='result']/subject"/>
85
        <FIELD indexable="true" name="resultsubjectclass" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']/*[local-name()='result']/subject/@classname"/>
86
        <FIELD indexable="true" name="resultdate" result="false" stat="false" type="date" value="//*[local-name()='entity']/*[local-name()='result']/relevantdate"/>
87
        <FIELD indexable="true" name="resultdateclass" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']/*[local-name()='result']/relevantdate/@classname"/>
88
        <FIELD indexable="true" name="resultstoragedate" result="false" stat="false" type="date" value="//*[local-name()='entity']/*[local-name()='result']/storagedate"/>
89
        <FIELD indexable="true" name="resultembargoenddate" result="false" stat="false" type="date" value="//*[local-name()='entity']/*[local-name()='result']/embargoenddate"/>
90
        <FIELD indexable="true" name="resultembargoendyear" result="false" stat="false" tokenizable="false" value="dnet:extractYear(//*[local-name()='entity']/*[local-name()='result']/embargoenddate)"/>
91
        <FIELD indexable="true" name="resulttypeid" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']/*[local-name()='result']/resulttype/@classid"/>
92
        <FIELD indexable="true" name="resulttypename" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']/*[local-name()='result']/resulttype/@classname"/>
93
        <FIELD indexable="true" name="resultlanguageid" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']/*[local-name()='result']/language/@classid"/>
94
        <FIELD indexable="true" name="resultlanguagename" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']/*[local-name()='result']/language/@classname"/>
95
        <FIELD indexable="true" name="resultpublisher" result="false" stat="false" xpath="//*[local-name()='entity']/*[local-name()='result']/*[local-name()='publisher']"/>
96
        <FIELD indexable="true" name="resultdescription" result="false" stat="false" xpath="//*[local-name()='entity']/*[local-name()='result']/*[local-name()='description']"/>
97
        <FIELD indexable="true" name="resultrights" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']/*[local-name()='result']/children/instance/licence/@classname"/>
98
        <FIELD indexable="true" name="resultrightsid" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']/*[local-name()='result']/children/instance/licence/@classid"/>
99
        <FIELD indexable="true" name="resultbestlicense" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']/*[local-name()='result']/bestlicense/@classname"/>
100
        <FIELD indexable="true" name="resultbestlicenseid" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']/*[local-name()='result']/bestlicense/@classid"/>
101
        <FIELD indexable="true" name="resultidentifier" result="false" stat="false" xpath="//*[local-name()='entity']/*[local-name()='result']/children/instance/webresource/*[local-name()='identifier']"/>
102
        <FIELD indexable="true" name="resultdateofacceptance" result="false" stat="false" type="date" value="//*[local-name()='entity']/*[local-name()='result']/dateofacceptance"/>
103
        <FIELD indexable="true" name="resultacceptanceyear" result="false" stat="false" tokenizable="false" value="dnet:extractYear(//*[local-name()='entity']/*[local-name()='result']/dateofacceptance)"/>
104
        <FIELD indexable="true" name="resulthostingdatasourceid" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']/*[local-name()='result']/children/instance/*[local-name()='hostedby']/@id"/>
105
        <FIELD indexable="true" name="resulthostingdatasourcename" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']/*[local-name()='result']/children/instance/*[local-name()='hostedby']/@name"/>
106
        <FIELD indexable="true" name="resultcollectedfromdatasourceid" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']/*[local-name()='result']/*[local-name()='collectedfrom']/@id"/>
107
        <FIELD indexable="true" name="resultcollectedfromdatasourcename" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']/*[local-name()='result']/*[local-name()='collectedfrom']/@name"/>
108
        <FIELD indexable="true" name="instancetypename" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']/*[local-name()='result']/children/instance/*[local-name()='instancetype']/@classname"/>
109
        <FIELD indexable="true" name="instancetypenameid" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']/*[local-name()='result']/children/instance/*[local-name()='instancetype']/@classid"/>
110
        <FIELD indexable="true" name="resultdupid" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']/*//children/result/@objidentifier"/>
111
        <FIELD indexable="true" name="externalrefsite" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']/*//children/externalreference/sitename"/>
112
        <FIELD indexable="true" name="externalreflabel" result="false" stat="false" tokenizable="true" xpath="//*[local-name()='entity']/*//children/externalreference/label"/>
113
        <FIELD indexable="true" name="externalrefclass" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']/*//children/externalreference/qualifier/@classid"/>
114
        <FIELD indexable="true" name="externalrefid" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']/*//children/externalreference/refidentifier"/>
115

  
116

  
117
						<!--  REL FIELDS -->
118
        <FIELD indexable="true" name="relpersonid" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']/*//rel/to[@type='person']"/>
119
        <FIELD indexable="true" name="relperson" result="false" stat="false" xpath="//*[local-name()='entity']/*//rel[./to/@type='person']/fullname"/>
120
        <FIELD indexable="true" name="relprojectid" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']/*//rel/to[@type='project']"/>
121
        <FIELD indexable="true" name="relprojectcode" result="false" stat="false" xpath="//*[local-name()='entity']/*//rel[to/@type='project']/code"/>
122
        <FIELD indexable="true" name="relprojectname" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']/*//rel[./to/@type='project']/acronym"/>
123
        <FIELD indexable="true" name="relprojecttitle" result="false" stat="false" xpath="//*[local-name()='entity']/*//rel[./to/@type='project']/title"/>
124
        <FIELD indexable="true" name="relcontracttypeid" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']/*//rel[./to/@type='project']/contracttype/@classid"/>
125
        <FIELD indexable="true" name="relcontracttypename" result="false" stat="false" xpath="//*[local-name()='entity']/*//rel[./to/@type='project']/contracttype/@classname"/>
126
        <FIELD indexable="true" name="relorganizationcountryid" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']/*//rel[./to/@type='organization']/country/@classid"/>
127
        <FIELD indexable="true" name="relorganizationcountryname" result="false" stat="false" xpath="//*[local-name()='entity']/*//rel[./to/@type='organization']/country/@classname"/>
128
        <FIELD indexable="true" name="relorganizationid" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']/*//rel/to[@type='organization']"/>
129
        <FIELD indexable="true" name="relorganizationname" result="false" stat="false" xpath="//*[local-name()='entity']/*//rel[./to/@type='organization']/legalname"/>
130
        <FIELD indexable="true" name="relorganizationshortname" result="false" stat="false" xpath="//*[local-name()='entity']/*//rel[./to/@type='organization']/legalshortname"/>
131
        <FIELD indexable="true" name="relresultid" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']/*//rel/to[@type='result']"/>
132
        <FIELD indexable="true" name="relfundinglevel0_id" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']//rel/funding/funding_level_0"/>
133
        <FIELD indexable="true" name="relfundinglevel1_id" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']//rel/funding/funding_level_1"/>
134
        <FIELD indexable="true" name="relfundinglevel2_id" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']//rel/funding/funding_level_2"/>
135
        <FIELD indexable="true" name="relinferred" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']//rel/@inferred"/>
136
        <FIELD indexable="true" name="reltrust" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']//rel/@trust"/>
137
        <FIELD indexable="true" name="relinferenceprovenance" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']//rel/@inferenceprovenance"/>
138
        <FIELD indexable="true" name="relprovenanceactionclassid" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']//rel/@provenanceaction"/>
139
                        
140
                        <!-- COMMON FIELDS -->
141
        <FIELD indexable="true" name="dateofcollection" result="false" stat="false" type="date" value="//header/*[local-name()='dateOfCollection']"/>
142
        <FIELD indexable="true" name="collectedfromdatasourceid" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']//*[local-name()='collectedfrom']/@id"/>
143
        <FIELD indexable="true" name="collectedfromdatasourcename" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']//*[local-name()='collectedfrom']/@name"/>
144
        <FIELD indexable="true" name="pid" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']//pid"/>
145
        <FIELD indexable="true" name="pidclassid" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']//pid/@classid"/>
146
        <FIELD indexable="true" name="pidclassname" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']//pid/@classname"/>
147
        <FIELD indexable="true" name="h1" result="false" stat="false" stored="false" tokenizable="false" value="dnet:randomInt(100)"/>
148
        <FIELD indexable="true" name="h2" result="false" stat="false" stored="false" tokenizable="false" value="dnet:randomInt(100)"/>
149
        <FIELD indexable="true" name="inferred" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']//datainfo/inferred"/>
150
        <FIELD indexable="true" name="deletedbyinference" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']//datainfo/deletedbyinference"/>
151
        <FIELD indexable="true" name="trust" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']//datainfo/trust"/>
152
        <FIELD indexable="true" name="inferenceprovenance" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']//datainfo/inferenceprovenance"/>
153
        <FIELD indexable="true" name="provenanceactionclassid" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']//datainfo/provenanceaction/@classid"/>
154
        <FIELD indexable="true" name="contextid" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']/*[local-name()='result']/context/@id"/>
155
        <FIELD indexable="true" name="contexttype" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']/*[local-name()='result']/context/@type"/>
156
        <FIELD indexable="true" name="contextname" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']/*[local-name()='result']/context/@label"/>
157
        <FIELD indexable="true" name="categoryid" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']/*[local-name()='result']/context/category/@id"/>
158
        <FIELD indexable="true" name="categoryname" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']/*[local-name()='result']/context/category/@label"/>
159
        <FIELD indexable="true" name="conceptid" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']/*[local-name()='result']/context/category//concept/@id"/>
160
        <FIELD indexable="true" name="conceptname" result="false" stat="false" tokenizable="false" xpath="//*[local-name()='entity']/*[local-name()='result']/context/category//concept/@label"/>
161
       
162
                      <!-- COUNTER FIELDS -->     
163
        <FIELD name="counter_dedup" xpath="/record/result/*[local-name()='header']/*[local-name()='counters']/counter_dedup/@value" type="int" indexable="true" header="true" stored="true"/>
164
        <FIELD name="counter_authorship" xpath="/record/result/*[local-name()='header']/*[local-name()='counters']/counter_authorship/@value" type="int" indexable="true" header="true" stored="true"/>
165
        <FIELD name="counter_participation" xpath="/record/result/*[local-name()='header']/*[local-name()='counters']/counter_participation/@value" type="int" indexable="true" header="true" stored="true"/>
166
        <FIELD name="counter_outcome" xpath="/record/result/*[local-name()='header']/*[local-name()='counters']/counter_outcome/@value" type="int" indexable="true" header="true" stored="true"/>
167
        <FIELD name="counter_contactperson" xpath="/record/result/*[local-name()='header']/*[local-name()='counters']/counter_contactperson/@value" type="int" indexable="true" header="true" stored="true"/>
168
        <FIELD name="counter_provision" xpath="/record/result/*[local-name()='header']/*[local-name()='counters']/counter_provision/@value" type="int" indexable="true" header="true" stored="true"/>
169
        <FIELD name="counter_similarity" xpath="/record/result/*[local-name()='header']/*[local-name()='counters']/counter_similarity/@value" type="int" indexable="true" header="true" stored="true"/>
170
        <FIELD name="counter_publicationdataset" xpath="/record/result/*[local-name()='header']/*[local-name()='counters']/counter_publicationdataset/@value" type="int" indexable="true" header="true" stored="true"/>
171
    </FIELDS>
172
</LAYOUT>
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-1.1.8/src/main/java/eu/dnetlib/msro/openaire/ui/DownloadPluginValues.java
1
package eu.dnetlib.msro.openaire.ui;
2

  
3
import java.util.ArrayList;
4
import java.util.List;
5
import java.util.Map;
6

  
7
import javax.annotation.Resource;
8

  
9
import org.springframework.beans.factory.annotation.Autowired;
10

  
11
import eu.dnetlib.data.download.rmi.DownloadPlugin;
12
import eu.dnetlib.data.download.rmi.DownloadService;
13
import eu.dnetlib.enabling.tools.ServiceLocator;
14
import eu.dnetlib.msro.workflows.util.ValidNodeValuesFetcher;
15

  
16
public class DownloadPluginValues extends ValidNodeValuesFetcher {
17

  
18
	/** The download plugin enumerator. */
19

  
20
	@Resource(name = "downloadServiceLocator")
21
	private ServiceLocator<DownloadService> downloadServiceLocator;
22

  
23
	@Autowired(required = false)
24
	private List<DownloadPlugin> plugins;
25

  
26
	@Override
27
	protected List<DnetParamValue> obtainValues(final Map<String, String> params) throws Exception {
28

  
29
		List<String> otherPlugins = downloadServiceLocator.getService().listPlugins();
30

  
31
		ArrayList<DnetParamValue> output = new ArrayList<ValidNodeValuesFetcher.DnetParamValue>();
32

  
33
		// if (plugins != null) {
34
		// output.addAll(Lists.newArrayList(Iterables.transform(plugins, new Function<DownloadPlugin, DnetParamValue>() {
35
		//
36
		// @Override
37
		// public DnetParamValue apply(final DownloadPlugin input) {
38
		// return new DnetParamValue(input.getPluginName(), input.getPluginName());
39
		// }
40
		// })));
41
		// }
42

  
43
		if (otherPlugins != null) {
44
			for (String pluginName : otherPlugins) {
45
				output.add(new DnetParamValue(pluginName, pluginName));
46
			}
47
		}
48

  
49
		return output;
50
	}
51
}
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-1.1.8/src/main/java/eu/dnetlib/msro/openaireplus/utils/CleaningXsltFunctions.java
1
package eu.dnetlib.msro.openaireplus.utils;
2

  
3
import java.text.Normalizer;
4

  
5
public class CleaningXsltFunctions {
6
	public static String clean(final String s) {
7
		return Normalizer.normalize(s, Normalizer.Form.NFD)
8
			.replaceAll("\\(.+\\)", "")
9
			.replaceAll("(\\W|\\p{InCombiningDiacriticalMarks}|\\p{Punct}|\\n|\\s)+", "")
10
			.toLowerCase()
11
			.trim();
12
	}
13
}
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-1.1.8/src/main/java/eu/dnetlib/msro/openaireplus/workflows/hbase/HBaseTableUtils.java
1
package eu.dnetlib.msro.openaireplus.workflows.hbase;
2

  
3
import java.util.Set;
4

  
5
import com.google.common.base.Function;
6
import com.google.common.collect.Iterables;
7
import com.google.common.collect.Lists;
8
import com.google.common.collect.Sets;
9

  
10
import eu.dnetlib.data.proto.DatasourceOrganizationProtos.DatasourceOrganization.Provision;
11
import eu.dnetlib.data.proto.DedupProtos.Dedup;
12
import eu.dnetlib.data.proto.DedupSimilarityProtos.DedupSimilarity;
13
import eu.dnetlib.data.proto.PersonPersonProtos.PersonPerson.CoAuthorship;
14
import eu.dnetlib.data.proto.PersonResultProtos.PersonResult.Authorship;
15
import eu.dnetlib.data.proto.ProjectOrganizationProtos.ProjectOrganization.Participation;
16
import eu.dnetlib.data.proto.ProjectPersonProtos.ProjectPerson.ContactPerson;
17
import eu.dnetlib.data.proto.RelTypeProtos.RelType;
18
import eu.dnetlib.data.proto.RelTypeProtos.SubRelType;
19
import eu.dnetlib.data.proto.ResultProjectProtos.ResultProject.Outcome;
20
import eu.dnetlib.data.proto.ResultResultProtos.ResultResult.PublicationDataset;
21
import eu.dnetlib.data.proto.ResultResultProtos.ResultResult.Similarity;
22
import eu.dnetlib.data.proto.TypeProtos.Type;
23

  
24
/**
25
 * Common static utility methods to manage the hbase tables
26
 * 
27
 * @author claudio
28
 * 
29
 */
30
public class HBaseTableUtils {
31

  
32
	private static final String _ = "_";
33
	private static Function<Type, String> typeName = new Function<Type, String>() {
34

  
35
		@Override
36
		public String apply(final Type type) {
37
			return type.toString();
38
		}
39
	};
40

  
41
	public static Set<String> listColumns() {
42
		return Sets.union(listEntities(), listRelationships());
43
	}
44

  
45
	public static Set<String> listEntities() {
46
		return Sets.newHashSet(Iterables.transform(Lists.newArrayList(Type.values()), typeName));
47
	}
48

  
49
	public static Set<String> listRelationships() {
50
		Set<String> cfs = Sets.newHashSet();
51
		cfs.add(RelType.datasourceOrganization + _ + SubRelType.provision + _ + Provision.RelName.isProvidedBy);
52
		cfs.add(RelType.datasourceOrganization + _ + SubRelType.provision + _ + Provision.RelName.provides);
53

  
54
		cfs.add(RelType.organizationOrganization + _ + SubRelType.dedup + _ + Dedup.RelName.merges);
55
		cfs.add(RelType.organizationOrganization + _ + SubRelType.dedup + _ + Dedup.RelName.isMergedIn);
56
		cfs.add(RelType.organizationOrganization + _ + SubRelType.dedupSimilarity + _ + DedupSimilarity.RelName.isSimilarTo);
57

  
58
		cfs.add(RelType.personPerson + _ + SubRelType.coauthorship + _ + CoAuthorship.RelName.isCoauthorOf);
59
		cfs.add(RelType.personPerson + _ + SubRelType.dedup + _ + Dedup.RelName.merges);
60
		cfs.add(RelType.personPerson + _ + SubRelType.dedup + _ + Dedup.RelName.isMergedIn);
61
		cfs.add(RelType.personPerson + _ + SubRelType.dedupSimilarity + _ + DedupSimilarity.RelName.isSimilarTo);
62

  
63
		cfs.add(RelType.personResult + _ + SubRelType.authorship + _ + Authorship.RelName.isAuthorOf);
64
		cfs.add(RelType.personResult + _ + SubRelType.authorship + _ + Authorship.RelName.hasAuthor);
65

  
66
		cfs.add(RelType.projectOrganization + _ + SubRelType.participation + _ + Participation.RelName.hasParticipant);
67
		cfs.add(RelType.projectOrganization + _ + SubRelType.participation + _ + Participation.RelName.isParticipant);
68

  
69
		cfs.add(RelType.projectPerson + _ + SubRelType.contactPerson + _ + ContactPerson.RelName.isContact);
70
		cfs.add(RelType.projectPerson + _ + SubRelType.contactPerson + _ + ContactPerson.RelName.hasContact);
71

  
72
		cfs.add(RelType.resultProject + _ + SubRelType.outcome + _ + Outcome.RelName.isProducedBy);
73
		cfs.add(RelType.resultProject + _ + SubRelType.outcome + _ + Outcome.RelName.produces);
74

  
75
		cfs.add(RelType.resultResult + _ + SubRelType.similarity + _ + Similarity.RelName.hasAmongTopNSimilarDocuments);
76
		cfs.add(RelType.resultResult + _ + SubRelType.similarity + _ + Similarity.RelName.isAmongTopNSimilarDocuments);
77

  
78
		cfs.add(RelType.resultResult + _ + SubRelType.publicationDataset + _ + PublicationDataset.RelName.isRelatedTo);
79

  
80
		cfs.add(RelType.resultResult + _ + SubRelType.dedup + _ + Dedup.RelName.merges);
81
		cfs.add(RelType.resultResult + _ + SubRelType.dedup + _ + Dedup.RelName.isMergedIn);
82
		cfs.add(RelType.resultResult + _ + SubRelType.dedupSimilarity + _ + DedupSimilarity.RelName.isSimilarTo);
83
		return cfs;
84
	}
85

  
86
}
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-1.1.8/src/main/java/eu/dnetlib/msro/openaireplus/workflows/profiles/RepositoryXsltFunctions.java
1
package eu.dnetlib.msro.openaireplus.workflows.profiles;
2

  
3
import java.io.IOException;
4
import java.io.StringWriter;
5
import java.util.List;
6
import java.util.Map;
7

  
8
import org.antlr.stringtemplate.StringTemplate;
9
import org.apache.commons.io.IOUtils;
10
import org.apache.commons.lang.StringEscapeUtils;
11
import org.apache.commons.lang.StringUtils;
12
import org.apache.commons.logging.Log;
13
import org.apache.commons.logging.LogFactory;
14
import org.springframework.core.io.ClassPathResource;
15
import org.springframework.core.io.Resource;
16

  
17
import com.google.common.base.Splitter;
18
import com.google.common.collect.Lists;
19
import com.google.common.collect.Maps;
20

  
21
public class RepositoryXsltFunctions {
22

  
23
	private static final Log log = LogFactory.getLog(RepositoryXsltFunctions.class); // NOPMD by marko on 11/24/08 5:02 PM
24

  
25
	private static Resource ifaceTemplate = new ClassPathResource("/eu/dnetlib/msro/openaireplus/workflows/profiles/repo_interface.st");
26

  
27
	private static Resource paramTemplate = new ClassPathResource("/eu/dnetlib/msro/openaireplus/workflows/profiles/repo_param.st");
28

  
29
	private enum Params {
30
		FORMAT, SET
31
	};
32

  
33
	public static String buildInterface(final String infopackage) {
34

  
35
		final List<String> formats = Lists.newArrayList();
36
		final List<String> sets = Lists.newArrayList();
37
		final Map<String, String> otherParams = Maps.newHashMap();
38

  
39
		for (String param : parseParams(getValueBetween(infopackage, "===6===", null))) {
40
			StringTemplate p = getTemplate(paramTemplate);
41
			String paramName = StringUtils.substringBefore(param, "=").trim();
42
			String paramValue = StringUtils.substringAfter(param, "=").trim();
43

  
44
			p.setAttribute("param", paramName.toUpperCase());
45
			p.setAttribute("value", paramValue);
46

  
47
			try {
48
				switch (Params.valueOf(paramName.toUpperCase())) {
49
				case FORMAT:
50
					formats.add(p.toString());
51
					break;
52
				case SET:
53
					sets.add(p.toString());
54
					break;
55
				}
56
			} catch (Exception e) {
57
				if ((paramName != null) && !paramName.isEmpty()) {
58
					otherParams.put(paramName, StringEscapeUtils.escapeXml(paramValue));
59
				}
60
			}
61
		}
62

  
63
		final StringTemplate i = getTemplate(ifaceTemplate);
64
		i.setAttribute("id", getValueBetween(infopackage, null, "===1==="));
65
		i.setAttribute("fileMode", getValueBetween(infopackage, "===1===", "===2==="));
66
		i.setAttribute("fileDesc", getValueBetween(infopackage, "===2===", "===3==="));
67
		i.setAttribute("iisWf", getValueBetween(infopackage, "===3===", "===4==="));
68
		i.setAttribute("baseUrl", getBaseUrl(getValueBetween(infopackage, "===4===", "===5===")));
69
		i.setAttribute("accessProtocol", getAccessProtocol(getValueBetween(infopackage, "===5===", "===6==="), otherParams));
70
		i.setAttribute("formats", ensureMinOccurs(formats, "<FORMAT/>"));
71
		i.setAttribute("sets", ensureMinOccurs(sets, "<SET/>"));
72
		if (!otherParams.isEmpty()) {
73
			i.setAttribute("otherParams", otherParams);
74
		}
75

  
76
		final String iface = i.toString();
77
		return iface;
78
	}
79

  
80
	private static String getValueBetween(final String s, final String pre, final String post) {
81
		if ((pre == null) && (post == null)) {
82
			return s;
83
		} else if (pre == null) {
84
			return StringUtils.substringBefore(s, post);
85
		} else if (post == null) {
86
			return StringUtils.substringAfter(s, pre);
87
		} else {
88
			return StringUtils.substringBetween(s, pre, post);
89
		}
90
	}
91

  
92
	private static List<String> ensureMinOccurs(final List<String> list, final String empty) {
93
		if (list.isEmpty()) {
94
			list.add(empty);
95
		}
96
		return list;
97
	}
98

  
99
	private static Iterable<String> parseParams(final String s) {
100
		return Splitter.on("***").omitEmptyStrings().trimResults().split(s);
101
	}
102

  
103
	private static String getBaseUrl(final String url) {
104
		final StringTemplate b = getTemplate(paramTemplate);
105
		b.setAttribute("param", "BASE_URL");
106
		b.setAttribute("value", url);
107
		return b.toString();
108
	}
109

  
110
	private static String getAccessProtocol(final String protocol, final Map<String, String> otherParams) {
111
		final StringTemplate a = getTemplate(paramTemplate);
112
		a.setAttribute("param", "ACCESS_PROTOCOL");
113
		a.setAttribute("value", protocol);
114
		if ((otherParams != null) && !otherParams.isEmpty()) {
115
			a.setAttribute("attrs", otherParams);
116
		}
117
		return a.toString();
118
	}
119

  
120
	private static StringTemplate getTemplate(final Resource res) {
121
		final StringWriter body = new StringWriter();
122
		try {
123
			IOUtils.copy(res.getInputStream(), body);
124
			return new StringTemplate(body.toString());
125
		} catch (IOException e) {
126
			log.error("unable to get template", e);
127
			throw new RuntimeException(e);
128
		}
129
	}
130

  
131
}
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-1.1.8/src/main/java/eu/dnetlib/msro/openaireplus/workflows/nodes/PrepareStatsParamJobNode.java
1
package eu.dnetlib.msro.openaireplus.workflows.nodes;
2

  
3
import java.util.Map;
4
import java.util.Map.Entry;
5

  
6
import javax.annotation.Resource;
7

  
8
import org.apache.commons.logging.Log;
9
import org.apache.commons.logging.LogFactory;
10
import org.apache.hadoop.conf.Configuration;
11

  
12
import com.google.gson.Gson;
13
import com.google.gson.reflect.TypeToken;
14
import com.googlecode.sarasvati.Arc;
15
import com.googlecode.sarasvati.NodeToken;
16

  
17
import eu.dnetlib.data.hadoop.config.ClusterName;
18
import eu.dnetlib.data.hadoop.config.ConfigurationEnumerator;
19
import eu.dnetlib.enabling.is.lookup.rmi.ISLookUpDocumentNotFoundException;
20
import eu.dnetlib.enabling.is.lookup.rmi.ISLookUpException;
21
import eu.dnetlib.enabling.is.lookup.rmi.ISLookUpService;
22
import eu.dnetlib.enabling.tools.ServiceLocator;
23
import eu.dnetlib.msro.workflows.nodes.SimpleJobNode;
24

  
25
public class PrepareStatsParamJobNode extends SimpleJobNode {
26

  
27
	/**
28
	 * logger.
29
	 */
30
	private static final Log log = LogFactory.getLog(PrepareStatsParamJobNode.class); // NOPMD by marko on 11/24/08 5:02 PM
31

  
32
	private static final String xqueryIsLookupEndpoint =
33
			"//RESOURCE_PROFILE[.//RESOURCE_TYPE/@value='IS_LookUpServiceResourceType']//PROTOCOL[./@name='SOAP']/@address/string()";
34

  
35
	@Resource(name = "lookupLocator")
36
	private ServiceLocator<ISLookUpService> lookupLocator;
37

  
38
	@Resource
39
	protected ConfigurationEnumerator configurationEnumerator;
40

  
41
	private String paramsMapJson;
42

  
43
	@Override
44
	protected String execute(final NodeToken token) throws Exception {
45

  
46
		log.info("prepare stats update job");
47

  
48
		Configuration conf = configurationEnumerator.get(ClusterName.DM);
49
		String nameNode = conf.get("fs.defaultFS");
50

  
51
		token.getEnv().setAttribute("nameNode", nameNode);
52
		token.getEnv().setAttribute("jobTracker", conf.get("mapred.job.tracker"));
53

  
54
		for (Entry<String, String> e : asMap(getParamsMapJson()).entrySet()) {
55
			if (e.getKey().equals("oozieWfApplicationPath")) {
56
				token.getEnv().setAttribute(e.getKey(), nameNode + e.getValue());
57
			} else {
58
				token.getEnv().setAttribute(e.getKey(), e.getValue());
59
			}
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff