Revision 45423
Added by Sandro La Bruzzo almost 8 years ago
modules/dnet-graph-domain/trunk/src/main/java/eu/dnetlib/data/transform/xml/CommonDNetXsltFunctions.java | ||
---|---|---|
6 | 6 |
import com.google.common.collect.Lists; |
7 | 7 |
import com.google.common.collect.Maps; |
8 | 8 |
import eu.dnetlib.data.graph.model.DNGFRowKeyDecoder; |
9 |
import eu.dnetlib.data.graph.utils.RelDescriptor; |
|
9 | 10 |
import eu.dnetlib.data.proto.DNGFProtos.DNGF; |
10 | 11 |
import eu.dnetlib.data.proto.DNGFProtos.DNGFEntity; |
11 | 12 |
import eu.dnetlib.data.proto.DNGFProtos.DNGFRel; |
... | ... | |
223 | 224 |
} |
224 | 225 |
} |
225 | 226 |
|
227 |
|
|
228 |
public static String relQualifier(final String ontology, final String termCode, final String targetId) { |
|
229 |
return new RelDescriptor(ontology, termCode, targetId).qualifier(); |
|
230 |
} |
|
231 |
|
|
226 | 232 |
protected static void manageDate(NodeList dates, DatasetProtos.Dataset.Metadata.Builder metadataProto) { |
227 | 233 |
for (int i = 0; i < dates.getLength(); i++) { |
228 | 234 |
Node currentNode = dates.item(i); |
Also available in: Unified diff
added rel Qualifier method