Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump to TRAPI 1.5 #22

Merged
merged 2 commits into from
Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading