-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Search MVP * Change default mediatype to text/anot+turtle Fix search bugs * Bugfix - return annotations with search results * Update tests - context is included. Add search tests. * Add context ontologies * Align tests (PR + push to feature) Update cache tests * Update search query to sum weights. Remove duplicative Regex for exact matches (duplicates LCASE). Update cache tests - "Purge" references updated to "Reset" Black code attempt test bugfix in GH action - Update poetry Change mgmt API to reset cache instead of purge. Reset instead of purging TBOX cache. Update search methods to allow multiple params Align prez function to get item with item function Add SPARQL_TIMEOUT configuration environment variable, and default this in async and sync clients as 30 seconds. * Debug test failing in pipeline but working locally * Debug test failing in pipeline but working locally. Set to xfail * Mark xfail properly * Another xfail * Address PR comments * Change /reset-tbox-cache endpoint back to /purge-tbox-cache after discussion on PR. * Update to reflect PR comments * And another * Remove Jena FT Search
- Loading branch information
1 parent
df00e01
commit 68a3d4d
Showing
52 changed files
with
19,165 additions
and
727 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
## Changes for 2023-09-27 | ||
|
||
### Features | ||
|
||
- Default search added. This is a simple search that will search for terms across all annotation predicates Prez has configured. By default in prez/config.py these are set to: | ||
- label_predicates = [SKOS.prefLabel, DCTERMS.title, RDFS.label, SDO.name] | ||
- description_predicates = [SKOS.definition, DCTERMS.description, SDO.description] | ||
- provenance_predicates = [DCTERMS.provenance] | ||
These are configurable via environment variables using the Pydantic BaseSettings functionality but will need to be properly escaped as they are a list. | ||
|
||
More detail on adding filters to search is provided in the readme. | ||
- Timeout for httpx AsyncClient and Client instances is set on the shared instance to 30s. Previously this was set in some individual calls resulting in inconsistent behaviour, as the default is otherwise 5s. | ||
- Updated `purge-tbox-cache` endpoint functionality. This reflects that prez now | ||
includes a number of common ontologies by default (prez/reference_data/context_ontologies), and on startup will load | ||
annotation triples (e.g. x rdfs:label y) from these. As such, the tbox or annotation cache is no longer completely | ||
purged but can be reset to this default state instead. |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.