/** * Return an array of EvidenceTypes that correspond to the ids in the metadata. * * @param graph - ondex graph * @param strIds - array of ids * @return */ public static AttributeName[] convertAttributeNames(final ONDEXGraph graph, final String[] strIds, final Class cls) { final AttributeName[] result = new AttributeName[strIds.length]; for (int i = 0; i < strIds.length; i++) { result[i] = createAttName(graph, strIds[i], cls); } return result; }
/** * Return an array of EvidenceTypes that correspond to the ids in the metadata. * * @param graph - ondex graph * @param strIds - array of ids * @return */ public static AttributeName[] convertAttributeNames(final ONDEXGraph graph, final String[] strIds, final Class[] classes) { if (strIds.length != classes.length) throw new RuntimeException("convertAttributeNames - arument error. The number of classes supplied is not the same as the nubmer of ids."); final AttributeName[] result = new AttributeName[strIds.length]; for (int i = 0; i < strIds.length; i++) { result[i] = createAttName(graph, strIds[i], classes[i]); } return result; }
return; AttributeName att = MdHelper.createAttName(graph, "URI", String.class); Set<ONDEXConcept> cs = viewer.getPickedNodes(); if (n != null) {
return; AttributeName att = MdHelper.createAttName(graph, "URI", String.class); AttributeName attType = MdHelper.createAttName(graph, "TYPE_URI", String.class);
AttributeName [] ans = new AttributeName[title.length]; for(int i =2; i < cls.length; i++){ ans[i] = MdHelper.createAttName(graph, title[i], cls[i]);
AttributeName [] ans = new AttributeName[title.length]; for(int i =1; i < cls.length; i++){ ans[i] = MdHelper.createAttName(graph, title[i], cls[i]);
public static final void showGOClusters(OVTK2PropertiesAggregator viewer, String ontoCls, String name, String entityCls, String clsuterAtt) { ONDEXJUNGGraph graph = viewer.getONDEXJUNGGraph(); AttributeName att = MdHelper.createAttName(graph, clsuterAtt, Integer.class); Map<Object, Set<ONDEXConcept>> clusterIndex = new HashMap<Object, Set<ONDEXConcept>>(); SetMapBuilder<Object, ONDEXConcept> sb = new SetMapBuilder<Object, ONDEXConcept>(clusterIndex);