Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
venv/
.vscode/
__pycache__/
data/
data/

# IntelliJ files
/.idea/
34 changes: 34 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
cff-version: 1.2.0
type: software
authors:
- family-names: "Bizon"
given-names: "Chris"
email: bizon@renci.org
affiliation: Renaissance Computing Institute, University of North Carolina
orcid: "https://orcid.org/0000-0002-9491-7674"
- family-names: "Vaidya"
given-names: "Gaurav"
email: gaurav@renci.org
affiliation: Renaissance Computing Institute, University of North Carolina
orcid: "https://orcid.org/0000-0003-0587-0454"
- family-names: "Wang"
given-names: "Patrick"
affiliation: Duke University
orcid: "https://orcid.org/0000-0002-6693-6106"
- family-names: "Owen"
given-names: "Phillips"
affiliation: Renaissance Computing Institute, University of North Carolina
orcid: "https://orcid.org/0000-0002-5146-8434"
- family-names: "Kebede"
given-names: "Yaphet"
affiliation: Renaissance Computing Institute, University of North Carolina
orcid: "https://orcid.org/0000-0002-50460246"
title: "Name Resolver"
url: "https://github.com/NCATSTranslator/NameResolution"
repository-code: "https://github.com/NCATSTranslator/NameResolution"
abstract: >-
Name Resolver (Name Lookup or NameRes) takes lexical strings and attempts to map them to identifiers (CURIEs) from a vocabulary or ontology.
license: MIT
identifiers:
- type: doi
value: 10.5281/zenodo.18488923
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Name Resolver

[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.18488923.svg)](https://doi.org/10.5281/zenodo.18488923) [![arXiv](https://img.shields.io/badge/arXiv-2601.10008-b31b1b.svg)](https://arxiv.org/abs/2601.10008)

Name Resolver (Name Lookup or NameRes) takes lexical strings and attempts to map them to identifiers (CURIEs) from a vocabulary or ontology. An optional autocomplete mode (which assumes the query is incomplete) is available,
along with many other options. Given a preferred CURIE, the known synonyms of that CURIE can also be retrieved.
Multiple results may be returned representing possible conceptual matches, but all of the identifiers have been correctly normalized using the [Node Normalization](https://github.com/NCATSTranslator/NodeNormalization) service.
Expand Down
2 changes: 1 addition & 1 deletion api/resources/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ info:
along with many other options. Given a preferred CURIE, the known synonyms of that CURIE can also be retrieved.<p/>
Multiple results may be returned representing possible conceptual matches, but all of the identifiers
have been correctly normalized using the
<a href="https://github.com/TranslatorSRI/NodeNormalization">Node Normalization</a> service.<p/>You can read more
<a href="https://github.com/NCATSTranslator/NodeNormalization">Node Normalization</a> service.<p/>You can read more
about this API on the <a href="https://github.com/NCATSTranslator/NameResolution">NameResolution GitHub repository</a>.<p/>
Note that the returned by this service have been conflated using both GeneProtein and DrugChemical conflation;
you can read more about this at the <a href="https://github.com/NCATSTranslator/Babel/blob/master/docs/Conflation.md">Conflation documentation</a>.'
Expand Down
2 changes: 1 addition & 1 deletion api/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ async def lookup(string: str,
# - https://pypi.org/project/charset-normalizer/
# - https://www.crummy.com/software/BeautifulSoup/bs4/doc/#unicode-dammit
# But the only issue we've actually run into so far has been the Windows smart
# quote (https://github.com/TranslatorSRI/NameResolution/issues/176), so for now
# quote (https://github.com/NCATSTranslator/NameResolution/issues/176), so for now
# let's detect and replace just those characters.
string_lc = re.sub(r"[“”]", '"', re.sub(r"[‘’]", "'", string_lc))

Expand Down
2 changes: 1 addition & 1 deletion data-loading/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# A NameResolution worker is a SOLR instance that downloads its source file a SOLR database backup.
# (see ../Dockerfile and [1] for details). This Dockerfile is intended to create a SOLR instance that can load the
# data from a set of Babel synonym files (see https://github.com/TranslatorSRI/Babel), thus creating the SOLR backup
# data from a set of Babel synonym files (see https://github.com/NCATSTranslator/Babel), thus creating the SOLR backup
# which can be uploaded somewhere for the NameResolution workers.
#
# [1] https://github.com/helxplatform/translator-devops/blob/affcf34cf103230d25bdb859098d2a5ac81a49fb/helm/name-lookup/templates/scripts-config-map.yaml#L8-L105
Expand Down
4 changes: 2 additions & 2 deletions data-loading/kubernetes/nameres-loading.k8s.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Kubernetes file for Nameres-loading
# Kubernetes file for Nameres-loading

apiVersion: v1
kind: Pod
Expand All @@ -10,7 +10,7 @@ spec:
restartPolicy: Never
containers:
- name: nameres-loading
image: ghcr.io/translatorsri/nameresolution-data-loading:latest
image: ghcr.io/ncatstranslator/nameresolution-data-loading:latest
imagePullPolicy: Always
# I just need something to run while I figure out how to make this work
command: [ "/bin/bash", "-c", "--" ]
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ services:

# This will use the latest version of NameRes -- if you'd prefer to build an image using the Dockerfile
# in the current directory, remove the `:latest` tag and uncomment the `build:` section that follows it.
image: ghcr.io/translatorsri/nameresolution:latest
image: ghcr.io/ncatstranslator/nameresolution:latest
# build:
# context: .