forked from D-Net/dnet-hadoop
[eosc tag] extending criteria for Jupyter Notebook (adding to ORP the same constraint)
This commit is contained in:
parent
eb45ba7af0
commit
af15b1e48d
|
@ -118,6 +118,10 @@ public class SparkEoscTag {
|
|||
if (containscriteriaTwitter(orp)) {
|
||||
addEIG(orp.getEoscifguidelines(), EOSC_TWITTER_DATA, EOSC_TWITTER_DATA, "", COMPLIES_WITH);
|
||||
}
|
||||
if (containsCriteriaNotebook(orp)) {
|
||||
addEIG(orp.getEoscifguidelines(), EOSC_JUPYTER_NOTEBOOK, EOSC_JUPYTER_NOTEBOOK, "",
|
||||
COMPLIES_WITH);
|
||||
}
|
||||
return orp;
|
||||
}, Encoders.bean(OtherResearchProduct.class))
|
||||
.write()
|
||||
|
@ -190,7 +194,7 @@ public class SparkEoscTag {
|
|||
.orElse(false);
|
||||
}
|
||||
|
||||
private static boolean containsCriteriaNotebook(Software s) {
|
||||
private static boolean containsCriteriaNotebook(Result s) {
|
||||
if (!Optional.ofNullable(s.getSubject()).isPresent())
|
||||
return false;
|
||||
if (s.getSubject().stream().anyMatch(sbj -> sbj.getValue().toLowerCase().contains("jupyter")))
|
||||
|
|
Loading…
Reference in New Issue