Skip to content

Commit

Permalink
Better DrugBank support for Jena formats
Browse files Browse the repository at this point in the history
  • Loading branch information
lszeremeta committed Jul 18, 2019
1 parent eca2b3e commit e964ddb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/java/pl/edu/uwb/ii/sdfeater/Compound.java
Original file line number Diff line number Diff line change
Expand Up @@ -355,14 +355,18 @@ void addToJenaModel() {
String value = values.get(0);
Property p = jenaModel.createProperty("https://schema.org/iupacName");
jenaModel.add(me, p, value);
} else if ("CAS Registry Numbers".equals(key)) {
} else if ("CAS Registry Numbers".equals(key) || "CAS_NUMBER".equals((key))) {
String value = values.get(0);
Property p = jenaModel.createProperty("https://schema.org/identifier");
jenaModel.add(me, p, value);
} else if ("Synonyms".equals(key)) {
} else if ("Synonyms".equals(key) || "SYNONYMS".equals(key)) {
String value = values.get(0);
Property p = jenaModel.createProperty("https://schema.org/alternateName");
jenaModel.add(me, p, value);
} else if ("COMMON_NAME".equals(key)) {
String value = values.get(0);
Property p = jenaModel.createProperty("https://schema.org/name");
jenaModel.add(me, p, value);
}
}

Expand Down

0 comments on commit e964ddb

Please sign in to comment.