forked from D-Net/dnet-hadoop
Compare commits
2 Commits
7f9636ef00
...
8f281846a4
Author | SHA1 | Date |
---|---|---|
Enrico Ottonello | 8f281846a4 | |
Enrico Ottonello | f833de8a75 |
|
@ -36,7 +36,7 @@
|
|||
],
|
||||
"dates": [
|
||||
{
|
||||
"date": "2021-12-09T21:10:30",
|
||||
"date": "2021-12-10T11:11:09",
|
||||
"dateType": "Collected"
|
||||
}
|
||||
]
|
||||
|
|
|
@ -70,7 +70,7 @@ public class RDFConverter {
|
|||
DataciteProtein dataciteProtein = new DataciteProtein();
|
||||
|
||||
citations.forEach(citation -> {
|
||||
addRelatedIdentifier(dataciteProtein, citation, "CitedBy");
|
||||
addRelatedIdentifier(dataciteProtein, citation, "IsCitedBy");
|
||||
});
|
||||
|
||||
DataciteProtein.Types types = new DataciteProtein.Types();
|
||||
|
@ -203,6 +203,9 @@ public class RDFConverter {
|
|||
if (!relationType.isEmpty()) {
|
||||
relatedIdentifier.setRelationType(relationType);
|
||||
}
|
||||
if (relatedIdentifierValue.contains("http://") || relatedIdentifierValue.contains("https://")) {
|
||||
relatedIdentifier.setRelatedIdentifierType("URL");
|
||||
}
|
||||
DataciteProtein.getRelatedIdentifiers().add(relatedIdentifier);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue