jattokatarratto commited on
Commit
ff4573f
·
verified ·
1 Parent(s): 3a7eb69

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -12
app.py CHANGED
@@ -205,18 +205,20 @@ def process_row_BioPortal_api(args, key_bioportal, row):
205
 
206
  onto_clauses = ""
207
  for choice in args.KG_restriction:
208
- if choice.upper() == "SNOMEDCT":
209
- choice="SNOMED"
210
- elif choice.upper() == "OBOREL":
211
- choice = "RO"
212
- elif choice.upper() == "PTRANS":
213
- choice = "TRANS"
214
- elif choice.upper() == "FOODON":
215
- choice = "FoodOn"
216
- elif choice.upper() == "GEOSPARQL":
217
- choice = "GeoSPARQL"
218
- elif choice.upper() == "NCBITAXON":
219
- choice = "NCBITAXON,NCBITaxon_"
 
 
220
  onto_clauses=onto_clauses+choice+","
221
 
222
  if onto_clauses and onto_clauses[-1] == ",":
 
205
 
206
  onto_clauses = ""
207
  for choice in args.KG_restriction:
208
+ if choice.upper() == "SNOMED":
209
+ choice="SNOMEDCT"
210
+ elif choice.upper() == "RO":
211
+ choice = "OBOREL"
212
+ elif choice.upper() == "TRANS":
213
+ choice = "PTRANS"
214
+ elif choice.upper() == "FoodOn":
215
+ choice = "FOODON"
216
+ elif choice.upper() == "GeoSPARQL":
217
+ choice = "GEOSPARQL"
218
+ # elif choice.upper() == "NCBITAXON":
219
+ # choice = "NCBITAXON,NCBITaxon_"
220
+ elif choice.upper() == "NCBITaxon_":
221
+ choice = "NCBITAXON"
222
  onto_clauses=onto_clauses+choice+","
223
 
224
  if onto_clauses and onto_clauses[-1] == ",":