Project

General

Profile

« Previous | Next » 

Revision 53095

View differences:

modules/dnet-grid-application/trunk/src/main/java/eu/dnetlib/grid/process/utils/GridUtils.java
25 25
import eu.dnetlib.data.proto.OafProtos.OafEntity;
26 26
import eu.dnetlib.data.proto.OafProtos.OafRel;
27 27
import eu.dnetlib.data.proto.OrganizationProtos.Organization;
28
import eu.dnetlib.data.proto.RelTypeProtos.RelType;
29
import eu.dnetlib.data.proto.RelTypeProtos.SubRelType;
28 30
import eu.dnetlib.data.proto.TypeProtos.Type;
29 31
import eu.dnetlib.grid.process.model.GridOrganization;
30 32
import eu.dnetlib.grid.process.model.GridResponse;
......
106 108
			final Map<String, String> orgRels,
107 109
			final KeyValue collectedFrom) {
108 110

  
109
		// TODO ADD ALTERNATIVE NAMES AND RELS
110

  
111 111
		final OafEntity.Builder entity = OafEntity.newBuilder()
112 112
				.setId(openaireId)
113 113
				.addPid(StructuredProperty.newBuilder()
......
131 131
				.filter(e -> !e.getKey().equals(openaireId))
132 132
				.forEach(e -> entity.addCachedRel(
133 133
						OafRel.newBuilder()
134
								.setSource(openaireId)
134 135
								.setTarget(e.getKey())
136
								.setRelType(RelType.organizationOrganization)
137
								.setSubRelType(SubRelType.similarity)
138
								.setRelClass("") // TODO ???
139
								.setChild(false)
135 140
								// TODO ??? e.getValue()
136 141
								.addCollectedfrom(collectedFrom)));
137 142

  
modules/dnet-grid-application/trunk/src/main/resources/application.properties
1
spring.main.banner-mode = off
2
logging.level.root      = WARN

Also available in: Unified diff