Skip to content

Commit

Permalink
updated concept search funtion to return urls for NIDM-terms used con…
Browse files Browse the repository at this point in the history
…cepts after change to schema on nidm-terms side where url key is not schema:url
  • Loading branch information
dbkeator committed Sep 2, 2021
1 parent 27a0bc0 commit 9e007f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions nidm/experiment/Utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -806,8 +806,8 @@ def fuzzy_match_concepts_from_nidmterms_jsonld(json_struct,query_string):
match_scores[entry['label']] = {}
match_scores[entry['label']]['score'] = fuzz.token_sort_ratio(query_string, entry['label'])
match_scores[entry['label']]['label'] = entry['label']
if "http://schema.org/url" in entry.keys():
match_scores[entry['label']]['url'] = entry["http://schema.org/url"]
if "schema:url" in entry.keys():
match_scores[entry['label']]['url'] = entry["schema:url"]
else:
match_scores[entry['label']]['url'] = ""
if 'description' in entry.keys():
Expand Down
2 changes: 1 addition & 1 deletion nidm/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Format expected by setup.py and doc/source/conf.py: string of form "X.Y.Z"
_version_major = 3
_version_minor = 8
_version_micro = '4' # use '' for first of series, number for 1 and above
_version_micro = '5' # use '' for first of series, number for 1 and above
_version_extra = ''
# _version_extra = '' # Uncomment this for full releases

Expand Down

0 comments on commit 9e007f5

Please sign in to comment.