From fd76c1c7b0c39c660cd3fa8113a46ebc86b2c36b Mon Sep 17 00:00:00 2001 From: Nico Matentzoglu Date: Thu, 13 Aug 2020 15:00:21 +0100 Subject: [PATCH] Update OlsMappingExtractor.py --- oxo-loader/OlsMappingExtractor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oxo-loader/OlsMappingExtractor.py b/oxo-loader/OlsMappingExtractor.py index bd200a1..fb98850 100644 --- a/oxo-loader/OlsMappingExtractor.py +++ b/oxo-loader/OlsMappingExtractor.py @@ -182,7 +182,7 @@ def processSolrDocs(url): if ":" in xref or "_" in xref: toPrefix = OXO.getPrefixFromCui(xref) toId = OXO.getIdFromCui(xref) - + if not toPrefix or not toId: print("Can't get prefix or id for " + xref) continue @@ -282,7 +282,7 @@ def processSolrDocs(url): print("Finished, here are all the unknown sources") for key, value in unknownSource.items() : # see if we can match prefix to db - print(key.encode('utf-8', 'ignore')) + print(key) print("Generating CSV files for neo loading...")