diff --git a/app/config.py b/app/config.py index 9db20ba..23576e1 100644 --- a/app/config.py +++ b/app/config.py @@ -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" diff --git a/app/server.py b/app/server.py index 0d5231b..40b7deb 100644 --- a/app/server.py +++ b/app/server.py @@ -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": "max@covar.com", @@ -73,10 +73,12 @@ "MESH:D008687": { "categories": ["biolink:SmallMolecule"], "name": "Metformin", + "attributes": [], }, "MONDO:0005148": { "categories": ["biolink:Disease"], "name": "type 2 diabetes mellitus", + "attributes": [], }, }, "edges": { @@ -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": []}]}, + } ], } ], diff --git a/requirements-lock.txt b/requirements-lock.txt index cf79215..c4dbf7d 100644 --- a/requirements-lock.txt +++ b/requirements-lock.txt @@ -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 diff --git a/requirements.txt b/requirements.txt index 03e7735..b584be0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 \ No newline at end of file