Skip to content

Commit be5a95a

Browse files
committed
Update Python version in performance test workflow and enhance owlery query parameters
1 parent 3ed68c0 commit be5a95a

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/performance-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Set up Python
2222
uses: actions/setup-python@v4
2323
with:
24-
python-version: '3.8'
24+
python-version: '3.10'
2525

2626
- name: Install dependencies
2727
run: |

src/vfbquery/vfb_queries.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2661,6 +2661,8 @@ def _owlery_query_to_results(owl_query_string: str, short_form: str, return_data
26612661
# Build the full URL with all parameters exactly as the request would be made
26622662
params = {
26632663
'object': owl_query_string,
2664+
'direct': 'true' if query_instances else 'false', # instances use direct=true, subclasses use direct=false
2665+
'includeDeprecated': 'false',
26642666
'prefixes': json.dumps({
26652667
"FBbt": "http://purl.obolibrary.org/obo/FBbt_",
26662668
"RO": "http://purl.obolibrary.org/obo/RO_",
@@ -2669,6 +2671,10 @@ def _owlery_query_to_results(owl_query_string: str, short_form: str, return_data
26692671
})
26702672
}
26712673

2674+
# For subclasses queries, add includeEquivalent parameter
2675+
if not query_instances:
2676+
params['includeEquivalent'] = 'true'
2677+
26722678
endpoint = "/instances" if query_instances else "/subclasses"
26732679
owlery_url = f"{owlery_base}{endpoint}?{urlencode(params)}"
26742680

0 commit comments

Comments
 (0)