forked from D-Net/dnet-hadoop
added relatedIdentifierType, fix IsCitedBy value
This commit is contained in:
parent
7f9636ef00
commit
f833de8a75
|
@ -70,7 +70,7 @@ public class RDFConverter {
|
||||||
DataciteProtein dataciteProtein = new DataciteProtein();
|
DataciteProtein dataciteProtein = new DataciteProtein();
|
||||||
|
|
||||||
citations.forEach(citation -> {
|
citations.forEach(citation -> {
|
||||||
addRelatedIdentifier(dataciteProtein, citation, "CitedBy");
|
addRelatedIdentifier(dataciteProtein, citation, "IsCitedBy");
|
||||||
});
|
});
|
||||||
|
|
||||||
DataciteProtein.Types types = new DataciteProtein.Types();
|
DataciteProtein.Types types = new DataciteProtein.Types();
|
||||||
|
@ -203,6 +203,9 @@ public class RDFConverter {
|
||||||
if (!relationType.isEmpty()) {
|
if (!relationType.isEmpty()) {
|
||||||
relatedIdentifier.setRelationType(relationType);
|
relatedIdentifier.setRelationType(relationType);
|
||||||
}
|
}
|
||||||
|
if (relatedIdentifierValue.contains("http://") || relatedIdentifierValue.contains("https://")) {
|
||||||
|
relatedIdentifier.setRelatedIdentifierType("URL");
|
||||||
|
}
|
||||||
DataciteProtein.getRelatedIdentifiers().add(relatedIdentifier);
|
DataciteProtein.getRelatedIdentifiers().add(relatedIdentifier);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue