Skip to content

Commit

Permalink
Improved case-insensitive match to account for special characters. (#277
Browse files Browse the repository at this point in the history
)

* Improved case-insensitive match to account for special characters.

* Added an example case to the use-cases notebooks.

* Change filter to account white spaces.

* Changed the way to escape special characters and made a method to write sparql filters.

* Changed structure of filter creation.

* Added more case-insensitive resolving to examples Resolving notebook.

* Added unit test for helper functions.

* Fixing bugs and typos.
  • Loading branch information
crisely09 authored Nov 10, 2022
1 parent f2d914d commit 9a04477
Show file tree
Hide file tree
Showing 8 changed files with 687 additions and 66 deletions.
25 changes: 22 additions & 3 deletions examples/notebooks/getting-started/00 - Initialization.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,20 @@
" \"result_resource_mapping\": \"../../configurations/demo-resolver/term-to-resource-mapping.hjson\"\n",
" }\n",
" ],\n",
" \"ontology\": [\n",
" {\n",
" \"resolver\": \"DemoResolver\",\n",
" \"origin\": \"directory\",\n",
" \"source\": \"../../../tests/data/demo-resolver/\",\n",
" \"targets\": [\n",
" {\n",
" \"identifier\": \"cells\",\n",
" \"bucket\": \"cell_types.json\"\n",
" }\n",
" ],\n",
" \"result_resource_mapping\": \"../../configurations/demo-resolver/term-to-resource-mapping.hjson\"\n",
" }\n",
" ],\n",
" \"entities\": [\n",
" {\n",
" \"resolver\": \"DemoResolver\",\n",
Expand Down Expand Up @@ -584,9 +598,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3.7 (nexusforgelatest)",
"display_name": "Python 3.7.13 ('kgforge')",
"language": "python",
"name": "nexusforgelatest"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -598,7 +612,12 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.10"
"version": "3.7.13"
},
"vscode": {
"interpreter": {
"hash": "9ac393a5ddd595f2c78ea58b15bf8d269850a4413729cbea5c5fae9013762763"
}
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit 9a04477

Please sign in to comment.