From 9c9d50f486bd39d86c023895f6f5b20ad258549f Mon Sep 17 00:00:00 2001 From: "miriam.baglioni" Date: Wed, 4 Nov 2020 17:26:22 +0100 Subject: [PATCH] removed code specific for pid graph dump --- .../eu/dnetlib/dhp/oa/graph/dump/Utils.java | 31 ------------------- 1 file changed, 31 deletions(-) diff --git a/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/Utils.java b/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/Utils.java index 524ec0eb1a..62e721a3f6 100644 --- a/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/Utils.java +++ b/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/Utils.java @@ -81,36 +81,5 @@ public class Utils { return new Gson().fromJson(sb.toString(), CommunityMap.class); } - public static List getRelationPair(String pid1, String pid2, String type1, String type2, - String semtype, String rel1, String rel2) { - List ret = new ArrayList<>(); - ret - .add( - Relation - .newInstance( - Node.newInstance(pid1, type1), - Node.newInstance(pid2, type2), - RelType.newInstance(rel1, semtype), - null)); - ret - .add( - Relation - .newInstance( - Node.newInstance(pid2, type2), - Node.newInstance(pid1, type1), - RelType.newInstance(rel2, semtype), - null)); - - return ret; - } - - public static Entity getEntity(String fund, String code) throws DocumentException { - { - final Document doc; - doc = new SAXReader().read(new StringReader(fund)); - String name = ((org.dom4j.Node) (doc.selectNodes("//funder/shortname").get(0))).getText(); - return Entity.newInstance(name + ":" + code); - } - } }