Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

feature: database of query filters and building blocks #22

Open
geritwagner opened this issue Mar 13, 2025 · 0 comments
Open

feature: database of query filters and building blocks #22

geritwagner opened this issue Mar 13, 2025 · 0 comments

Comments

@geritwagner
Copy link
Contributor

geritwagner commented Mar 13, 2025

The search-query package could offer a database of query filters for programmatic access.

Note

We could start with building blocks (e.g., RCTs / Reviews / Retracts). Full queries may be displayed separately (offering a filter for disciplines).

pip install search-query[database]

pyproject.toml: database option for separate package/dependency: search-query-database (containing searchRxiv, SYNERGY, ...)

from search-query import database

query = database.load_query(doi="10.1079_SEARCHRXIV.2022.00001")
from search_query.database import FT50, clinical_trials

print(FT50)
> OR[issn=1234, issn=5678, JN="MIS Quartery", ...]

print(clinical_trials)
> OR[title=rct, title="clinical trial", title="randomized controlled trial", title="experiment", ...]

# Combination with custom query blocks
custom_block = ORQuery(....)
full_query = ANDQuery(custom_block, clinical_trials, FT50)

In addition, it could offer direct programmatic access to full queries

from search_query.database import Wagner2025

print(Wagner2025)
> AND[OR[digital, virtual], OR[work, labor]]
@geritwagner geritwagner changed the title feature: query filters and building blocks feature: database of query filters and building blocks Mar 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant