Did not know how to get attributes from the ondex data, researched into it by looking at various classes such as GDS and AttributeName. This is my current method of getting this type of data from the dataset:-

Example – TanimotoCoefficient of a “sim” relation:


int i = 0;
for (ONDEXRelation r : relationview) {
// Get an attribute test;
AttributeName an = graph.getMetaData().getAttributeName("TanimotoCoefficient");
GDS gds = r.getGDS(an);
System.out.println(i + "-" + gds.getValue());
i++;
}

General terminal output seems to be done like this in other classes :-
fireEventOccurred(new GeneralOutputEvent("Unknown Relation type set :" + rts + " ignoring", "[Filter - start]"));

Thoughts :-

Store the semantic motifs as ONDEXGraph’s in a Set.

Create these subgraphs using the drug1, drug2, drug1Relations and drug2Relations, used in the code to count motifs. Does ONDEXViewFunctions provide this? (.and, .andNot and .or) Do these automatically give the concepts when “and’ing” to ONDEXView’s of relations.

- But only if it is a ‘match‘.