forked from D-Net/dnet-hadoop
fixed xpath for semantic relation
This commit is contained in:
parent
ee759ac92d
commit
208ed32315
|
@ -391,7 +391,7 @@ public abstract class AbstractMdRecordToOafMapper {
|
||||||
final String code = ((Node) o).valueOf("@code");
|
final String code = ((Node) o).valueOf("@code");
|
||||||
final String label = ((Node) o).valueOf("@label");
|
final String label = ((Node) o).valueOf("@label");
|
||||||
final String url = ((Node) o).valueOf("@url");
|
final String url = ((Node) o).valueOf("@url");
|
||||||
final String semrel = ((Node) o).valueOf("@semrel");
|
final String semrel = ((Node) o).valueOf("@semanticrelation");
|
||||||
if (StringUtils.isNotBlank(code)) {
|
if (StringUtils.isNotBlank(code)) {
|
||||||
final EoscIfGuidelines eig = new EoscIfGuidelines();
|
final EoscIfGuidelines eig = new EoscIfGuidelines();
|
||||||
eig.setCode(code);
|
eig.setCode(code);
|
||||||
|
|
|
@ -948,6 +948,10 @@ class MappersTest {
|
||||||
assertEquals("https://w3id.org/ro-id/0ab171a7-45c5-4194-82d4-850955504bca", inst.getPid().get(0).getValue());
|
assertEquals("https://w3id.org/ro-id/0ab171a7-45c5-4194-82d4-850955504bca", inst.getPid().get(0).getValue());
|
||||||
assertEquals("https://w3id.org/ro-id/0ab171a7-45c5-4194-82d4-850955504bca", inst.getUrl().get(0));
|
assertEquals("https://w3id.org/ro-id/0ab171a7-45c5-4194-82d4-850955504bca", inst.getUrl().get(0));
|
||||||
assertEquals(1, p.getEoscifguidelines().size());
|
assertEquals(1, p.getEoscifguidelines().size());
|
||||||
|
assertEquals("EOSC::RO-crate", p.getEoscifguidelines().get(0).getCode());
|
||||||
|
assertEquals("EOSC::RO-crate", p.getEoscifguidelines().get(0).getLabel());
|
||||||
|
assertEquals("", p.getEoscifguidelines().get(0).getUrl());
|
||||||
|
assertEquals("compliesWith", p.getEoscifguidelines().get(0).getSemanticRelation());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue