You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Search Query** is a Python package designed to **load**, **lint**, **translate**, **save**, **improve**, and **automate** academic literature search queries.
25
21
It is extensible and currently supports PubMed, EBSCOHost, and Web of Science.
26
22
The package can be used programmatically, through the command line, or as a pre-commit hook.
@@ -51,13 +47,6 @@ Creating a query programmatically is simple:
- list of strings or queries: strings that you want to include in the search query,
58
-
- ``field``: search field to which the query should be applied (available options: TODO — provide examples and link to docs)
59
-
Search strings can be either in string or list format.
60
-
61
50
We can also parse a query from a string or a `JSON search file <#json-search-files>`_ (see the :doc:`overview of platform identifiers </platforms/platform_index>`):
62
51
63
52
.. code-block:: python
@@ -97,27 +86,6 @@ Note how the syntax is translated and how the search for :literal:`Title/Abstrac
97
86
# Output:
98
87
# ((AB="digital health" OR TI="digital health") AND (AB="privacy" OR TI="privacy"))
99
88
100
-
101
-
..
102
-
Beyond the instructive error message, additional information on the specific messages is available `here <messages/errors_index.html>`_.
103
-
104
-
Each query parser has a corresponding linter that checks for errors and warnings in the query.
- **Strict mode**: Forces the user to maintain clean, valid input but at the cost of convenience. This mode fails on fatal or error outcomes and prints warnings.
117
-
- **Non-strict mode**: Focuses on usability, automatically resolving common issues while maintaining transparency via warnings. This mode fails only on fatal outcomes. Auto-corrects errors as much as possible and prints a message (adds a fatal message if this is not possible). Prints warnings.
118
-
119
-
An additional "silent" option may be used to silence warnings.
120
-
121
89
Demo
122
90
============
123
91
@@ -134,13 +102,6 @@ Below is a high-level overview of the core functionalities:
134
102
135
103
.. image:: presentation.png
136
104
137
-
..
138
-
Parser development
139
-
-------------------------
140
-
141
-
To develop a parser, see `dev-parser <dev_docs/parser.html>`_ docs.
0 commit comments