From e964ddb06bbfb7c930148ac199da78f95959290b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Szeremeta?= Date: Thu, 18 Jul 2019 18:38:29 +0200 Subject: [PATCH] Better DrugBank support for Jena formats --- src/main/java/pl/edu/uwb/ii/sdfeater/Compound.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/pl/edu/uwb/ii/sdfeater/Compound.java b/src/main/java/pl/edu/uwb/ii/sdfeater/Compound.java index a06919b..4bd9331 100644 --- a/src/main/java/pl/edu/uwb/ii/sdfeater/Compound.java +++ b/src/main/java/pl/edu/uwb/ii/sdfeater/Compound.java @@ -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); } }