Skip to content

Commit

Permalink
Merge pull request #22 from TranslatorSRI/trapi1_5
Browse files Browse the repository at this point in the history
Bump to TRAPI 1.5
  • Loading branch information
maximusunc authored Apr 25, 2024
2 parents 1040864 + 854173a commit 88f5538
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Settings(BaseSettings):
openapi_server_url: AnyUrl = "http://localhost:9096"
openapi_server_maturity: str = "development"
openapi_server_location: str = "RENCI"
trapi_version: str = "1.4.0"
trapi_version: str = "1.5.0"
redis_host: str = "localhost"
redis_port: int = 6379
redis_password: str = "supersecretpassword"
Expand Down
18 changes: 12 additions & 6 deletions app/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@

openapi_args = dict(
title="SRI Answer Appraiser",
version="0.4.0",
version="0.5.0",
terms_of_service="",
description="SRI service that provides metrics for scoring and ordering of results",
trapi="1.4.0",
biolink_version="3.4.2",
trapi="1.5.0",
biolink_version="4.2.0",
contact={
"name": "Max Wang",
"email": "[email protected]",
Expand Down Expand Up @@ -73,10 +73,12 @@
"MESH:D008687": {
"categories": ["biolink:SmallMolecule"],
"name": "Metformin",
"attributes": [],
},
"MONDO:0005148": {
"categories": ["biolink:Disease"],
"name": "type 2 diabetes mellitus",
"attributes": [],
},
},
"edges": {
Expand All @@ -90,17 +92,21 @@
"resource_role": "primary_knowledge_source",
}
],
"attributes": [],
}
},
},
"results": [
{
"node_bindings": {
"n0": [{"id": "MESH:D008687"}],
"n1": [{"id": "MONDO:0005148"}],
"n0": [{"id": "MESH:D008687", "attributes": []}],
"n1": [{"id": "MONDO:0005148", "attributes": []}],
},
"analyses": [
{"resource_id": "kp0", "edge_bindings": {"n0n1": [{"id": "n0n1"}]}}
{
"resource_id": "kp0",
"edge_bindings": {"n0n1": [{"id": "n0n1", "attributes": []}]},
}
],
}
],
Expand Down
2 changes: 1 addition & 1 deletion requirements-lock.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ python-dotenv==1.0.0
pytz==2023.3
PyYAML==6.0
rdkit==2023.3.2
reasoner-pydantic==4.0.8
reasoner-pydantic==5.0.2
redis==4.6.0
six==1.16.0
sniffio==1.3.0
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ httpx==0.24.1
numpy==1.25.1
pandas==2.0.3
rdkit==2023.3.2
reasoner-pydantic==4.0.8
reasoner-pydantic==5.0.2
redis==4.6.0
tqdm==4.65.0
uvicorn==0.13.3

0 comments on commit 88f5538

Please sign in to comment.