Revision 52751
Added by Alessia Bardi almost 6 years ago
modules/dnet-mapreduce-jobs/branches/beta/src/test/java/eu/dnetlib/data/mapreduce/hbase/index/config/Context.java | ||
---|---|---|
4 | 4 |
|
5 | 5 |
public final static String xml = "<ContextDSResources>" |
6 | 6 |
+ "<entry id=\"fam\" label=\"Fisheries and Acquacolture Management\" name=\"context\" type=\"community\"/>" |
7 |
+ "<entry id=\"clarin\" label=\"CLARIN\" name=\"context\" type=\"ri\"/>" |
|
8 |
+"<entry id=\"dh-ch\" label=\"DH-CH\" name=\"context\" type=\"community\"/>" |
|
9 |
+ "<entry id=\"dh-ch::subcommunity\" label=\"Subcommunitiess\" name=\"category\" type=\"\"/>" |
|
10 |
+ "<entry id=\"dh-ch::subcommunity::2\" label=\"CLARIN\" name=\"concept\" type=\"\"/>" |
|
7 | 11 |
+"<entry id=\"egi\" label=\"EGI\" name=\"context\" type=\"ri\"/>" |
8 | 12 |
+ "<entry id=\"egi::classification\" label=\"Scientific Disciplines\" name=\"category\" type=\"\"/>" |
9 | 13 |
+ "<entry id=\"egi::classification::natsc\" label=\"Natural Sciences\" name=\"concept\" type=\"\"/>" |
modules/dnet-mapreduce-jobs/branches/beta/src/test/resources/eu/dnetlib/data/transform/softwareEgiApp.xml | ||
---|---|---|
88 | 88 |
<oaf:accessrights>OPEN</oaf:accessrights> |
89 | 89 |
<oaf:language>eng</oaf:language> |
90 | 90 |
<oaf:concept id="egi"/> |
91 |
<oaf:concept id="dh-ch::subcommunity::2"/> |
|
91 | 92 |
<oaf:hostedBy id="orp_________::EGIAppDB" name="EGI Applications Database"/> |
92 | 93 |
<oaf:collectedFrom id="orp_________::EGIAppDB" name="EGI Applications Database"/> |
93 | 94 |
</metadata> |
modules/dnet-mapreduce-jobs/branches/beta/src/test/resources/eu/dnetlib/data/transform/recordACM.xml | ||
---|---|---|
31 | 31 |
<oaf:hostedBy id="openaire____::acm" name="ACM Digital Library"/> |
32 | 32 |
<oaf:collectedFrom id="openaire____::acm" name="ACM Digital Library"/> |
33 | 33 |
<oaf:identifier identifierType="doi"/> |
34 |
<oaf:concept id="dh-ch::subcommunity::2"/> |
|
34 | 35 |
</metadata> |
35 | 36 |
<about> |
36 | 37 |
<oaf:datainfo> |
modules/dnet-mapreduce-jobs/branches/beta/src/test/resources/eu/dnetlib/data/transform/recordClaim.xml | ||
---|---|---|
28 | 28 |
<dc:creator>Fleury, B. H.</dc:creator> |
29 | 29 |
<dc:identifier identifierType="doi">10.1109/TSP.2011.2140106</dc:identifier> |
30 | 30 |
<dr:CobjIdentifier>10.1109/TSP.2011.2140106</dr:CobjIdentifier> |
31 |
<oaf:concept id="egi"/> |
|
32 |
<oaf:concept id="dh-ch::subcommunity::2"/> |
|
31 | 33 |
</metadata> |
32 | 34 |
<about> |
33 | 35 |
<oaf:datainfo> |
modules/dnet-mapreduce-jobs/branches/beta/src/test/resources/eu/dnetlib/data/transform/recordLindat.xml | ||
---|---|---|
63 | 63 |
<oaf:language>und</oaf:language> |
64 | 64 |
<oaf:hostedBy id="re3data_____::r3d100010386" name="LINDAT/CLARIN repository"/> |
65 | 65 |
<oaf:collectedFrom id="re3data_____::r3d100010386" name="LINDAT/CLARIN repository"/> |
66 |
<oaf:concept id="egi"/> |
|
67 |
<oaf:concept id="dh-ch::subcommunity::2"/> |
|
66 | 68 |
</metadata> |
67 | 69 |
<about xmlns="http://namespace.openaire.eu/" |
68 | 70 |
xmlns:dc="http://purl.org/dc/elements/1.1/" |
modules/dnet-mapreduce-jobs/branches/beta/src/main/java/eu/dnetlib/data/mapreduce/util/XmlRecordFactory.java | ||
---|---|---|
511 | 511 |
} |
512 | 512 |
|
513 | 513 |
if (Context.getDescriptor().equals(fd.getMessageType()) && (o != null)) { |
514 |
contextes.add(((Context) o).getId()); |
|
514 |
final String contextid = ((Context) o).getId(); |
|
515 |
contextes.add(contextid); |
|
516 |
/* FIXME: Workaround for CLARIN mining issue: #3670#note-29 */ |
|
517 |
if(contextid.equalsIgnoreCase("dh-ch::subcommunity::2")){ |
|
518 |
contextes.add("clarin"); |
|
519 |
} |
|
520 |
|
|
515 | 521 |
} |
516 | 522 |
|
517 | 523 |
if (ExtraInfo.getDescriptor().equals(fd.getMessageType()) && (o != null)) { |
Also available in: Unified diff
Workaround for CLARIN mining issue: #3670#note-29