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

use xpyth-parser for parsing xpath #91

Merged
merged 2 commits into from
Dec 6, 2023
Merged

Conversation

bbonf
Copy link

@bbonf bbonf commented Aug 30, 2023

We've been using lxml's XPath parser to validate search queries, but it only supports XPath 1.0
This causes some legal queries to fail validation (see #65)

The xpyth_parser library supports XPath 3.1, which should match BaseX.

@bbonf bbonf linked an issue Aug 30, 2023 that may be closed by this pull request
@bbonf bbonf merged commit e4531f4 into develop Dec 6, 2023
2 checks passed
@bbonf bbonf deleted the feature/better-xpath-validation branch December 6, 2023 10:29
@bbonf
Copy link
Author

bbonf commented Dec 6, 2023

I'm not sure why this wasn't merged earlier

bbonf added a commit that referenced this pull request Dec 13, 2023
@bbonf
Copy link
Author

bbonf commented Dec 13, 2023

Apparently xpyth-parser doesn't handle (some of) the queries we use for MWE. So this requires more work.

bbonf added a commit that referenced this pull request Dec 19, 2023
* updated requirements

* redo pip-compile with python 3.8

* fix type warning

* trying to fix deployment

* explicitly ask for psycopg2 in requirements

* About page

* use xpyth-parser for parsing xpath (#91)

* use xpyth-parser for parsing xpath

* added a comment

* Revert "use xpyth-parser for parsing xpath (#91)"

This reverts commit e4531f4.

* update to a newer version of mwe-query with fixes (#95)

* updated tree expansion method

* allow searching for canonical forms in admin panel

---------

Co-authored-by: Sheean Spoel <[email protected]>
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

Successfully merging this pull request may close these issues.

Broken XPath queries
1 participant