{"openapi":"3.1.0","info":{"title":"FastAPI","description":"\n\n# This is the v3 Monarch API.\n\nThis API is a RESTful web service that provides programmatic access to the Monarch Initiative's knowledge graph,\nand which serves as the backend to the [Monarch Initiative's website](https://monarchinitiative.org).\n","version":"0.1.0"},"paths":{"/v3/api/association":{"get":{"tags":["association"],"summary":" Get Associations","description":"Retrieves all associations for a given entity, or between two entities.","operationId":"_get_associations_v3_api_association_get","parameters":[{"name":"category","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/AssociationCategory"},"title":"Category"}},{"name":"subject","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Subject"}},{"name":"subject_category","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/EntityCategory"},"title":"Subject Category"}},{"name":"subject_namespace","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Subject Namespace"}},{"name":"subject_taxon","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Subject Taxon"}},{"name":"predicate","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/AssociationPredicate"},"title":"Predicate"}},{"name":"object","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Object"}},{"name":"object_category","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/EntityCategory"},"title":"Object Category"}},{"name":"object_namespace","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Object Namespace"}},{"name":"object_taxon","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Object Taxon"}},{"name":"entity","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Entity"}},{"name":"primary_knowledge_source","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Primary Knowledge Source"}},{"name":"direct","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Direct"}},{"name":"facet_fields","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"title":"Facet Fields"}},{"name":"facet_queries","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"title":"Facet Queries"}},{"name":"filter_queries","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"title":"Filter Queries"}},{"name":"compact","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Compact"}},{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search query to filter associations","title":"Query"},"description":"Search query to filter associations"},{"name":"format","in":"query","required":false,"schema":{"$ref":"#/components/schemas/OutputFormat","title":"Output format for the response","examples":["json","tsv"],"default":"json"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":0,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AssociationResults"},{"$ref":"#/components/schemas/CompactAssociationResults"},{"type":"string"}],"title":"Response  Get Associations V3 Api Association Get"}}}},"404":{"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/api/case-phenotype-matrix/{disease_id}":{"get":{"tags":["case-phenotype"],"summary":"Get case-phenotype matrix for a disease","description":"Returns a matrix of cases (patients) and their phenotypes for a given disease.\n\n    The matrix includes:\n    - **cases**: List of patient cases with the disease\n    - **phenotypes**: List of phenotypes observed across all cases\n    - **bins**: Body system categories (HistoPheno) with phenotype counts\n    - **cells**: Map of case:phenotype pairs to observation details\n\n    Use `direct=true` (default) to get only cases with exactly this disease.\n    Use `direct=false` to include cases with descendant diseases (subtypes).","operationId":"get_case_phenotype_matrix_v3_api_case_phenotype_matrix__disease_id__get","parameters":[{"name":"disease_id","in":"path","required":true,"schema":{"type":"string","description":"MONDO disease ID","examples":["MONDO:0007078"],"title":"Disease Id"},"description":"MONDO disease ID"},{"name":"direct","in":"query","required":false,"schema":{"type":"boolean","description":"Only include cases with exactly this disease","default":true,"title":"Direct"},"description":"Only include cases with exactly this disease"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"description":"Maximum number of cases","default":1000,"title":"Limit"},"description":"Maximum number of cases"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CasePhenotypeMatrixResponse"}}}},"400":{"description":"Case count exceeds limit, or ID is not a disease"},"404":{"description":"Disease not found"},"422":{"description":"Invalid disease ID format"}}}},"/v3/api/entity/{id}":{"get":{"tags":["entity"],"summary":" Get Entity","description":"Retrieves the entity with the specified id\n\n<b>Args:</b> <br>\n    id (str): ID for the entity to retrieve, ex: MONDO:0019391\n\n<b>Raises:</b> <br>\n    HTTPException: 404 if the entity is not found\n\n<b>Returns:</b> <br>\n    Node: Entity details for the specified id","operationId":"_get_entity_v3_api_entity__id__get","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"ID of the entity to retrieve","examples":["MONDO:0019391"]}},{"name":"format","in":"query","required":false,"schema":{"$ref":"#/components/schemas/OutputFormat","title":"Output format for the response","examples":["json","tsv"],"default":"json"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Node"},{"type":"string"}],"title":"Response  Get Entity V3 Api Entity  Id  Get"}}}},"404":{"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/api/entity/{id}/{category}":{"get":{"tags":["entity"],"summary":" Association Table","description":"Retrieves association table data for a given entity and association type\n\n<b>Args:</b> <br>\n    id (str): ID of the entity to retrieve association table data, ex: MONDO:0019391 <br>\n    category (str): Category of association to retrieve association table data for, ex: biolink:DiseaseToPhenotypicFeatureAssociation <br>\n    Path (str, optional): Path string to limit results to a subset. Defaults to None. <br>\n    pagination (PaginationParams, optional): Pagination parameters. Defaults to Depends(). <br>\n\n<b>Returns:</b> <br>\n    AssociationResults: Association table data for the specified entity and association type","operationId":"_association_table_v3_api_entity__id___category__get","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"ID of the entity to retrieve association table data for","examples":["MONDO:0019391"]}},{"name":"category","in":"path","required":true,"schema":{"$ref":"#/components/schemas/AssociationCategory","title":"Type of association to retrieve association table data for","examples":["biolink:DiseaseToPhenotypicFeatureAssociation"]}},{"name":"query","in":"query","required":false,"schema":{"type":"string","title":"query string to limit results to a subset","examples":["thumb"]}},{"name":"traverse_orthologs","in":"query","required":false,"schema":{"type":"boolean","title":"Traverse orthologs to get associations","examples":[true,false],"default":false}},{"name":"sort","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"title":"Sort results by a list of field + direction statements","examples":["subject_label asc","predicate asc","object_label asc"]}},{"name":"format","in":"query","required":false,"schema":{"$ref":"#/components/schemas/OutputFormat","title":"Output format for the response","examples":["json","tsv"],"default":"json"}},{"name":"download","in":"query","required":false,"schema":{"type":"boolean","title":"Download the results as a file","examples":[true,false],"default":false}},{"name":"direct","in":"query","required":false,"schema":{"type":"boolean","title":"Only return direct associations","examples":[true,false],"default":false}},{"name":"facet_fields","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"title":"Facet fields to include in the response","examples":["subject","subject_taxon","predicate"]}},{"name":"facet_queries","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"title":"Facet queries to include in the response","examples":["subject_category:\"biolink:Gene\""]}},{"name":"filter_queries","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"title":"Filter queries to limit the response","examples":["subject_category:\"biolink:Gene\""]}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":0,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AssociationTableResults"},{"type":"string"}],"title":"Response  Association Table V3 Api Entity  Id   Category  Get"}}}},"404":{"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/api/entity/{context_id}/case-phenotype-grid":{"get":{"tags":["entity-grid"],"summary":"Get case-phenotype grid for a disease","description":"Returns a grid of cases (patients) and their phenotypes for a given disease.\n\n    The grid includes:\n    - **columns**: List of case entities with the disease\n    - **rows**: List of phenotypes observed across all cases\n    - **bins**: Body system categories (HistoPheno) with phenotype counts\n    - **cells**: Map of case:phenotype pairs to observation details\n\n    Use `direct=true` (default) to get only cases with exactly this disease.\n    Use `direct=false` to include cases with descendant diseases (subtypes).","operationId":"get_case_phenotype_grid_v3_api_entity__context_id__case_phenotype_grid_get","parameters":[{"name":"context_id","in":"path","required":true,"schema":{"type":"string","description":"MONDO disease ID","examples":["MONDO:0007078"],"title":"Context Id"},"description":"MONDO disease ID"},{"name":"direct","in":"query","required":false,"schema":{"type":"boolean","description":"Only include cases with exactly this disease","default":true,"title":"Direct"},"description":"Only include cases with exactly this disease"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"description":"Maximum number of cases (columns)","default":1000,"title":"Limit"},"description":"Maximum number of cases (columns)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityGridResponse"}}}},"400":{"description":"Column count exceeds limit, or ID category mismatch"},"404":{"description":"Entity not found"},"422":{"description":"Invalid entity ID format"}}}},"/v3/api/entity/{context_id}/disease-phenotype-grid":{"get":{"tags":["entity-grid"],"summary":"Get disease-phenotype grid for a gene","description":"Returns a grid of diseases and their phenotypes for a given gene.\n\n    The grid shows diseases causally associated with the gene and the\n    phenotypes associated with each disease.\n\n    - **columns**: List of disease entities associated with the gene\n    - **rows**: List of phenotypes observed across all diseases\n    - **bins**: Body system categories (HistoPheno) with phenotype counts\n    - **cells**: Map of disease:phenotype pairs to observation details","operationId":"get_disease_phenotype_grid_v3_api_entity__context_id__disease_phenotype_grid_get","parameters":[{"name":"context_id","in":"path","required":true,"schema":{"type":"string","description":"Gene ID (e.g., HGNC ID)","examples":["HGNC:4851"],"title":"Context Id"},"description":"Gene ID (e.g., HGNC ID)"},{"name":"direct","in":"query","required":false,"schema":{"type":"boolean","description":"Only include directly associated diseases","default":true,"title":"Direct"},"description":"Only include directly associated diseases"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Maximum number of diseases (columns)","default":500,"title":"Limit"},"description":"Maximum number of diseases (columns)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityGridResponse"}}}},"400":{"description":"Column count exceeds limit, or ID category mismatch"},"404":{"description":"Entity not found"},"422":{"description":"Invalid entity ID format"}}}},"/v3/api/entity/{context_id}/ortholog-phenotype-grid":{"get":{"tags":["entity-grid"],"summary":"Get ortholog-phenotype grid for a gene","description":"Returns a grid of orthologs and their phenotypes for a given gene.\n\n    The grid shows orthologous genes and the phenotypes associated with\n    each ortholog (typically from model organisms).\n\n    - **columns**: List of orthologous genes\n    - **rows**: List of phenotypes observed across all orthologs\n    - **bins**: Body system categories (HistoPheno) with phenotype counts\n    - **cells**: Map of ortholog:phenotype pairs to observation details","operationId":"get_ortholog_phenotype_grid_v3_api_entity__context_id__ortholog_phenotype_grid_get","parameters":[{"name":"context_id","in":"path","required":true,"schema":{"type":"string","description":"Gene ID (e.g., HGNC ID)","examples":["HGNC:4851"],"title":"Context Id"},"description":"Gene ID (e.g., HGNC ID)"},{"name":"direct","in":"query","required":false,"schema":{"type":"boolean","description":"Only include direct orthologs","default":true,"title":"Direct"},"description":"Only include direct orthologs"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Maximum number of orthologs (columns)","default":500,"title":"Limit"},"description":"Maximum number of orthologs (columns)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityGridResponse"}}}},"400":{"description":"Column count exceeds limit, or ID category mismatch"},"404":{"description":"Entity not found"},"422":{"description":"Invalid entity ID format"}}}},"/v3/api/entity-grid/{context_id}":{"get":{"tags":["entity-grid"],"summary":"Get generic entity grid with configurable associations","description":"Returns a generic entity × entity grid with configurable association categories.\n\n    This endpoint allows you to specify:\n    - **column_association_category**: One or more association categories for the\n      context → column hop (e.g., causal gene-disease, correlated gene-disease)\n    - **row_association_category**: The association category for the column → row hop\n    - **row_grouping**: How to group rows (histopheno for body systems, or none)\n    - **group_columns_by_category**: Whether to sort columns by their source association\n\n    Example: To get a grid of diseases (causal + correlated) and their phenotypes for a gene:\n    ```\n    GET /entity-grid/HGNC:4851?column_association_category=biolink:CausalGeneToDiseaseAssociation\n        &column_association_category=biolink:CorrelatedGeneToDiseaseAssociation\n        &row_association_category=biolink:DiseaseToPhenotypicFeatureAssociation\n        &group_columns_by_category=true\n    ```\n\n    The response includes source_association_category on each column entity,\n    allowing the frontend to display different column groups.","operationId":"get_generic_entity_grid_v3_api_entity_grid__context_id__get","parameters":[{"name":"context_id","in":"path","required":true,"schema":{"type":"string","description":"Context entity ID (gene, disease, etc.)","examples":["HGNC:4851","MONDO:0007078"],"title":"Context Id"},"description":"Context entity ID (gene, disease, etc.)"},{"name":"column_association_category","in":"query","required":true,"schema":{"type":"array","items":{"$ref":"#/components/schemas/AssociationCategory"},"description":"Association category/categories for context → column","examples":["biolink:CausalGeneToDiseaseAssociation"],"title":"Column Association Category"},"description":"Association category/categories for context → column"},{"name":"row_association_category","in":"query","required":true,"schema":{"type":"array","items":{"$ref":"#/components/schemas/AssociationCategory"},"description":"Association category/categories for column → row","examples":["biolink:DiseaseToPhenotypicFeatureAssociation"],"title":"Row Association Category"},"description":"Association category/categories for column → row"},{"name":"row_grouping","in":"query","required":false,"schema":{"$ref":"#/components/schemas/RowGrouping","description":"How to group rows","default":"histopheno"},"description":"How to group rows"},{"name":"group_columns_by_category","in":"query","required":false,"schema":{"type":"boolean","description":"Sort columns by association category","default":false,"title":"Group Columns By Category"},"description":"Sort columns by association category"},{"name":"direct","in":"query","required":false,"schema":{"type":"boolean","description":"Only include direct associations (not via closure)","default":true,"title":"Direct"},"description":"Only include direct associations (not via closure)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"description":"Maximum number of column entities","default":500,"title":"Limit"},"description":"Maximum number of column entities"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityGridResponse"}}}},"400":{"description":"Column count exceeds limit, or ID category mismatch"},"404":{"description":"Entity not found"},"422":{"description":"Invalid entity ID format"}}}},"/v3/api/entity-grid/traversable-associations/{entity_category}":{"get":{"tags":["entity-grid"],"summary":"Get traversable associations for an entity type","description":"Returns association types that can be traversed from a given entity category.\n\n    For each association, returns:\n    - **category**: The biolink association category\n    - **label**: Human-readable label for UI display\n    - **context_field**: Which field (\"subject\" or \"object\") the context entity occupies\n    - **target_category**: The biolink category of entities at the other end\n\n    This enables dynamic UI that shows only valid association options based on\n    the selected entity type, supporting bidirectional traversal of associations.\n\n    Example: For biolink:Gene, this returns gene-disease, gene-phenotype, gene-homology, etc.\n    For biolink:Disease, this returns disease-phenotype, and also gene-disease (reverse direction).","operationId":"get_traversable_associations_v3_api_entity_grid_traversable_associations__entity_category__get","parameters":[{"name":"entity_category","in":"path","required":true,"schema":{"type":"string","description":"The biolink category of the context entity","examples":["biolink:Gene","biolink:Disease","biolink:Case"],"title":"Entity Category"},"description":"The biolink category of the context entity"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Get Traversable Associations V3 Api Entity Grid Traversable Associations  Entity Category  Get"}}}},"400":{"description":"Column count exceeds limit, or ID category mismatch"},"404":{"description":"Entity not found"},"422":{"description":"Invalid entity ID format"}}}},"/v3/api/histopheno/{id}":{"get":{"tags":["histopheno"],"summary":" Get Histopheno","description":"Retrieves the entity with the specified id","operationId":"_get_histopheno_v3_api_histopheno__id__get","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"ID of the entity to get histopheno data for","examples":["MONDO:0019391"]}},{"name":"format","in":"query","required":false,"schema":{"$ref":"#/components/schemas/OutputFormat","title":"Output format for the response","examples":["json","tsv"],"default":"json"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HistoPheno"},{"type":"string"}],"title":"Response  Get Histopheno V3 Api Histopheno  Id  Get"}}}},"404":{"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/api/search":{"get":{"tags":["search"],"summary":"Search","description":"Search for entities by label, with optional filters\n\nArgs:\n    q (str, optional): Query string. Defaults to \"*:*\".\n    category (str, optional): Filter by biolink model category. Defaults to None.\n    in_taxon_label (str, optional): Filter by taxon label. Defaults to None.\n    offset (int, optional): Offset for pagination. Defaults to 0.\n    limit (int, optional): Limit results. Defaults to 20.\n\nReturns:\n    EntityResults","operationId":"search_v3_api_search_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","title":"Q"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/EntityCategory"}},{"type":"null"}],"title":"Category"}},{"name":"in_taxon_label","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"In Taxon Label"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":0,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResults"}}}},"404":{"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/api/autocomplete":{"get":{"tags":["search"],"summary":"Autocomplete","description":"Autocomplete for entities by label\n\nArgs:\n    q (str): Query string to autocomplete against\n\nReturns:\n    SearchResults","operationId":"autocomplete_v3_api_autocomplete_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","title":"Query string to autocomplete against","examples":["fanc","ehler"],"default":"*:*"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResults"}}}},"404":{"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/api/mappings":{"get":{"tags":["search"],"summary":"Mappings","operationId":"mappings_v3_api_mappings_get","parameters":[{"name":"entity_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Entity Id"}},{"name":"subject_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Subject Id"}},{"name":"predicate_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/MappingPredicate"}},{"type":"null"}],"title":"Predicate Id"}},{"name":"object_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Object Id"}},{"name":"mapping_justification","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Mapping Justification"}},{"name":"format","in":"query","required":false,"schema":{"$ref":"#/components/schemas/OutputFormat","title":"Output format for the response","examples":["json","tsv"],"default":"json"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":0,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MappingResults"}}}},"404":{"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/api/semsim/autocomplete":{"get":{"tags":["semsim"],"summary":"Autocomplete","description":"Autocomplete for semantic similarity lookups, prioritizes entities which have direct phenotype associations.\nNote: This API endpoint is experimental and may evolve or disappear over time.\n\nArgs:\n    q (str): Query string to autocomplete against\n\nReturns:\n    SearchResults","operationId":"autocomplete_v3_api_semsim_autocomplete_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","title":"Query string to autocomplete against","examples":["fanc","ehler"],"default":"*:*"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResults"}}}},"404":{"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/api/semsim/compare/{subjects}/{objects}":{"get":{"tags":["semsim"],"summary":" Compare","description":"Get pairwise similarity between two sets of terms\n\n<b>Args:</b> <br>\n    subjects (str, optional): List of subjects for comparison. Defaults to \"\". <br>\n    objects (str, optional): List of objects for comparison. Defaults to \"\". <br>\n    metric (str, optional): Similarity metric to use. Defaults to \"ancestor_information_content\".\n\n<b>Returns:</b> <br>\n    TermSetPairwiseSimilarity: Pairwise similarity between subjects and objects","operationId":"_compare_v3_api_semsim_compare__subjects___objects__get","parameters":[{"name":"subjects","in":"path","required":true,"schema":{"type":"string","title":"List of subjects for comparison"}},{"name":"objects","in":"path","required":true,"schema":{"type":"string","title":"List of objects for comparison"}},{"name":"metric","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SemsimMetric","title":"Similarity metric to use","default":"ancestor_information_content"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/api/semsim/compare":{"post":{"tags":["semsim"],"summary":" Post Compare","description":"Pairwise similarity between two sets of terms <br>\n    <br>\n    Example: <br>\n<pre>\n{\n    \"subjects\": [\"MP:0010771\", \"MP:0002169\"],\n    \"objects\": [\"HP:0004325\"]\n    \"metric\": \"ancestor_information_content\"\n}\n</pre>","operationId":"_post_compare_v3_api_semsim_compare_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SemsimCompareRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/api/semsim/multicompare":{"post":{"tags":["semsim"],"summary":" Post Multicompare","description":"Pairwise similarity between two sets of terms <br>\n    <br>\n    Example: <br>\n<pre>\n{\n    \"metric\": \"ancestor_information_content\",\n    \"subjects\": [\"HP:0002616\",\"HP:0001763\",\"HP:0004944\",\"HP:0010749\",\"HP:0001533\",\"HP:0002020\",\"HP:0012450\"],\n    \"object_sets\": [\n        {\n        \"id\": \"MGI:2441732\",\n        \"label\": \"Adgrg7\",\n        \"phenotypes\": [\"MP:0011965\",\"MP:0002834\",\"MP:0003731\",\"MP:0011962\",\"MP:0011960\",\"MP:0008489\",\"MP:0003291\",\"MP:0001262\"]\n        },\n        {\n        \"id\": \"MGI:87909\",\n        \"label\": \"Acta2\",\n        \"phenotypes\": [\"MP:0002834\",\"MP:0003070\",\"MP:0004022\",\"MP:0004021\",\"MP:0003026\",\"MP:0006264\",\"MP:0000230\",\"MP:0000233\",\"MP:0000272\",\"MP:0009862\"]\n        }\n    ]\n}\n</pre>","operationId":"_post_multicompare_v3_api_semsim_multicompare_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SemsimMultiCompareRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/api/semsim/search/{termset}/{group}":{"get":{"tags":["semsim"],"summary":" Search","description":"Search for terms in a termset\n\n<b>Args:</b> <br>\n    termset (str): Comma separated list of term IDs to find matches for. <br>\n    group (str): Group of entities to search within (e.g. Human Genes) <br>\n    metric: (str, optional): Similarity metric to use. Defaults to \"ancestor_information_content\". <br>\n    limit (int, optional): Limit the number of results. Defaults to 10.\n\n<b>Returns:</b> <br>\n    List[str]: List of matching terms","operationId":"_search_v3_api_semsim_search__termset___group__get","parameters":[{"name":"termset","in":"path","required":true,"schema":{"type":"string","title":"Termset to search"}},{"name":"group","in":"path","required":true,"schema":{"$ref":"#/components/schemas/SemsimSearchGroup","title":"Group of entities to search within (e.g. Human Genes)"}},{"name":"metric","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SemsimMetric","title":"Similarity metric to use","default":"ancestor_information_content"}},{"name":"directionality","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SemsimDirectionality","title":"Directionality of the search","default":"bidirectional"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":10,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/api/semsim/search":{"post":{"tags":["semsim"],"summary":" Post Search","description":"Search for terms in a termset <br>\n    <br>\n    Example: <br>\n<pre>\n{\n  \"termset\": [\"HP:0002104\", \"HP:0012378\", \"HP:0012378\", \"HP:0012378\"],\n  \"group\": \"Human Diseases\",\n  \"metric\": \"ancestor_information_content\",\n  \"limit\": 5\n}\n</pre>","operationId":"_post_search_v3_api_semsim_search_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SemsimSearchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/api/sources/versions":{"get":{"tags":["sources"],"summary":"Sources Versions","description":"Return the resolved version index for a given monarch-kg release.\n\nDefault is the release this API was built against (the `MONARCH_KG_VERSION`\nenv var, surfaced in `/version`), so the receipt reflects the bytes\nactually in the deployed Solr/DuckDB. Falls back to `latest` when the env\nvar is unset. Specific dates (`2026-05-07`) are also accepted for\nretrospective lookups. Pass `dev=true` to read from `monarch-kg-dev/`;\notherwise the deployment-wide default applies (set via the\n`MONARCH_KG_USE_DEV` env var, default false).","operationId":"sources_versions_v3_api_sources_versions_get","parameters":[{"name":"release","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release"}},{"name":"dev","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Dev"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Sources Versions V3 Api Sources Versions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/api/annotate":{"get":{"tags":["text_annotation"],"summary":" Annotate","operationId":"_annotate_v3_api_annotate_get","parameters":[{"name":"text","in":"query","required":false,"schema":{"type":"string","title":"The text content to annotate","default":""}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string","title":"Response  Annotate V3 Api Annotate Get"}}}},"404":{"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["text_annotation"],"summary":" Post Annotate","operationId":"_post_annotate_v3_api_annotate_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TextAnnotationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string","title":"Response  Post Annotate V3 Api Annotate Post"}}}},"404":{"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/api/annotate/entities":{"get":{"tags":["text_annotation"],"summary":" Entities","operationId":"_entities_v3_api_annotate_entities_get","parameters":[{"name":"text","in":"query","required":false,"schema":{"type":"string","title":"Text","default":""}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TextAnnotationResult"},"title":"Response  Entities V3 Api Annotate Entities Get"}}}},"404":{"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["text_annotation"],"summary":" Post Entities","operationId":"_post_entities_v3_api_annotate_entities_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TextAnnotationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TextAnnotationResult"},"title":"Response  Post Entities V3 Api Annotate Entities Post"}}}},"404":{"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/api/ground":{"get":{"tags":["text_annotation"],"summary":" Ground","operationId":"_ground_v3_api_ground_get","parameters":[{"name":"text","in":"query","required":false,"schema":{"type":"string","title":"The text to ground to an entity","default":""}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Entity"},"title":"Response  Ground V3 Api Ground Get"}}}},"404":{"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["text_annotation"],"summary":" Post Ground","operationId":"_post_ground_v3_api_ground_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TextAnnotationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Entity"},"title":"Response  Post Ground V3 Api Ground Post"}}}},"404":{"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":" Root","operationId":"_root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api":{"get":{"summary":" Api","operationId":"_api_api_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v3/api/releases":{"get":{"summary":" V3","operationId":"_v3_v3_api_releases_get","parameters":[{"name":"dev","in":"query","required":false,"schema":{"type":"boolean","title":"Get dev releases of the KG (default False)","default":false}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","title":"The number of releases to return (default 0 for no limit)","default":0}},{"name":"release","in":"query","required":false,"schema":{"type":"string","title":"Get metadata for a specific release"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v3/api/version":{"get":{"summary":" Version","operationId":"_version_v3_api_version_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AssociationCategory":{"type":"string","enum":["biolink:PairwiseGeneToGeneInteraction","biolink:GeneToExpressionSiteAssociation","biolink:GeneToGeneHomologyAssociation","biolink:Association","biolink:MacromolecularMachineToBiologicalProcessAssociation","biolink:MacromolecularMachineToMolecularActivityAssociation","biolink:MacromolecularMachineToCellularComponentAssociation","biolink:GeneToPhenotypicFeatureAssociation","biolink:GenotypeToPhenotypicFeatureAssociation","biolink:VariantToPhenotypicFeatureAssociation","biolink:DiseaseToPhenotypicFeatureAssociation","biolink:GeneToPathwayAssociation","biolink:VariantToGeneAssociation","biolink:CaseToPhenotypicFeatureAssociation","biolink:GenotypeToGeneAssociation","biolink:GenotypeToVariantAssociation","biolink:ChemicalEntityToPathwayAssociation","biolink:VariantToDiseaseAssociation","biolink:ChemicalEntityToDiseaseOrPhenotypicFeatureAssociation","biolink:GenotypeToDiseaseAssociation","biolink:DiseaseOrPhenotypicFeatureToGeneticInheritanceAssociation","biolink:CorrelatedGeneToDiseaseAssociation","biolink:CaseToDiseaseAssociation","biolink:CaseToGeneAssociation","biolink:CausalGeneToDiseaseAssociation","biolink:DiseaseOrPhenotypicFeatureToLocationAssociation","biolink:ChemicalOrDrugOrTreatmentToDiseaseOrPhenotypicFeatureAssociation"],"title":"AssociationCategory","description":"Association categories"},"AssociationCount":{"properties":{"label":{"type":"string","title":"Label"},"count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Count","description":"count of documents"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"count_direct":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Count Direct","description":"Count of direct associations (no closure/descendants)"},"count_with_orthologs":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Count With Orthologs","description":"Count including associations from orthologous genes"}},"additionalProperties":true,"type":"object","required":["label"],"title":"AssociationCount"},"AssociationDirectionEnum":{"type":"string","enum":["incoming","outgoing"],"title":"AssociationDirectionEnum","description":"The directionality of an association as it relates to a specified entity, with edges being categorized as incoming or outgoing"},"AssociationHighlighting":{"properties":{"object_label":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Object Label","description":"The name of the object entity"},"object_closure_label":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Object Closure Label","description":"Field containing object name and the names of all of it's ancestors"},"subject_label":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Subject Label","description":"The name of the subject entity"},"subject_closure_label":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Subject Closure Label","description":"Field containing subject name and the names of all of it's ancestors"},"predicate":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Predicate"}},"additionalProperties":true,"type":"object","title":"AssociationHighlighting","description":"Optional highlighting information for search results"},"AssociationPredicate":{"type":"string","enum":["biolink:interacts_with","biolink:expressed_in","biolink:has_phenotype","biolink:orthologous_to","biolink:enables","biolink:actively_involved_in","biolink:related_to","biolink:located_in","biolink:subclass_of","biolink:participates_in","biolink:acts_upstream_of_or_within","biolink:is_sequence_variant_of","biolink:is_active_in","biolink:has_sequence_variant","biolink:part_of","biolink:causes","biolink:treats_or_applied_or_studied_to_treat","biolink:homologous_to","biolink:contributes_to","biolink:model_of","biolink:has_mode_of_inheritance","biolink:has_disease","biolink:has_gene","biolink:gene_associated_with_condition","biolink:associated_with_increased_likelihood_of","biolink:colocalizes_with","biolink:same_as","biolink:acts_upstream_of","biolink:genetically_associated_with","biolink:disease_has_location","biolink:acts_upstream_of_or_within_positive_effect","biolink:ameliorates_condition","biolink:acts_upstream_of_positive_effect","biolink:acts_upstream_of_negative_effect","biolink:acts_upstream_of_or_within_negative_effect","biolink:has_participant","biolink:preventative_for_condition","biolink:disrupts","biolink:caused_by","biolink:contraindicated_in"],"title":"AssociationPredicate","description":"Association predicates"},"AssociationResults":{"properties":{"limit":{"type":"integer","title":"Limit","description":"number of items to return in a response"},"offset":{"type":"integer","title":"Offset","description":"offset into the total number of items"},"total":{"type":"integer","title":"Total","description":"total number of items matching a query"},"items":{"items":{"$ref":"#/components/schemas/ExpandedAssociation"},"type":"array","title":"Items","description":"A collection of items, with the type to be overriden by slot_usage"},"facet_fields":{"anyOf":[{"items":{"$ref":"#/components/schemas/FacetField"},"type":"array"},{"type":"null"}],"title":"Facet Fields","description":"Collection of facet field responses with the field values and counts"},"facet_queries":{"anyOf":[{"items":{"$ref":"#/components/schemas/FacetValue"},"type":"array"},{"type":"null"}],"title":"Facet Queries","description":"Collection of facet query responses with the query string values and counts"}},"additionalProperties":true,"type":"object","required":["limit","offset","total","items"],"title":"AssociationResults"},"AssociationTableResults":{"properties":{"limit":{"type":"integer","title":"Limit","description":"number of items to return in a response"},"offset":{"type":"integer","title":"Offset","description":"offset into the total number of items"},"total":{"type":"integer","title":"Total","description":"total number of items matching a query"},"items":{"items":{"$ref":"#/components/schemas/DirectionalAssociation"},"type":"array","title":"Items","description":"A collection of items, with the type to be overriden by slot_usage"},"facet_fields":{"anyOf":[{"items":{"$ref":"#/components/schemas/FacetField"},"type":"array"},{"type":"null"}],"title":"Facet Fields","description":"Collection of facet field responses with the field values and counts"},"facet_queries":{"anyOf":[{"items":{"$ref":"#/components/schemas/FacetValue"},"type":"array"},{"type":"null"}],"title":"Facet Queries","description":"Collection of facet query responses with the query string values and counts"}},"additionalProperties":true,"type":"object","required":["limit","offset","total","items"],"title":"AssociationTableResults"},"CaseEntity":{"properties":{"id":{"type":"string","title":"Id"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"full_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Id","description":"The full identifier for an entity"},"source_disease_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Disease Id","description":"The disease ID that a case is indirectly associated with (for descendant diseases)"},"source_disease_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Disease Label","description":"The label of the source disease for indirect case associations"},"is_direct":{"type":"boolean","title":"Is Direct","description":"Whether the case is directly associated with the disease or via a descendant"}},"additionalProperties":true,"type":"object","required":["id","is_direct"],"title":"CaseEntity","description":"A case (patient) in the matrix"},"CasePhenotype":{"properties":{"id":{"type":"string","title":"Id"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"bin_id":{"type":"string","title":"Bin Id","description":"The identifier for the histopheno bin a phenotype belongs to"}},"additionalProperties":true,"type":"object","required":["id","bin_id"],"title":"CasePhenotype","description":"A phenotype observed in at least one case"},"CasePhenotypeCellData":{"properties":{"id":{"type":"string","title":"Id"},"present":{"type":"boolean","title":"Present","description":"Whether the phenotype is present for a case"},"negated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Negated"},"onset_qualifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Onset Qualifier"},"onset_qualifier_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Onset Qualifier Label","description":"The name of the onset_qualifier entity"},"publications":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Publications"}},"additionalProperties":true,"type":"object","required":["id","present"],"title":"CasePhenotypeCellData","description":"Data for a single case-phenotype cell in the matrix"},"CasePhenotypeMatrixResponse":{"properties":{"disease_id":{"type":"string","title":"Disease Id","description":"The identifier for a disease entity"},"disease_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disease Name","description":"The name of a disease entity"},"total_cases":{"type":"integer","title":"Total Cases","description":"Total number of cases in the matrix"},"total_phenotypes":{"type":"integer","title":"Total Phenotypes","description":"Total number of phenotypes in the matrix"},"cases":{"anyOf":[{"items":{"$ref":"#/components/schemas/CaseEntity"},"type":"array"},{"type":"null"}],"title":"Cases","description":"List of case entities in the matrix"},"phenotypes":{"anyOf":[{"items":{"$ref":"#/components/schemas/CasePhenotype"},"type":"array"},{"type":"null"}],"title":"Phenotypes","description":"List of phenotype entities in the matrix"},"bins":{"anyOf":[{"items":{"$ref":"#/components/schemas/HistoPhenoBin"},"type":"array"},{"type":"null"}],"title":"Bins","description":"List of histopheno bins for grouping phenotypes"},"cells":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/CasePhenotypeCellData"},"type":"object"},{"type":"null"}],"title":"Cells","description":"Map of case-phenotype cell data keyed by case_id:phenotype_id"}},"additionalProperties":true,"type":"object","required":["disease_id","total_cases","total_phenotypes"],"title":"CasePhenotypeMatrixResponse","description":"Complete case-phenotype matrix for a disease"},"CompactAssociation":{"properties":{"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"subject":{"type":"string","title":"Subject"},"subject_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Label","description":"The name of the subject entity"},"predicate":{"type":"string","title":"Predicate"},"object":{"type":"string","title":"Object"},"object_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Object Label","description":"The name of the object entity"},"negated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Negated"}},"additionalProperties":true,"type":"object","required":["subject","predicate","object"],"title":"CompactAssociation"},"CompactAssociationResults":{"properties":{"limit":{"type":"integer","title":"Limit","description":"number of items to return in a response"},"offset":{"type":"integer","title":"Offset","description":"offset into the total number of items"},"total":{"type":"integer","title":"Total","description":"total number of items matching a query"},"items":{"items":{"$ref":"#/components/schemas/CompactAssociation"},"type":"array","title":"Items","description":"A collection of items, with the type to be overriden by slot_usage"},"facet_fields":{"anyOf":[{"items":{"$ref":"#/components/schemas/FacetField"},"type":"array"},{"type":"null"}],"title":"Facet Fields","description":"Collection of facet field responses with the field values and counts"},"facet_queries":{"anyOf":[{"items":{"$ref":"#/components/schemas/FacetValue"},"type":"array"},{"type":"null"}],"title":"Facet Queries","description":"Collection of facet query responses with the query string values and counts"}},"additionalProperties":true,"type":"object","required":["limit","offset","total","items"],"title":"CompactAssociationResults"},"CrossSpeciesTermClique":{"properties":{"root_term":{"$ref":"#/components/schemas/Entity","description":"The species-independent grouping term (UPHENO/UBERON) that serves as the cross-species bridge"},"clique_entities":{"items":{"$ref":"#/components/schemas/Entity"},"type":"array","title":"Clique Entities","description":"Species-specific child terms (HP, MP, ZP, etc.) that are subclasses of the root term"},"clique_associations":{"items":{"$ref":"#/components/schemas/ExpandedAssociation"},"type":"array","title":"Clique Associations","description":"All associations within this clique: vertical (subclass_of from children to root) and horizontal (same_as, homologous_to between children)"}},"additionalProperties":true,"type":"object","required":["root_term","clique_entities","clique_associations"],"title":"CrossSpeciesTermClique","description":"A grouping of species-specific terms (HP, MP, ZP) under a common cross-species parent (UPHENO/UBERON), with associations between them."},"DirectionalAssociation":{"properties":{"id":{"type":"string","title":"Id"},"predicate":{"type":"string","title":"Predicate"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"agent_type":{"type":"string","title":"Agent Type","description":"Describes the high-level category of agent who originally generated a  statement of knowledge or other type of information."},"aggregator_knowledge_source":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Aggregator Knowledge Source"},"knowledge_level":{"type":"string","title":"Knowledge Level","description":"Describes the level of knowledge expressed in a statement, based on the reasoning or analysis methods used to generate the statement, or the scope or specificity of what the statement expresses to be true."},"original_predicate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Predicate","description":"used to hold the original relation/predicate that an external knowledge source uses before transformation to match the biolink-model specification."},"primary_knowledge_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Knowledge Source"},"file_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Source","description":"Source file stem injected by koza at load time."},"provided_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provided By"},"publications":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Publications"},"qualifiers":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Qualifiers"},"has_evidence":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Has Evidence"},"object_specialization_qualifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Object Specialization Qualifier","description":"A qualifier that composes with a core subject/object concept to define a more specific version of the object concept, specifically using an ontology term that is not a subclass or descendant of the core concept and in the vast majority of cases, is of a different ontological namespace than the category or namespace of the object identifier."},"FDA_adverse_event_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fda Adverse Event Level","description":"The level of FDA adverse event reporting for a drug-condition association."},"disease_context_qualifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disease Context Qualifier","description":"A context qualifier representing a disease or condition in which a relationship expressed in an association took place."},"frequency_qualifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Frequency Qualifier"},"has_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Has Count","description":"count of out of has_total representing a frequency"},"has_percentage":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Has Percentage","description":"percentage, which may be calculated from has_count and has_total, as 100 * quotient or provided directly, rounded to the integer level"},"has_quotient":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Has Quotient","description":"quotient, which should be 1/100 of has_percentage"},"has_total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Has Total","description":"total, devided by has_count, representing a frequency"},"negated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Negated"},"onset_qualifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Onset Qualifier"},"sex_qualifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sex Qualifier"},"has_attribute":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Has Attribute"},"object_aspect_qualifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Object Aspect Qualifier","description":"Composes with the core concept (+ qualifier) to describe new concepts of a more specific kind. The aspect qualifier represents an attribute of the object that is the focus of the relationship (e.g. for an association where the object is a gene, this might be the expression, abundance, activity, or stability of the gene)."},"species_context_qualifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species Context Qualifier","description":"A context qualifier representing a species in which a relationship expressed in an association took place."},"stage_qualifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage Qualifier"},"qualifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Qualifier"},"subject":{"type":"string","title":"Subject"},"object":{"type":"string","title":"Object"},"original_subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Subject"},"original_object":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Object"},"evidence_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Evidence Count","description":"count of supporting documents, evidence codes, and sources supplying evidence"},"grouping_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grouping Key","description":"A concatenation of fields used to group associations with the same essential/defining properties"},"subject_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Label","description":"The name of the subject entity"},"subject_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Category","description":"The category of the subject entity"},"subject_namespace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Namespace","description":"The namespace/prefix of the subject entity"},"subject_closure":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Subject Closure","description":"Field containing subject id and the ids of all of it's ancestors"},"subject_closure_label":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Subject Closure Label","description":"Field containing subject name and the names of all of it's ancestors"},"subject_taxon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Taxon"},"subject_taxon_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Taxon Label"},"object_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Object Label","description":"The name of the object entity"},"object_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Object Category","description":"The category of the object entity"},"object_namespace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Object Namespace","description":"The namespace/prefix of the object entity"},"object_closure":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Object Closure","description":"Field containing object id and the ids of all of it's ancestors"},"object_closure_label":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Object Closure Label","description":"Field containing object name and the names of all of it's ancestors"},"object_taxon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Object Taxon"},"object_taxon_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Object Taxon Label"},"disease_context_qualifier_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disease Context Qualifier Label","description":"The name of the disease_context_qualifier entity"},"disease_context_qualifier_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disease Context Qualifier Category","description":"The category of the disease_context_qualifier entity"},"disease_context_qualifier_namespace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disease Context Qualifier Namespace","description":"The namespace/prefix of the disease_context_qualifier entity"},"disease_context_qualifier_closure":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Disease Context Qualifier Closure","description":"Field containing disease_context_qualifier id and the ids of all of it's ancestors"},"disease_context_qualifier_closure_label":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Disease Context Qualifier Closure Label","description":"Field containing disease_context_qualifier name and the names of all of it's ancestors"},"species_context_qualifier_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species Context Qualifier Label","description":"The name of the species_context_qualifier entity"},"species_context_qualifier_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species Context Qualifier Category","description":"The category of the species_context_qualifier entity"},"species_context_qualifier_namespace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species Context Qualifier Namespace","description":"The namespace/prefix of the species_context_qualifier entity"},"stage_qualifier_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage Qualifier Label","description":"The name of the stage_qualifier entity"},"stage_qualifier_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage Qualifier Category","description":"The category of the stage_qualifier entity"},"stage_qualifier_namespace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage Qualifier Namespace","description":"The namespace/prefix of the stage_qualifier entity"},"sex_qualifier_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sex Qualifier Label","description":"The name of the sex_qualifier entity"},"sex_qualifier_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sex Qualifier Category","description":"The category of the sex_qualifier entity"},"sex_qualifier_namespace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sex Qualifier Namespace","description":"The namespace/prefix of the sex_qualifier entity"},"onset_qualifier_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Onset Qualifier Label","description":"The name of the onset_qualifier entity"},"onset_qualifier_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Onset Qualifier Category","description":"The category of the onset_qualifier entity"},"onset_qualifier_namespace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Onset Qualifier Namespace","description":"The namespace/prefix of the onset_qualifier entity"},"frequency_qualifier_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Frequency Qualifier Label","description":"The name of the frequency_qualifier entity"},"frequency_qualifier_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Frequency Qualifier Category","description":"The category of the frequency_qualifier entity"},"frequency_qualifier_namespace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Frequency Qualifier Namespace","description":"The namespace/prefix of the frequency_qualifier entity"},"provided_by_link":{"anyOf":[{"$ref":"#/components/schemas/ExpandedCurie"},{"type":"null"}],"description":"A link to the docs for the knowledge source that provided the node/edge."},"has_evidence_links":{"anyOf":[{"items":{"$ref":"#/components/schemas/ExpandedCurie"},"type":"array"},{"type":"null"}],"title":"Has Evidence Links","description":"List of ExpandedCuries with id and url for evidence"},"publications_links":{"anyOf":[{"items":{"$ref":"#/components/schemas/ExpandedCurie"},"type":"array"},{"type":"null"}],"title":"Publications Links","description":"List of ExpandedCuries with id and url for publications"},"supporting_text":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Supporting Text","description":"The text in a publication that supports the assertion in the association."},"highlighting":{"anyOf":[{"$ref":"#/components/schemas/AssociationHighlighting"},{"type":"null"}],"description":"Optional highlighting information for search results"},"direction":{"$ref":"#/components/schemas/AssociationDirectionEnum","description":"The directionality of the association relative to a given entity for an association_count. If the entity is the subject or in the subject closure, the direction is forwards, if it is the object or in the object closure, the direction is backwards."}},"additionalProperties":true,"type":"object","required":["id","predicate","agent_type","knowledge_level","subject","object","direction"],"title":"DirectionalAssociation","description":"An association that gives it's direction relative to a specified entity"},"Entity":{"properties":{"id":{"type":"string","title":"Id"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"xref":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Xref"},"synonym":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Synonym"},"exact_synonym":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Exact Synonym","description":"An exact synonym for the entity"},"broad_synonym":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Broad Synonym","description":"A broader synonym for the entity"},"narrow_synonym":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Narrow Synonym","description":"A narrower synonym for the entity"},"related_synonym":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Related Synonym","description":"A related synonym for the entity"},"deprecated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Deprecated","description":"A boolean flag indicating that an entity is no longer considered current or valid."},"in_taxon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"In Taxon","description":"The biolink taxon that the entity is in the closure of."},"in_taxon_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"In Taxon Label","description":"The label of the biolink taxon that the entity is in the closure of."},"iri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Iri"},"same_as":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Same As"},"subsets":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Subsets","description":"A list of subsets that the entity belongs to"},"file_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Source","description":"Source file stem injected by koza at load time."},"provided_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provided By"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name","description":"The long form name of an entity"},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Symbol"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","description":"The type of the entity (e.g. sequence onotology type for genes etc)"},"has_attribute":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Has Attribute"},"has_biological_sex":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Has Biological Sex","description":"The biological sex of an individual entity."},"synonyms":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Synonyms"},"has_gene":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Has Gene"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Namespace","description":"The namespace/prefix portion of this entity's identifier"},"has_phenotype":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Has Phenotype","description":"A list of phenotype identifiers that are known to be associated with this entity"},"has_phenotype_label":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Has Phenotype Label","description":"A list of phenotype labels that are known to be associated with this entity"},"has_phenotype_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Has Phenotype Count","description":"A count of the number of phenotypes that are known to be associated with this entity"},"has_phenotype_closure":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Has Phenotype Closure","description":"A list of phenotype identifiers that are known to be associated with this entity expanded to include all ancestors"},"has_phenotype_closure_label":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Has Phenotype Closure Label","description":"A list of phenotype labels that are known to be associated with this entity expanded to include all ancestors"},"has_descendant":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Has Descendant","description":"A list of entity identifiers that are known to be descendants of this entity"},"has_descendant_label":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Has Descendant Label","description":"A list of entity labels that are known to be descendants of this entity"},"has_descendant_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Has Descendant Count","description":"A count of the number of entities that are known to be descendants of this entity"}},"additionalProperties":true,"type":"object","required":["id"],"title":"Entity","description":"Post-closurize node shape (entity + closure expansion + per-predicate aggregations)."},"EntityCategory":{"type":"string","enum":["biolink:Gene","biolink:SequenceVariant","biolink:PhenotypicFeature","biolink:Genotype","biolink:AnatomicalEntity","biolink:NamedThing","biolink:BiologicalProcess","biolink:Disease","biolink:Protein","biolink:Pathway","biolink:ChemicalEntity","biolink:MolecularActivity","biolink:Case","biolink:CellularComponent","biolink:Cell","biolink:OrganismTaxon","biolink:MolecularEntity","biolink:LifeStage"],"title":"EntityCategory","description":"Entity categories"},"EntityGridResponse":{"properties":{"context_id":{"type":"string","title":"Context Id","description":"The identifier of the context entity (e.g., disease, gene)"},"context_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context Name","description":"The name of the context entity"},"context_category":{"type":"string","title":"Context Category","description":"The biolink category of the context entity"},"total_columns":{"type":"integer","title":"Total Columns","description":"Total number of column entities in the grid"},"total_rows":{"type":"integer","title":"Total Rows","description":"Total number of row entities in the grid"},"columns":{"items":{"$ref":"#/components/schemas/GridColumnEntity"},"type":"array","title":"Columns","description":"List of column entities in the grid"},"rows":{"items":{"$ref":"#/components/schemas/GridRowEntity"},"type":"array","title":"Rows","description":"List of row entities in the grid"},"bins":{"items":{"$ref":"#/components/schemas/GridBin"},"type":"array","title":"Bins","description":"List of bins for grouping row entities"},"cells":{"additionalProperties":{"$ref":"#/components/schemas/GridCellData"},"type":"object","title":"Cells","description":"Map of column_id:row_id to cell data"}},"additionalProperties":true,"type":"object","required":["context_id","context_category","total_columns","total_rows","columns","rows","bins","cells"],"title":"EntityGridResponse","description":"Generic entity x entity grid response"},"ExpandedAssociation":{"properties":{"id":{"type":"string","title":"Id"},"predicate":{"type":"string","title":"Predicate"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"agent_type":{"type":"string","title":"Agent Type","description":"Describes the high-level category of agent who originally generated a  statement of knowledge or other type of information."},"aggregator_knowledge_source":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Aggregator Knowledge Source"},"knowledge_level":{"type":"string","title":"Knowledge Level","description":"Describes the level of knowledge expressed in a statement, based on the reasoning or analysis methods used to generate the statement, or the scope or specificity of what the statement expresses to be true."},"original_predicate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Predicate","description":"used to hold the original relation/predicate that an external knowledge source uses before transformation to match the biolink-model specification."},"primary_knowledge_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Knowledge Source"},"file_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Source","description":"Source file stem injected by koza at load time."},"provided_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provided By"},"publications":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Publications"},"qualifiers":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Qualifiers"},"has_evidence":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Has Evidence"},"object_specialization_qualifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Object Specialization Qualifier","description":"A qualifier that composes with a core subject/object concept to define a more specific version of the object concept, specifically using an ontology term that is not a subclass or descendant of the core concept and in the vast majority of cases, is of a different ontological namespace than the category or namespace of the object identifier."},"FDA_adverse_event_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fda Adverse Event Level","description":"The level of FDA adverse event reporting for a drug-condition association."},"disease_context_qualifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disease Context Qualifier","description":"A context qualifier representing a disease or condition in which a relationship expressed in an association took place."},"frequency_qualifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Frequency Qualifier"},"has_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Has Count","description":"count of out of has_total representing a frequency"},"has_percentage":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Has Percentage","description":"percentage, which may be calculated from has_count and has_total, as 100 * quotient or provided directly, rounded to the integer level"},"has_quotient":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Has Quotient","description":"quotient, which should be 1/100 of has_percentage"},"has_total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Has Total","description":"total, devided by has_count, representing a frequency"},"negated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Negated"},"onset_qualifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Onset Qualifier"},"sex_qualifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sex Qualifier"},"has_attribute":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Has Attribute"},"object_aspect_qualifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Object Aspect Qualifier","description":"Composes with the core concept (+ qualifier) to describe new concepts of a more specific kind. The aspect qualifier represents an attribute of the object that is the focus of the relationship (e.g. for an association where the object is a gene, this might be the expression, abundance, activity, or stability of the gene)."},"species_context_qualifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species Context Qualifier","description":"A context qualifier representing a species in which a relationship expressed in an association took place."},"stage_qualifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage Qualifier"},"qualifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Qualifier"},"subject":{"type":"string","title":"Subject"},"object":{"type":"string","title":"Object"},"original_subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Subject"},"original_object":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Object"},"evidence_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Evidence Count","description":"count of supporting documents, evidence codes, and sources supplying evidence"},"grouping_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grouping Key","description":"A concatenation of fields used to group associations with the same essential/defining properties"},"subject_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Label","description":"The name of the subject entity"},"subject_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Category","description":"The category of the subject entity"},"subject_namespace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Namespace","description":"The namespace/prefix of the subject entity"},"subject_closure":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Subject Closure","description":"Field containing subject id and the ids of all of it's ancestors"},"subject_closure_label":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Subject Closure Label","description":"Field containing subject name and the names of all of it's ancestors"},"subject_taxon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Taxon"},"subject_taxon_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Taxon Label"},"object_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Object Label","description":"The name of the object entity"},"object_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Object Category","description":"The category of the object entity"},"object_namespace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Object Namespace","description":"The namespace/prefix of the object entity"},"object_closure":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Object Closure","description":"Field containing object id and the ids of all of it's ancestors"},"object_closure_label":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Object Closure Label","description":"Field containing object name and the names of all of it's ancestors"},"object_taxon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Object Taxon"},"object_taxon_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Object Taxon Label"},"disease_context_qualifier_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disease Context Qualifier Label","description":"The name of the disease_context_qualifier entity"},"disease_context_qualifier_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disease Context Qualifier Category","description":"The category of the disease_context_qualifier entity"},"disease_context_qualifier_namespace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disease Context Qualifier Namespace","description":"The namespace/prefix of the disease_context_qualifier entity"},"disease_context_qualifier_closure":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Disease Context Qualifier Closure","description":"Field containing disease_context_qualifier id and the ids of all of it's ancestors"},"disease_context_qualifier_closure_label":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Disease Context Qualifier Closure Label","description":"Field containing disease_context_qualifier name and the names of all of it's ancestors"},"species_context_qualifier_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species Context Qualifier Label","description":"The name of the species_context_qualifier entity"},"species_context_qualifier_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species Context Qualifier Category","description":"The category of the species_context_qualifier entity"},"species_context_qualifier_namespace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Species Context Qualifier Namespace","description":"The namespace/prefix of the species_context_qualifier entity"},"stage_qualifier_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage Qualifier Label","description":"The name of the stage_qualifier entity"},"stage_qualifier_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage Qualifier Category","description":"The category of the stage_qualifier entity"},"stage_qualifier_namespace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage Qualifier Namespace","description":"The namespace/prefix of the stage_qualifier entity"},"sex_qualifier_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sex Qualifier Label","description":"The name of the sex_qualifier entity"},"sex_qualifier_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sex Qualifier Category","description":"The category of the sex_qualifier entity"},"sex_qualifier_namespace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sex Qualifier Namespace","description":"The namespace/prefix of the sex_qualifier entity"},"onset_qualifier_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Onset Qualifier Label","description":"The name of the onset_qualifier entity"},"onset_qualifier_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Onset Qualifier Category","description":"The category of the onset_qualifier entity"},"onset_qualifier_namespace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Onset Qualifier Namespace","description":"The namespace/prefix of the onset_qualifier entity"},"frequency_qualifier_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Frequency Qualifier Label","description":"The name of the frequency_qualifier entity"},"frequency_qualifier_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Frequency Qualifier Category","description":"The category of the frequency_qualifier entity"},"frequency_qualifier_namespace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Frequency Qualifier Namespace","description":"The namespace/prefix of the frequency_qualifier entity"},"provided_by_link":{"anyOf":[{"$ref":"#/components/schemas/ExpandedCurie"},{"type":"null"}],"description":"A link to the docs for the knowledge source that provided the node/edge."},"has_evidence_links":{"anyOf":[{"items":{"$ref":"#/components/schemas/ExpandedCurie"},"type":"array"},{"type":"null"}],"title":"Has Evidence Links","description":"List of ExpandedCuries with id and url for evidence"},"publications_links":{"anyOf":[{"items":{"$ref":"#/components/schemas/ExpandedCurie"},"type":"array"},{"type":"null"}],"title":"Publications Links","description":"List of ExpandedCuries with id and url for publications"},"supporting_text":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Supporting Text","description":"The text in a publication that supports the assertion in the association."},"highlighting":{"anyOf":[{"$ref":"#/components/schemas/AssociationHighlighting"},{"type":"null"}],"description":"Optional highlighting information for search results"}},"additionalProperties":true,"type":"object","required":["id","predicate","agent_type","knowledge_level","subject","object"],"title":"ExpandedAssociation","description":"Association decorated with app-computed expansions returned by the API: ExpandedCurie links for provided_by/has_evidence/publications, optional Solr search-result highlighting, and other app-only fields that aren't stored in the KG. The bare imported `Association` represents only what's in Solr; every endpoint returns at least an ExpandedAssociation. Further context-specific decorations live on subclasses (e.g. DirectionalAssociation adds direction relative to an anchor entity)."},"ExpandedCurie":{"properties":{"id":{"type":"string","title":"Id"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},"additionalProperties":true,"type":"object","required":["id"],"title":"ExpandedCurie","description":"A curie bundled along with its expanded url"},"FacetField":{"properties":{"label":{"type":"string","title":"Label"},"facet_values":{"anyOf":[{"items":{"$ref":"#/components/schemas/FacetValue"},"type":"array"},{"type":"null"}],"title":"Facet Values","description":"Collection of FacetValue label/value instances belonging to a FacetField"}},"additionalProperties":true,"type":"object","required":["label"],"title":"FacetField"},"FacetValue":{"properties":{"label":{"type":"string","title":"Label"},"count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Count","description":"count of documents"}},"additionalProperties":true,"type":"object","required":["label"],"title":"FacetValue"},"GridBin":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"count":{"type":"integer","title":"Count","description":"count of documents"}},"additionalProperties":true,"type":"object","required":["id","label","count"],"title":"GridBin","description":"A grouping bin for row entities"},"GridCellData":{"properties":{"id":{"type":"string","title":"Id"},"present":{"type":"boolean","title":"Present","description":"Whether the phenotype is present for a case"},"negated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Negated"},"qualifiers":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/Qualifier"},"type":"object"},{"type":"null"}],"title":"Qualifiers","description":"Additional qualifiers for the association"},"publications":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Publications"},"evidence_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Evidence Count","description":"count of supporting documents, evidence codes, and sources supplying evidence"}},"additionalProperties":true,"type":"object","required":["id","present"],"title":"GridCellData","description":"Data for a cell in the grid"},"GridColumnEntity":{"properties":{"id":{"type":"string","title":"Id"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"category":{"type":"string","title":"Category"},"is_direct":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Direct","description":"Whether the case is directly associated with the disease or via a descendant"},"source_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Id","description":"For indirect associations, the ID of the direct entity"},"source_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Label","description":"For indirect associations, the label of the direct entity"},"taxon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taxon","description":"The taxon ID of the entity"},"taxon_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taxon Label","description":"The taxon label of the entity"},"source_association_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Association Category","description":"The biolink category of the source association"},"source_association_predicate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Association Predicate","description":"The predicate of the source association"},"source_association_publications":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Source Association Publications","description":"Publication CURIEs supporting the source association"},"source_association_evidence_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Source Association Evidence Count","description":"Number of evidence items supporting the source association"},"source_association_primary_knowledge_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Association Primary Knowledge Source","description":"Primary knowledge source for the source association"}},"additionalProperties":true,"type":"object","required":["id","category"],"title":"GridColumnEntity","description":"A column entity in the grid (case, disease, ortholog, etc.)"},"GridRowEntity":{"properties":{"id":{"type":"string","title":"Id"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"category":{"type":"string","title":"Category"},"bin_id":{"type":"string","title":"Bin Id","description":"The identifier for the histopheno bin a phenotype belongs to"}},"additionalProperties":true,"type":"object","required":["id","category","bin_id"],"title":"GridRowEntity","description":"A row entity in the grid (phenotype, GO term, anatomy, etc.)"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HistoBin":{"properties":{"label":{"type":"string","title":"Label"},"count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Count","description":"count of documents"},"id":{"type":"string","title":"Id"}},"additionalProperties":true,"type":"object","required":["label","id"],"title":"HistoBin"},"HistoPheno":{"properties":{"id":{"type":"string","title":"Id"},"items":{"items":{"$ref":"#/components/schemas/HistoBin"},"type":"array","title":"Items","description":"A collection of items, with the type to be overriden by slot_usage"}},"additionalProperties":true,"type":"object","required":["id","items"],"title":"HistoPheno"},"HistoPhenoBin":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"phenotype_count":{"type":"integer","title":"Phenotype Count","description":"Number of phenotypes in a bin"},"phenotype_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Phenotype Ids","description":"List of phenotype identifiers belonging to a bin"}},"additionalProperties":true,"type":"object","required":["id","label","phenotype_count"],"title":"HistoPhenoBin","description":"A body system category for grouping phenotypes"},"Mapping":{"properties":{"subject_id":{"type":"string","title":"Subject Id"},"subject_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Label","description":"The name of the subject entity"},"predicate_id":{"type":"string","title":"Predicate Id"},"object_id":{"type":"string","title":"Object Id"},"object_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Object Label","description":"The name of the object entity"},"mapping_justification":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mapping Justification"},"id":{"type":"string","title":"Id"}},"additionalProperties":true,"type":"object","required":["subject_id","predicate_id","object_id","id"],"title":"Mapping","description":"A minimal class to hold a SSSOM mapping"},"MappingPredicate":{"type":"string","enum":["skos:exactMatch","skos:closeMatch","skos:broadMatch"],"title":"MappingPredicate","description":"Mapping predicates"},"MappingResults":{"properties":{"limit":{"type":"integer","title":"Limit","description":"number of items to return in a response"},"offset":{"type":"integer","title":"Offset","description":"offset into the total number of items"},"total":{"type":"integer","title":"Total","description":"total number of items matching a query"},"items":{"items":{"$ref":"#/components/schemas/Mapping"},"type":"array","title":"Items","description":"A collection of items, with the type to be overriden by slot_usage"}},"additionalProperties":true,"type":"object","required":["limit","offset","total","items"],"title":"MappingResults","description":"SSSOM Mappings returned as a results collection"},"Node":{"properties":{"id":{"type":"string","title":"Id"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"xref":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Xref"},"synonym":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Synonym"},"exact_synonym":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Exact Synonym","description":"An exact synonym for the entity"},"broad_synonym":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Broad Synonym","description":"A broader synonym for the entity"},"narrow_synonym":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Narrow Synonym","description":"A narrower synonym for the entity"},"related_synonym":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Related Synonym","description":"A related synonym for the entity"},"deprecated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Deprecated","description":"A boolean flag indicating that an entity is no longer considered current or valid."},"in_taxon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"In Taxon","description":"The biolink taxon that the entity is in the closure of."},"in_taxon_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"In Taxon Label","description":"The label of the biolink taxon that the entity is in the closure of."},"iri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Iri"},"same_as":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Same As"},"subsets":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Subsets","description":"A list of subsets that the entity belongs to"},"file_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Source","description":"Source file stem injected by koza at load time."},"provided_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provided By"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name","description":"The long form name of an entity"},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Symbol"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","description":"The type of the entity (e.g. sequence onotology type for genes etc)"},"has_attribute":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Has Attribute"},"has_biological_sex":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Has Biological Sex","description":"The biological sex of an individual entity."},"synonyms":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Synonyms"},"has_gene":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Has Gene"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Namespace","description":"The namespace/prefix portion of this entity's identifier"},"has_phenotype":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Has Phenotype","description":"A list of phenotype identifiers that are known to be associated with this entity"},"has_phenotype_label":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Has Phenotype Label","description":"A list of phenotype labels that are known to be associated with this entity"},"has_phenotype_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Has Phenotype Count","description":"A count of the number of phenotypes that are known to be associated with this entity"},"has_phenotype_closure":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Has Phenotype Closure","description":"A list of phenotype identifiers that are known to be associated with this entity expanded to include all ancestors"},"has_phenotype_closure_label":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Has Phenotype Closure Label","description":"A list of phenotype labels that are known to be associated with this entity expanded to include all ancestors"},"has_descendant":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Has Descendant","description":"A list of entity identifiers that are known to be descendants of this entity"},"has_descendant_label":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Has Descendant Label","description":"A list of entity labels that are known to be descendants of this entity"},"has_descendant_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Has Descendant Count","description":"A count of the number of entities that are known to be descendants of this entity"},"uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uri","description":"The URI of the entity"},"inheritance":{"anyOf":[{"$ref":"#/components/schemas/Entity"},{"type":"null"}]},"causal_gene":{"anyOf":[{"items":{"$ref":"#/components/schemas/Entity"},"type":"array"},{"type":"null"}],"title":"Causal Gene","description":"A list of genes that are known to be causally associated with a disease"},"causes_disease":{"anyOf":[{"items":{"$ref":"#/components/schemas/Entity"},"type":"array"},{"type":"null"}],"title":"Causes Disease","description":"A list of diseases that are known to be causally associated with a gene"},"mappings":{"anyOf":[{"items":{"$ref":"#/components/schemas/ExpandedCurie"},"type":"array"},{"type":"null"}],"title":"Mappings","description":"List of ExpandedCuries with id and url for mapped entities"},"external_links":{"anyOf":[{"items":{"$ref":"#/components/schemas/ExpandedCurie"},"type":"array"},{"type":"null"}],"title":"External Links","description":"ExpandedCurie with id and url for xrefs"},"provided_by_link":{"anyOf":[{"$ref":"#/components/schemas/ExpandedCurie"},{"type":"null"}],"description":"A link to the docs for the knowledge source that provided the node/edge."},"association_counts":{"items":{"$ref":"#/components/schemas/AssociationCount"},"type":"array","title":"Association Counts"},"cross_species_term_clique":{"anyOf":[{"$ref":"#/components/schemas/CrossSpeciesTermClique"},{"type":"null"}]},"node_hierarchy":{"anyOf":[{"$ref":"#/components/schemas/NodeHierarchy"},{"type":"null"}]}},"additionalProperties":true,"type":"object","required":["id","association_counts"],"title":"Node","description":"UI container class extending Entity with additional information"},"NodeHierarchy":{"properties":{"super_classes":{"items":{"$ref":"#/components/schemas/Entity"},"type":"array","title":"Super Classes"},"sub_classes":{"items":{"$ref":"#/components/schemas/Entity"},"type":"array","title":"Sub Classes"}},"additionalProperties":true,"type":"object","required":["super_classes","sub_classes"],"title":"NodeHierarchy"},"OutputFormat":{"type":"string","enum":["json","tsv"],"title":"OutputFormat"},"Qualifier":{"properties":{"id":{"type":"string","title":"Id"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value","description":"The value of a qualifier"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},"additionalProperties":true,"type":"object","required":["id"],"title":"Qualifier","description":"A qualifier key-value pair for an association"},"RowGrouping":{"type":"string","enum":["histopheno","none"],"title":"RowGrouping","description":"Row grouping options."},"SearchResult":{"properties":{"id":{"type":"string","title":"Id"},"category":{"type":"string","title":"Category"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"xref":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Xref"},"synonym":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Synonym"},"exact_synonym":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Exact Synonym","description":"An exact synonym for the entity"},"broad_synonym":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Broad Synonym","description":"A broader synonym for the entity"},"narrow_synonym":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Narrow Synonym","description":"A narrower synonym for the entity"},"related_synonym":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Related Synonym","description":"A related synonym for the entity"},"deprecated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Deprecated","description":"A boolean flag indicating that an entity is no longer considered current or valid."},"in_taxon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"In Taxon","description":"The biolink taxon that the entity is in the closure of."},"in_taxon_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"In Taxon Label","description":"The label of the biolink taxon that the entity is in the closure of."},"iri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Iri"},"same_as":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Same As"},"subsets":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Subsets","description":"A list of subsets that the entity belongs to"},"file_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Source","description":"Source file stem injected by koza at load time."},"provided_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provided By"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name","description":"The long form name of an entity"},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Symbol"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","description":"The type of the entity (e.g. sequence onotology type for genes etc)"},"has_attribute":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Has Attribute"},"has_biological_sex":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Has Biological Sex","description":"The biological sex of an individual entity."},"synonyms":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Synonyms"},"has_gene":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Has Gene"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Namespace","description":"The namespace/prefix portion of this entity's identifier"},"has_phenotype":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Has Phenotype","description":"A list of phenotype identifiers that are known to be associated with this entity"},"has_phenotype_label":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Has Phenotype Label","description":"A list of phenotype labels that are known to be associated with this entity"},"has_phenotype_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Has Phenotype Count","description":"A count of the number of phenotypes that are known to be associated with this entity"},"has_phenotype_closure":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Has Phenotype Closure","description":"A list of phenotype identifiers that are known to be associated with this entity expanded to include all ancestors"},"has_phenotype_closure_label":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Has Phenotype Closure Label","description":"A list of phenotype labels that are known to be associated with this entity expanded to include all ancestors"},"has_descendant":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Has Descendant","description":"A list of entity identifiers that are known to be descendants of this entity"},"has_descendant_label":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Has Descendant Label","description":"A list of entity labels that are known to be descendants of this entity"},"has_descendant_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Has Descendant Count","description":"A count of the number of entities that are known to be descendants of this entity"},"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score"}},"additionalProperties":true,"type":"object","required":["id","category","name"],"title":"SearchResult"},"SearchResults":{"properties":{"limit":{"type":"integer","title":"Limit","description":"number of items to return in a response"},"offset":{"type":"integer","title":"Offset","description":"offset into the total number of items"},"total":{"type":"integer","title":"Total","description":"total number of items matching a query"},"items":{"items":{"$ref":"#/components/schemas/SearchResult"},"type":"array","title":"Items","description":"A collection of items, with the type to be overriden by slot_usage"},"facet_fields":{"anyOf":[{"items":{"$ref":"#/components/schemas/FacetField"},"type":"array"},{"type":"null"}],"title":"Facet Fields","description":"Collection of facet field responses with the field values and counts"},"facet_queries":{"anyOf":[{"items":{"$ref":"#/components/schemas/FacetValue"},"type":"array"},{"type":"null"}],"title":"Facet Queries","description":"Collection of facet query responses with the query string values and counts"}},"additionalProperties":true,"type":"object","required":["limit","offset","total","items"],"title":"SearchResults"},"SemsimCompareRequest":{"properties":{"subjects":{"items":{"type":"string"},"type":"array","title":"List of subjects for comparison"},"objects":{"items":{"type":"string"},"type":"array","title":"List of objects for comparison"},"metric":{"$ref":"#/components/schemas/SemsimMetric","title":"Similarity metric to use","default":"ancestor_information_content"}},"type":"object","required":["subjects","objects"],"title":"SemsimCompareRequest"},"SemsimDirectionality":{"type":"string","enum":["bidirectional","subject_to_object","object_to_subject"],"title":"SemsimDirectionality"},"SemsimMetric":{"type":"string","enum":["ancestor_information_content","jaccard_similarity","phenodigm_score"],"title":"SemsimMetric"},"SemsimMultiCompareObject":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"ID of the object set"},"label":{"type":"string","title":"Label of the object set"},"phenotypes":{"items":{"type":"string"},"type":"array","title":"List of object for comparison"}},"type":"object","required":["label","phenotypes"],"title":"SemsimMultiCompareObject"},"SemsimMultiCompareRequest":{"properties":{"subjects":{"items":{"type":"string"},"type":"array","title":"List of subjects for comparison"},"object_sets":{"items":{"$ref":"#/components/schemas/SemsimMultiCompareObject"},"type":"array","title":"List of object sets for comparison"},"metric":{"$ref":"#/components/schemas/SemsimMetric","title":"Similarity metric to use","default":"ancestor_information_content"}},"type":"object","required":["subjects","object_sets"],"title":"SemsimMultiCompareRequest"},"SemsimSearchGroup":{"type":"string","enum":["Human Genes","Mouse Genes","Rat Genes","Zebrafish Genes","C. Elegans Genes","Human Diseases"],"title":"SemsimSearchGroup"},"SemsimSearchRequest":{"properties":{"termset":{"items":{"type":"string"},"type":"array","title":"Termset to search"},"group":{"$ref":"#/components/schemas/SemsimSearchGroup","title":"Group of entities to search within (e.g. Human Genes)"},"metric":{"$ref":"#/components/schemas/SemsimMetric","title":"Similarity metric to use","default":"ancestor_information_content"},"directionality":{"$ref":"#/components/schemas/SemsimDirectionality"},"limit":{"anyOf":[{"type":"integer","maximum":50.0,"minimum":1.0},{"type":"null"}],"title":"Limit the number of results","default":10}},"type":"object","required":["termset","group"],"title":"SemsimSearchRequest"},"TextAnnotationRequest":{"properties":{"content":{"type":"string","title":"The text content to annotate"}},"type":"object","required":["content"],"title":"TextAnnotationRequest"},"TextAnnotationResult":{"properties":{"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text","description":"text without tokens"},"tokens":{"anyOf":[{"items":{"$ref":"#/components/schemas/Entity"},"type":"array"},{"type":"null"}],"title":"Tokens","description":"A collection of entities or concepts"},"start":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start","description":"start position of the annotation"},"end":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End","description":"end position of the annotation"}},"additionalProperties":true,"type":"object","title":"TextAnnotationResult"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}