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

bidsmri2nidm - "ERROR: initializing InterLex connection" without further info #377

Open
yarikoptic opened this issue Jul 6, 2023 · 4 comments

Comments

@yarikoptic
Copy link
Member

❯ bidsmri2nidm -d . -bidsignore
/home/yoh/proj/PyNIDM/venvs/dev3/lib/python3.11/site-packages/bids/config.py:38: FutureWarning: Setting 'extension_initial_dot' will be removed in pybids 0.16.
  warnings.warn("Setting 'extension_initial_dot' will be removed in pybids 0.16.",
ERROR: initializing InterLex connection...

It would be better if it informed a little more about that ERROR

  • is URL (which?) not reached?
  • is INTERLEX_API_KEY wrong?

so a user could get a clue on what to do next having got into this pickle

@madtitan02
Copy link

is this issue resolved , can you provide more details about this issue

@seanhatton
Copy link

Hi, I also have this error on a clean install of pynidm (Ubuntu 22.04). I have rolled back my rdflib to version 6.1.1.

@dbkeator
Copy link
Contributor

Hi, Have you tried setting the environment variable INTERLEX_API_KEY with your key (see usage below)?

usage: bidsmri2nidm [-h] -d DIRECTORY [-jsonld] [-bidsignore] [-no_concepts] [-json_map JSON_MAP] [-log LOGFILE] [-o OUTPUTFILE]

This program will represent a BIDS MRI dataset as a NIDM RDF document and provide user with opportunity to annotate
the dataset (i.e. create sidecar files) and associate selected variables with broader concepts to make datasets more
FAIR.

Note, you must obtain an API key to Interlex by signing up for an account at scicrunch.org then going to My Account
and API Keys. Then set the environment variable INTERLEX_API_KEY with your key.

optional arguments:
-h, --help show this help message and exit
-d DIRECTORY Full path to BIDS dataset directory
-jsonld, --jsonld If flag set, output is json-ld not TURTLE
-bidsignore, --bidsignore
If flag set, tool will add NIDM-related files to .bidsignore file
-no_concepts, --no_concepts
If flag set, tool will no do concept mapping
-log LOGFILE, --log LOGFILE
Full path to directory to save log file. Log file name is bidsmri2nidm_[basename(args.directory)].log
-o OUTPUTFILE Outputs turtle file called nidm.ttl in BIDS directory by default..or whatever path/filename is set here

map variables to terms arguments:
-json_map JSON_MAP, --json_map JSON_MAP
Optional full path to user-suppled JSON file containing variable-term mappings.

@seanhatton
Copy link

seanhatton commented Feb 22, 2024 via email

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

No branches or pull requests

4 participants