1
0
Fork 0
This commit is contained in:
Miriam Baglioni 2020-07-29 18:00:08 +02:00
parent d22f106f27
commit 9e722aa1ef
2 changed files with 8 additions and 8 deletions

View File

@ -27,5 +27,5 @@ public class Constants implements Serializable {
public static final String HARVESTED = "Harvested";
public static final String DEFAULT_TRUST = "0.9";
public static final String FUNDER_DS = "entityregistry::projects";
// public static final String FUNDER_DS = "entityregistry::projects";
}

View File

@ -103,13 +103,13 @@ public class DumpGraphEntities implements Serializable {
private static Datasource mapDatasource(eu.dnetlib.dhp.schema.oaf.Datasource d) {
Datasource datasource = new Datasource();
Optional<eu.dnetlib.dhp.schema.oaf.Qualifier> odstype = Optional.ofNullable(d.getDatasourcetype());
if(odstype.isPresent()){
if (odstype.get().getClassid().equals(Constants.FUNDER_DS)){
return null;
}
}
// Optional<eu.dnetlib.dhp.schema.oaf.Qualifier> odstype = Optional.ofNullable(d.getDatasourcetype());
//
// if(odstype.isPresent()){
// if (odstype.get().getClassid().equals(Constants.FUNDER_DS)){
// return null;
// }
// }
datasource.setId(d.getId());