Project

General

Profile

« Previous | Next » 

Revision 40893

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

View differences:

modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.9/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-5.0.9/src/test/java/eu/dnetlib/msro/openaireplus/api/objects/test_record.json
1
{
2
  "originalId": "ORIG_ID_12345",
3
  "title": "TEST TITLE",
4
  "authors": [
5
	"Michele Artini",
6
	"Claudio Atzori",
7
	"Alessia Bardi"
8
  ],
9
  "publisher": "Test publisher",
10
  "description": "DESCRIPTION DESCRIPTION DESCRIPTION DESCRIPTION DESCRIPTION DESCRIPTION",
11
  "language": "ita",
12
  "pids": [
13
	{
14
	  "type": "doi",
15
	  "value": "10.000/xyz-123"
16
	},
17
	{
18
	  "type": "oai",
19
	  "value": "oai:1234"
20
	}
21
  ],
22
  "licenseCode": "OPEN",
23
  "resourceType": "0001",
24
  "url": "http://test.it/xyz",
25
  "collectedFromId": "opendoar____::2659",
26
  "hostedById": "opendoar____::2367",
27
  "linksToProjects": [
28
	"info:eu-repo/grantAgreement/EC/FP7/283595/EU//OpenAIREplus",
29
	"info:eu-repo/grantAgreement/EC/FP7/244909/EU/Making Capabilities Work/WorkAble"
30
  ],
31
  "contexts": [
32
	"egi::classification::natsc::math::pure",
33
	"egi::classification::natsc::math::stats"
34
  ]
35
}
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.9/src/test/java/eu/dnetlib/msro/openaireplus/api/objects/submit_test_record.sh
1
#!/bin/bash
2

  
3
curl -H "Content-Type: application/json" --data @test_record.json "http://localhost:8280/app/mvc/api/publications/feedObject"
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.9/src/test/java/eu/dnetlib/msro/openaireplus/api/objects/PublicationEntryTest.java
1
package eu.dnetlib.msro.openaireplus.api.objects;
2

  
3
import java.io.StringReader;
4
import java.util.ArrayList;
5
import java.util.Arrays;
6
import java.util.Properties;
7

  
8
import eu.dnetlib.enabling.is.lookup.rmi.ISLookUpService;
9
import org.apache.velocity.app.VelocityEngine;
10
import org.dom4j.Document;
11
import org.dom4j.io.OutputFormat;
12
import org.dom4j.io.SAXReader;
13
import org.dom4j.io.XMLWriter;
14
import org.junit.Before;
15
import org.junit.Test;
16
import org.junit.runner.RunWith;
17
import org.mockito.Mock;
18
import org.mockito.invocation.InvocationOnMock;
19
import org.mockito.runners.MockitoJUnitRunner;
20
import org.mockito.stubbing.Answer;
21

  
22
import static org.mockito.Matchers.anyString;
23
import static org.mockito.Mockito.when;
24

  
25
/**
26
 * Created by michele on 14/12/15.
27
 */
28
@RunWith(MockitoJUnitRunner.class)
29
public class PublicationEntryTest {
30

  
31
	private VelocityEngine ve;
32

  
33
	@Mock
34
	private ISLookUpService lookUpService;
35

  
36
	@Before
37
	public void setUp() throws Exception {
38

  
39
		final Properties props = new Properties();
40
		props.setProperty("resource.loader", "class");
41
		props.setProperty("class.resource.loader.class", "org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader");
42
		props.setProperty("runtime.log.logsystem.class", "org.apache.velocity.runtime.log.Log4JLogChute");
43
		ve = new VelocityEngine();
44
		ve.init(props);
45

  
46
		when(lookUpService.quickSearchProfile(anyString())).thenAnswer(new Answer<Object>() {
47
			@Override
48
			public Object answer(final InvocationOnMock invocation) throws Throwable {
49
				final String query = invocation.getArguments()[0].toString();
50
				if (query.contains("dnet:access_modes")) {
51
					return Arrays.asList("OPEN @@@ Open Access");
52
				} else if (query.contains("dnet:publication_resource")) {
53
					return Arrays.asList("0001 @@@ Journal Article");
54
				} else if (query.contains("dnet:pid_types")) {
55
					return Arrays.asList("oai @@@ Open Archive Initiative", "doi @@@ Digital object identifier");
56
				} else if (query.contains("dnet:languages")) {
57
					return Arrays.asList("ita @@@ Italian");
58
				} else if (query.contains("ContextDSResourceType")) {
59
					return Arrays.asList(
60
							"egi::classification::natsc::math::stats @@@ Statistics and Probability",
61
							"egi::classification::natsc::math::pure @@@ Pure Mathematics",
62
							"egi::classification::natsc::math @@@ Mathematics",
63
							"egi::classification::natsc @@@ Natural Sciences",
64
							"egi::classification @@@ EGI classification scheme",
65
							"egi @@@ EGI");
66
				} else {
67
					return new ArrayList<String>();
68
				}
69
			}
70
		});
71

  
72
		when(lookUpService.getResourceProfileByQuery(anyString())).thenAnswer(new Answer<Object>() {
73
			@Override
74
			public Object answer(final InvocationOnMock invocation) throws Throwable {
75
				return "REPO NAME @@@ repo________";
76
			}
77
		});
78
	}
79

  
80
	@Test
81
	public void testAsIndexRecord() throws Exception {
82
		final PublicationEntry pub = new PublicationEntry();
83
		pub.setOriginalId("ORIG_ID_1234");
84
		pub.setTitle("TEST TITLE <test>");
85
		pub.getAuthors().add("Michele Artini");
86
		pub.getAuthors().add("Claudio Atzori");
87
		pub.getAuthors().add("Alessia Bardi");
88
		pub.setPublisher("Test publisher");
89
		pub.setDescription("DESCRIPTION & DESCRIPTION & DESCRIPTION & DESCRIPTION & DESCRIPTION & DESCRIPTION & DESCRIPTION ");
90
		pub.setLanguage("ita");
91
		pub.setLicenseCode("OPEN");
92
		pub.setResourceType("0001");
93
		pub.setUrl("http://test.it/a=1&b=2");
94
		pub.getPids().add(new PidEntry("doi", "10.000/xyz-123"));
95
		pub.getPids().add(new PidEntry("oai", "oai:1234"));
96
		pub.setCollectedFromId("test________::zenodo");
97
		pub.setHostedById("test________::UNKNOWN");
98
		pub.getLinksToProjects().add("info:eu-repo/grantAgreement/EC/FP7/283595/EU//OpenAIREplus");
99
		pub.getLinksToProjects().add("info:eu-repo/grantAgreement/EC/FP7/244909/EU/Making Capabilities Work/WorkAble");
100
		pub.getContexts().add("egi::classification::natsc::math::pure");
101
		pub.getContexts().add("egi::classification::natsc::math::stats");
102
		final String xml = pub.asOafRecord(ve, lookUpService, "http://oaf/oaf.xsd");
103

  
104
		final Document doc = (new SAXReader()).read(new StringReader(xml));
105

  
106
		final OutputFormat format = OutputFormat.createPrettyPrint();
107

  
108
		final XMLWriter writer = new XMLWriter(System.out, format);
109

  
110
		writer.write(doc);
111

  
112
		/*writer.close();*/
113

  
114
	}
115

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

  
3
import java.io.IOException;
4
import java.io.InputStream;
5
import java.io.StringReader;
6
import java.io.StringWriter;
7
import javax.xml.stream.XMLStreamException;
8
import javax.xml.transform.Transformer;
9
import javax.xml.transform.TransformerException;
10
import javax.xml.transform.TransformerFactory;
11
import javax.xml.transform.stream.StreamResult;
12
import javax.xml.transform.stream.StreamSource;
13

  
14
import eu.dnetlib.enabling.is.lookup.rmi.ISLookUpException;
15
import eu.dnetlib.functionality.index.solr.feed.StreamingInputDocumentFactory;
16
import eu.dnetlib.miscutils.datetime.DateUtils;
17
import eu.dnetlib.miscutils.functional.xml.ApplyXslt;
18
import eu.dnetlib.miscutils.functional.xml.IndentXmlString;
19
import org.apache.commons.io.IOUtils;
20
import org.apache.solr.common.SolrInputDocument;
21
import org.junit.Test;
22
import org.springframework.core.io.ClassPathResource;
23

  
24
import static org.junit.Assert.assertFalse;
25
import static org.junit.Assert.assertNotNull;
26

  
27
public class OpenaireLayoutToRecordStylesheetTest {
28

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

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

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

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

  
41
		System.out.println(xsl);
42

  
43
		ApplyXslt xslt = new ApplyXslt(xsl);
44

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

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

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

  
52
		StreamingInputDocumentFactory factory = new StreamingInputDocumentFactory();
53

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

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

  
60
	}
61

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

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

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

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

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

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

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

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

  
86
}
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.9/src/test/java/eu/dnetlib/msro/openaireplus/workflows/nodes/hostedby/PatchHostedByTest.java
1
package eu.dnetlib.msro.openaireplus.workflows.nodes.hostedby;
2

  
3
import java.io.IOException;
4

  
5
import junit.framework.Assert;
6

  
7
import org.dom4j.Document;
8
import org.dom4j.DocumentException;
9
import org.dom4j.io.SAXReader;
10
import org.junit.Test;
11
import org.springframework.core.io.ClassPathResource;
12
import org.springframework.core.io.Resource;
13

  
14
public class PatchHostedByTest {
15

  
16
	private Resource xmlInput = new ClassPathResource("/eu/dnetlib/msro/openaireplus/workflows/nodes/hostedby/input.xml");
17

  
18
	private final SAXReader reader = new SAXReader();
19

  
20
	private final String xpath = "substring-after(//*[local-name()='supplementTo']/*[local-name()='source']/@id,'.')";
21

  
22
	@Test
23
	public void testEvaluate() throws DocumentException, IOException {
24

  
25
		final Document doc = reader.read(xmlInput.getInputStream());
26

  
27
		for (Object o : doc.selectNodes(this.xpath)) {
28
			Assert.assertEquals("journal10808", o);
29
		}
30

  
31
	}
32
}
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.9/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-5.0.9/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-5.0.9/src/test/resources/eu/dnetlib/msro/openaireplus/workflows/nodes/hostedby/input.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<oai:record xmlns:dr="http://www.driver-repository.eu/namespace/dr"
3
    xmlns:dri="http://www.driver-repository.eu/namespace/dri"
4
    xmlns:md="http://www.pangaea.de/MetaData"
5
    xmlns:oaf="http://namespace.openaire.eu/oaf" xmlns:oai="http://www.openarchives.org/OAI/2.0/">
6
    <oai:header>
7
        <dri:objIdentifier>r39633d1e8c4::00bbb9e987a2363ea886dc6004899be2</dri:objIdentifier>
8
        <dri:recordIdentifier>10.1594/PANGAEA.807041</dri:recordIdentifier>
9
        <dri:dateOfCollection>2014-12-01T13:29:20.571Z</dri:dateOfCollection>
10
        <dri:repositoryId/>
11
        <oaf:datasourceprefix>r39633d1e8c4</oaf:datasourceprefix>
12
        <dri:repositoryId>1f978947-5dec-4e5a-a005-02b2035fdbb2_UmVwb3NpdG9yeVNlcnZpY2VSZXNvdXJjZXMvUmVwb3NpdG9yeVNlcnZpY2VSZXNvdXJjZVR5cGU=</dri:repositoryId>
13
    </oai:header>
14
    <oai:metadata>
15
        <datasetsRecord>
16
            <oaf:projectid>info:eu-repo/grantAgreement/EC/FP7/265103</oaf:projectid>
17
            <journal datasourceid="" issn="" name=""/>
18
            <metadata>
19
                <md:MetaData version="2013-03-27">
20
                    <md:citation id="dataset807041">
21
                        <md:author id="dataset.author44941">
22
                            <md:lastName>Kádár</md:lastName>
23
                            <md:firstName>Enikö</md:firstName>
24
                            <md:eMail>enik@pml.ac.uk</md:eMail>
25
                        </md:author>
26
                        <md:author id="dataset.author44942">
27
                            <md:lastName>Fisher</md:lastName>
28
                            <md:firstName>Andrew</md:firstName>
29
                        </md:author>
30
                        <md:author id="dataset.author44943">
31
                            <md:lastName>Stolpe</md:lastName>
32
                            <md:firstName>Björn</md:firstName>
33
                        </md:author>
34
                        <md:author id="dataset.author44944">
35
                            <md:lastName>Harrison</md:lastName>
36
                            <md:firstName>Roy M</md:firstName>
37
                        </md:author>
38
                        <md:author id="dataset.author39176">
39
                            <md:lastName>Parello</md:lastName>
40
                            <md:firstName>Francesco</md:firstName>
41
                            <md:eMail>parello@unipa.it</md:eMail>
42
                        </md:author>
43
                        <md:author id="dataset.author44946">
44
                            <md:lastName>Lead</md:lastName>
45
                            <md:firstName>Jamie</md:firstName>
46
                        </md:author>
47
                        <md:year>2013</md:year>
48
                        <md:title>Image analysis from TEM and AFM micrograph, Table S1, S2, S3, Figure S1, Figure S2</md:title>
49
                        <md:URI>doi:10.1594/PANGAEA.807041</md:URI>
50
                        <md:dateTime>2013-02-10T21:46:50</md:dateTime>
51
                        <md:abstract>We report on metal enrichment along a natural pH gradient owing to increased CO2 degassing at cold, shal- low seeps of Vulcano Island in the Mediterranean Sea, off Sicily. We assessed composition of unfiltered and filtered seawater (b100 nm) along acidic zones ranging between ambient and pH 5, and showed that most seep derived elements are present as nanoclusters which then aggregate into larger colloids while mixing with ambient seawater along a pH gradient. Size and elemental composition of such naturally occurring nanoparticles assessed by modern characterisation methods were in good agreement with the results from conventional analytical methods.
52
                            We provide analytical evidence for the presence in the water column of a large fraction of seep derived ele- ments (e.g. approximately 50% of iron, over 80% of Mn, 100% of Cr, S and Zn) in the form of nano sized par- ticles (e.g. b100 nm) even at typical open ocean pHs. We launch in situ sampling protocols and sample preparation procedures for multi-method suitable to obtain accurate measurements on nanoparticles from environmental samples. Based on our results a first insight to the formation of natural nanoparticles at cold CO2 seeps is presented and the persistence of such nano-clusters in the surrounding seawater is stipulated.</md:abstract>
53
                        <md:supplementTo id="ref39185">
54
                            <md:author id="ref39185.author44941">
55
                                <md:lastName>Kádár</md:lastName>
56
                                <md:firstName>Enikö</md:firstName>
57
                                <md:eMail>enik@pml.ac.uk</md:eMail>
58
                            </md:author>
59
                            <md:author id="ref39185.author44942">
60
                                <md:lastName>Fisher</md:lastName>
61
                                <md:firstName>Andrew</md:firstName>
62
                            </md:author>
63
                            <md:author id="ref39185.author44943">
64
                                <md:lastName>Stolpe</md:lastName>
65
                                <md:firstName>Björn</md:firstName>
66
                            </md:author>
67
                            <md:author id="ref39185.author44944">
68
                                <md:lastName>Harrison</md:lastName>
69
                                <md:firstName>Roy M</md:firstName>
70
                            </md:author>
71
                            <md:author id="ref39185.author39176">
72
                                <md:lastName>Parello</md:lastName>
73
                                <md:firstName>Francesco</md:firstName>
74
                                <md:eMail>parello@unipa.it</md:eMail>
75
                            </md:author>
76
                            <md:author id="ref39185.author44946">
77
                                <md:lastName>Lead</md:lastName>
78
                                <md:firstName>Jamie</md:firstName>
79
                            </md:author>
80
                            <md:year>2012</md:year>
81
                            <md:title>Metallic nanoparticle enrichment at low temperature, shallow CO2 seeps in Southern Italy</md:title>
82
                            <md:source id="ref39185.journal10808">Marine Chemistry</md:source>
83
                            <md:URI>doi:10.1016/j.marchem.2012.07.001</md:URI>
84
                            <md:volume>140</md:volume>
85
                            <md:pages>24-32</md:pages>
86
                        </md:supplementTo>
87
                    </md:citation>
88
                    <md:reference id="ref39182" relationType="Related to" relationTypeId="12">
89
                        <md:author id="ref39182.author44947">
90
                            <md:lastName>Capaccioni</md:lastName>
91
                            <md:firstName>B</md:firstName>
92
                        </md:author>
93
                        <md:author id="ref39182.author44948">
94
                            <md:lastName>Tassi</md:lastName>
95
                            <md:firstName>F</md:firstName>
96
                            <md:orcid>0000-0002-3319-4257</md:orcid>
97
                        </md:author>
98
                        <md:author id="ref39182.author44949">
99
                            <md:lastName>Vaselli</md:lastName>
100
                            <md:firstName>O</md:firstName>
101
                        </md:author>
102
                        <md:year>2001</md:year>
103
                        <md:title>Organic and inorganic geochemistry of low temperature gas discharges at the Baia di Levante beach, Vulcano Island, Italy</md:title>
104
                        <md:source id="ref39182.journal10213">Journal of Volcanology and Geothermal Research</md:source>
105
                        <md:URI>doi:10.1016/S0377-0273(00)00284-5</md:URI>
106
                        <md:volume>108</md:volume>
107
                        <md:pages>173-185</md:pages>
108
                    </md:reference>
109
                    <md:reference id="ref39183" relationType="Related to" relationTypeId="12">
110
                        <md:author id="ref39183.author44941">
111
                            <md:lastName>Kádár</md:lastName>
112
                            <md:firstName>Enikö</md:firstName>
113
                            <md:eMail>enik@pml.ac.uk</md:eMail>
114
                        </md:author>
115
                        <md:author id="ref39183.author44950">
116
                            <md:lastName>Costa</md:lastName>
117
                            <md:firstName>Valentina</md:firstName>
118
                        </md:author>
119
                        <md:author id="ref39183.author44957">
120
                            <md:lastName>Martins</md:lastName>
121
                            <md:firstName>Ines</md:firstName>
122
                            <md:orcid>0000-0002-5362-9801</md:orcid>
123
                        </md:author>
124
                        <md:author id="ref39183.author44951">
125
                            <md:lastName>Santos</md:lastName>
126
                            <md:firstName>Ricado Serrao</md:firstName>
127
                        </md:author>
128
                        <md:author id="ref39183.author44952">
129
                            <md:lastName>Powell</md:lastName>
130
                            <md:firstName>Jonathan J</md:firstName>
131
                        </md:author>
132
                        <md:year>2005</md:year>
133
                        <md:title>Enrichment in trace metals (Al, Mn, Co, Cu, Mo, Cd, Fe, Zn, Pb and Hg) of macro-invertebrate habitats at hydrothermal vents along the Mid-Atlantic Ridge</md:title>
134
                        <md:source id="ref39183.journal6662">Hydrobiologia</md:source>
135
                        <md:URI>doi:10.1007/s10750-005-4758-1</md:URI>
136
                        <md:volume>548(1)</md:volume>
137
                        <md:pages>191-205</md:pages>
138
                    </md:reference>
139
                    <md:reference id="ref39184" relationType="Related to" relationTypeId="12">
140
                        <md:author id="ref39184.author44953">
141
                            <md:lastName>Yücel</md:lastName>
142
                            <md:firstName>Mustafa</md:firstName>
143
                        </md:author>
144
                        <md:author id="ref39184.author44954">
145
                            <md:lastName>Gartman</md:lastName>
146
                            <md:firstName>Amy</md:firstName>
147
                        </md:author>
148
                        <md:author id="ref39184.author44955">
149
                            <md:lastName>Chan</md:lastName>
150
                            <md:firstName>Clara S</md:firstName>
151
                        </md:author>
152
                        <md:author id="ref39184.author44956">
153
                            <md:lastName>Luther</md:lastName>
154
                            <md:firstName>Georg W</md:firstName>
155
                        </md:author>
156
                        <md:year>2011</md:year>
157
                        <md:title>Hydrothermal vents as a kinetically stable source of iron-sulphide-bearing nanoparticles to the ocean</md:title>
158
                        <md:source id="ref39184.journal11670">Nature Geoscience</md:source>
159
                        <md:URI>doi:10.1038/ngeo1148</md:URI>
160
                        <md:volume>4</md:volume>
161
                        <md:pages>367-371</md:pages>
162
                    </md:reference>
163
                    <md:reference id="ref54021" relationType="Further details" relationTypeId="17">
164
                        <md:title>Supplementary information - Image analysis from TEM and AFM micrographs</md:title>
165
                        <md:URI>hdl:10013/epic.40911.d001</md:URI>
166
                    </md:reference>
167
                    <md:extent>
168
                        <md:geographic>
169
                            <md:westBoundLongitude>14.9</md:westBoundLongitude>
170
                            <md:eastBoundLongitude>14.9</md:eastBoundLongitude>
171
                            <md:southBoundLatitude>38.53</md:southBoundLatitude>
172
                            <md:northBoundLatitude>38.53</md:northBoundLatitude>
173
                            <md:meanLongitude>14.9</md:meanLongitude>
174
                            <md:meanLatitude>38.53</md:meanLatitude>
175
                        </md:geographic>
176
                        <md:topoType id="topotype1">not specified</md:topoType>
177
                    </md:extent>
178
                    <md:project id="project4142" type="EU">
179
                        <md:label>MedSeA</md:label>
180
                        <md:name>Mediterranean Sea Acidification in a Changing Climate</md:name>
181
                        <md:URI>http://medsea-project.eu/</md:URI>
182
                    </md:project>
183
                    <md:event id="event2678800">
184
                        <md:label>Vulcano_Island</md:label>
185
                        <md:latitude>38.53</md:latitude>
186
                        <md:longitude>14.9</md:longitude>
187
                        <md:location id="event2678800.location19077">Aeolian Islands, Mediterranean Sea, off Sicily</md:location>
188
                    </md:event>
189
                    <md:size unit="kBytes">2291.0</md:size>
190
                    <md:license id="license1">
191
                        <md:label>CC-BY</md:label>
192
                        <md:name>Creative Commons Attribution 3.0 Unported</md:name>
193
                        <md:URI>http://creativecommons.org/licenses/by/3.0/</md:URI>
194
                    </md:license>
195
                    <md:keywords>
196
                        <md:techKeyword type="autoGenerated">supplement</md:techKeyword>
197
                        <md:techKeyword type="autoGenerated">citable</md:techKeyword>
198
                        <md:techKeyword type="autoGenerated">author39176</md:techKeyword>
199
                        <md:techKeyword type="autoGenerated">author44941</md:techKeyword>
200
                        <md:techKeyword type="autoGenerated">author44942</md:techKeyword>
201
                        <md:techKeyword type="autoGenerated">author44943</md:techKeyword>
202
                        <md:techKeyword type="autoGenerated">author44944</md:techKeyword>
203
                        <md:techKeyword type="autoGenerated">author44946</md:techKeyword>
204
                        <md:techKeyword type="autoGenerated">author44947</md:techKeyword>
205
                        <md:techKeyword type="autoGenerated">author44948</md:techKeyword>
206
                        <md:techKeyword type="autoGenerated">author44949</md:techKeyword>
207
                        <md:techKeyword type="autoGenerated">author44950</md:techKeyword>
208
                        <md:techKeyword type="autoGenerated">author44951</md:techKeyword>
209
                        <md:techKeyword type="autoGenerated">author44952</md:techKeyword>
210
                        <md:techKeyword type="autoGenerated">author44953</md:techKeyword>
211
                        <md:techKeyword type="autoGenerated">author44954</md:techKeyword>
212
                        <md:techKeyword type="autoGenerated">author44955</md:techKeyword>
213
                        <md:techKeyword type="autoGenerated">author44956</md:techKeyword>
214
                        <md:techKeyword type="autoGenerated">author44957</md:techKeyword>
215
                        <md:techKeyword type="autoGenerated">dataset807041</md:techKeyword>
216
                        <md:techKeyword type="autoGenerated">event2678800</md:techKeyword>
217
                        <md:techKeyword type="autoGenerated">journal10213</md:techKeyword>
218
                        <md:techKeyword type="autoGenerated">journal10808</md:techKeyword>
219
                        <md:techKeyword type="autoGenerated">journal11670</md:techKeyword>
220
                        <md:techKeyword type="autoGenerated">journal6662</md:techKeyword>
221
                        <md:techKeyword type="autoGenerated">license1</md:techKeyword>
222
                        <md:techKeyword type="autoGenerated">location19077</md:techKeyword>
223
                        <md:techKeyword type="autoGenerated">project4142</md:techKeyword>
224
                        <md:techKeyword type="autoGenerated">ref39182</md:techKeyword>
225
                        <md:techKeyword type="autoGenerated">ref39183</md:techKeyword>
226
                        <md:techKeyword type="autoGenerated">ref39184</md:techKeyword>
227
                        <md:techKeyword type="autoGenerated">ref39185</md:techKeyword>
228
                        <md:techKeyword type="autoGenerated">ref54021</md:techKeyword>
229
                        <md:techKeyword type="autoGenerated">topotype1</md:techKeyword>
230
                    </md:keywords>
231
                    <md:technicalInfo>
232
                        <md:entry key="xmlLastModified" value="2014-11-13T08:51:13Z"/>
233
                        <md:entry key="mimeType" value="application/pdf"/>
234
                        <md:entry key="status" value="published &amp; citable"/>
235
                        <md:entry key="status_num" value="11"/>
236
                        <md:entry key="DOIRegistryStatus" value="registered"/>
237
                        <md:entry key="DOIRegistryStatus_num" value="4"/>
238
                        <md:entry key="loginOption" value="unrestricted"/>
239
                        <md:entry key="loginOption_num" value="1"/>
240
                        <md:entry key="staticURL" value="hdl:10013/epic.40911.d002"/>
241
                    </md:technicalInfo>
242
                </md:MetaData>
243
            </metadata>
244
        </datasetsRecord>
245
    </oai:metadata>
246
</oai:record>
247

  
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.9/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.locators.UniqueServiceLocator;
14
import eu.dnetlib.msro.workflows.util.ValidNodeValuesFetcher;
15

  
16
public class DownloadPluginValues extends ValidNodeValuesFetcher {
17

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

  
20
	@Resource
21
	private UniqueServiceLocator serviceLocator;
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 = serviceLocator.getService(DownloadService.class).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-5.0.9/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-5.0.9/src/main/java/eu/dnetlib/msro/openaireplus/utils/OafToIndexRecordFactory.java
1
package eu.dnetlib.msro.openaireplus.utils;
2

  
3
import java.io.IOException;
4
import java.io.StringReader;
5
import java.io.StringWriter;
6
import javax.annotation.Resource;
7
import javax.xml.transform.Transformer;
8
import javax.xml.transform.TransformerException;
9
import javax.xml.transform.TransformerFactory;
10
import javax.xml.transform.stream.StreamResult;
11
import javax.xml.transform.stream.StreamSource;
12

  
13
import eu.dnetlib.enabling.is.lookup.rmi.ISLookUpDocumentNotFoundException;
14
import eu.dnetlib.enabling.is.lookup.rmi.ISLookUpException;
15
import eu.dnetlib.enabling.is.lookup.rmi.ISLookUpService;
16
import eu.dnetlib.enabling.locators.UniqueServiceLocator;
17
import eu.dnetlib.miscutils.functional.xml.ApplyXslt;
18
import org.apache.commons.io.IOUtils;
19
import org.springframework.beans.factory.annotation.Required;
20
import org.springframework.core.io.ClassPathResource;
21

  
22
/**
23
 * Created by michele on 15/12/15.
24
 */
25
public class OafToIndexRecordFactory {
26

  
27
	private ClassPathResource layoutToRecord;
28

  
29
	@Resource
30
	private UniqueServiceLocator serviceLocator;
31

  
32
	public ApplyXslt newTransformer(final String format) throws ISLookUpException, IOException, TransformerException {
33
		final TransformerFactory factory = TransformerFactory.newInstance();
34
		final Transformer layoutTransformer = factory.newTransformer(readLayoutToRecord());
35

  
36
		final StreamResult layoutToXsltXslt = new StreamResult(new StringWriter());
37

  
38
		layoutTransformer.setParameter("format", format);
39
		layoutTransformer.transform(new StreamSource(new StringReader(getLayoutSource(format))), layoutToXsltXslt);
40

  
41
		return new ApplyXslt(layoutToXsltXslt.getWriter().toString());
42
	}
43

  
44
	private StreamSource readLayoutToRecord() throws IOException {
45
		return new StreamSource(new StringReader(IOUtils.toString(layoutToRecord.getInputStream())));
46
	}
47

  
48
	private String getLayoutSource(final String format) throws ISLookUpDocumentNotFoundException, ISLookUpException {
49
		return serviceLocator.getService(ISLookUpService.class).getResourceProfileByQuery(
50
				"collection('/db/DRIVER/MDFormatDSResources/MDFormatDSResourceType')[.//NAME='" + format + "']//LAYOUT[@name='index']");
51
	}
52

  
53
	public ClassPathResource getLayoutToRecord() {
54
		return layoutToRecord;
55
	}
56

  
57
	@Required
58
	public void setLayoutToRecord(final ClassPathResource layoutToRecord) {
59
		this.layoutToRecord = layoutToRecord;
60
	}
61

  
62
}
modules/dnet-openaireplus-workflows/tags/dnet-openaireplus-workflows-5.0.9/src/main/java/eu/dnetlib/msro/openaireplus/api/RecentPublicationsQueue.java
1
package eu.dnetlib.msro.openaireplus.api;
2

  
3
import java.io.StringReader;
4
import java.util.Iterator;
5
import java.util.List;
6

  
7
import com.mongodb.*;
8
import eu.dnetlib.miscutils.datetime.DateUtils;
9
import org.apache.commons.logging.Log;
10
import org.apache.commons.logging.LogFactory;
11
import org.dom4j.io.SAXReader;
12
import org.springframework.beans.factory.annotation.Required;
13

  
14
/**
15
 * Created by michele on 11/11/15.
16
 */
17
public class RecentPublicationsQueue implements Iterable<String> {
18

  
19
	private static final Log log = LogFactory.getLog(RecentPublicationsQueue.class);
20

  
21
	private DB db;
22
	private String collection;
23

  
24
	public void init() {
25
		if (!db.collectionExists(collection)) {
26
			log.info(String.format("creating collection %s", collection));
27
			db.createCollection(collection, new BasicDBObject());
28
		}
29
	}
30

  
31
	@Override
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff