From b95961f772e7491956e70433e086d13be09a33d2 Mon Sep 17 00:00:00 2001 From: Colin Smith Date: Thu, 29 Aug 2024 08:32:04 -0700 Subject: [PATCH] fix: correct BioPortal annotator parameter format Adjust BioPortal annotator parameters to use lowercase boolean strings for compatibility with the service's URL encoding. --- src/spinneret/annotator.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/spinneret/annotator.py b/src/spinneret/annotator.py index 9dc1de5..db9df37 100644 --- a/src/spinneret/annotator.py +++ b/src/spinneret/annotator.py @@ -12,16 +12,16 @@ def get_bioportal_annotation( api_key: str, ontologies: str, semantic_types: str = "", - expand_semantic_types_hierarchy: bool = False, - expand_class_hierarchy: bool = False, + expand_semantic_types_hierarchy: str = "false", + expand_class_hierarchy: str = "false", class_hierarchy_max_level: int = 0, - expand_mappings: bool = False, + expand_mappings: str = "false", stop_words: str = "", minimum_match_length: int = 3, - exclude_numbers: bool = False, - whole_word_only: bool = True, - exclude_synonyms: bool = False, - longest_only: bool = False, + exclude_numbers: str = "false", + whole_word_only: str = "true", + exclude_synonyms: str = "false", + longest_only: str = "false", ) -> Union[list, None]: """Get an annotation from the BioPortal API