Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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() == "
|
| 209 |
-
choice="
|
| 210 |
-
elif choice.upper() == "
|
| 211 |
-
choice = "
|
| 212 |
-
elif choice.upper() == "
|
| 213 |
-
choice = "
|
| 214 |
-
elif choice.upper() == "
|
| 215 |
-
choice = "
|
| 216 |
-
elif choice.upper() == "
|
| 217 |
-
choice = "
|
| 218 |
-
elif choice.upper() == "NCBITAXON":
|
| 219 |
-
|
|
|
|
|
|
|
| 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] == ",":
|