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); - } - } }