Skip to content

Commit

Permalink
Fix capitalisation of InChIKey property
Browse files Browse the repository at this point in the history
Closes #318
  • Loading branch information
sneumann authored Dec 2, 2022
1 parent 8adfb07 commit bc3eae7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ public String createStructuredData() {
molecularEntity.addProperty("molecularFormula", CH_FORMULA());
molecularEntity.addProperty("description", description);
molecularEntity.addProperty("monoisotopicMolecularWeight", CH_EXACT_MASS());
if (InChiKey!=null) molecularEntity.addProperty("inchikey", InChiKey);
if (InChiKey!=null) molecularEntity.addProperty("inChIKey", InChiKey);
if (CH_NAME().size() == 1) molecularEntity.addProperty("alternateName", CH_NAME().get(0));
else if (CH_NAME().size() >= 1) molecularEntity.add("alternateName", gson.toJsonTree(CH_NAME()));

Expand Down Expand Up @@ -842,4 +842,4 @@ private static Map<String, String> listToMap(List<Pair<String, String>> list) {
for (Pair<String, String> pair : list) map.put(pair.getKey(), pair.getValue());
return map;
}
}
}

0 comments on commit bc3eae7

Please sign in to comment.