Command Line Interface
sssom_curator automatically installs the command sssom_curator. See sssom_curator
--help for usage details.
sssom_curator
A CLI for managing SSSOM repositories.
Usage
sssom_curator [OPTIONS] COMMAND [ARGS]...
Options
- -p, --path <path>
Either the path to a sssom-curator configuration file or a directory containing a file named sssom-curator.json. Defaults to current working directory
import
Import external SSSOM files.
Usage
sssom_curator import [OPTIONS] COMMAND [ARGS]...
biomappings
Import predicted mappings from Biomappings.
Usage
sssom_curator import biomappings [OPTIONS]
ontoportal
Import uncurated mappings from an OntoPortal instance
Usage
sssom_curator import ontoportal [OPTIONS] ONTOLOGY_1 ONTOLOGY_2
Options
- --instance <instance>
- Default:
'bioportal'- Options:
bioportal | agroportal | ecoportal
Arguments
- ONTOLOGY_1
Required argument
- ONTOLOGY_2
Required argument
semra
Import raw mappings from SeMRA.
Currently, this workflow is configured to only import semantic mappings from the SeMRA Raw Mapping database (https://doi.org/10.5281/zenodo.11082038) that are not already marked as manual mapping curations, have a CC0 license, and are either an exact match or dbxref.
Note: This command is in preview mode, and functionality may change without warning
Usage
sssom_curator import semra [OPTIONS]
Options
- -p, --prefixes <prefixes>
Filter to mappings whose subject and objects are both in the prefix list.Must pass at least two.
url
Import mappings from a URL.
Usage
sssom_curator import url [OPTIONS] URL
Arguments
- URL
Required argument
init
Initialize a repository.
Usage
sssom_curator init [OPTIONS]
Options
- -d, --directory <directory>
- --purl-base <purl_base>
The PURL for the exported mapping set
- --mapping-set-title <mapping_set_title>
The title for the mapping set
lint
Sort files and remove duplicates.
Usage
sssom_curator lint [OPTIONS]
Options
- --strategy <strategy>
- Default:
'passthrough'- Options:
bioregistry | bioregistry-preferred | passthrough
merge
Merge files together to a single SSSOM.
Usage
sssom_curator merge [OPTIONS]
Options
- --sssom-directory <sssom_directory>
Required
ndex
Upload to NDEx.
Usage
sssom_curator ndex [OPTIONS]
Options
- --username <username>
NDEx username, also looks in pystow configuration
- --password <password>
NDEx password, also looks in pystow configuration
predict
Predict semantic mappings.
Usage
sssom_curator predict [OPTIONS] COMMAND [ARGS]...
lexical
Predict semantic mappings with lexical methods.
Usage
sssom_curator predict lexical [OPTIONS] SOURCE_PREFIX [TARGET_PREFIX]...
Options
- -v, --verbose
Enable verbose mode. More -v’s means more verbose.
- --relation <relation>
the predicate to assign to semantic mappings
- --method <method>
The prediction method to use
- Options:
ner | grounding | embedding
- --cutoff <cutoff>
The cosine similarity cutoff to use for calling mappings when using embedding predictions
- --filter-mutual-mappings
Remove predictions that correspond to already existing mappings in either the subject or object resource
- --force
Force re-downloading and re-processing of resources
- --force-process
Force re-processing, but not re-downloading of resources
- --cache, --no-cache
Should a cache be made
- --all-by-all
Don’t just predict from source to targets, but also between all targets
- --identifiers-are-names
Consider identifiers as names. This is typical for data models/schemas
- -pv, --pin-version <pin_version>
Pin resource versions in PyOBO by giving a pair of prefix + version, such as –pin-version chmo 2025-10-21
Arguments
- SOURCE_PREFIX
Required argument
- TARGET_PREFIX
Optional argument(s)
summarize
Generate summary charts and tables.
Usage
sssom_curator summarize [OPTIONS]
Options
- --output-directory <output_directory>
Required
- --image-directory <image_directory>
test
Test the repository.
Usage
sssom_curator test [OPTIONS]
Options
- --strategy <strategy>
- Default:
'passthrough'- Options:
bioregistry | bioregistry-preferred | passthrough
web
Run the semantic mappings curation app.
Usage
sssom_curator web [OPTIONS]
Options
- --resolver-base <resolver_base>
A custom resolver base URL. Defaults to the Bioregistry.
- Default:
'https://bioregistry.io'
- --orcid <orcid>
Your ORCID, if not automatically loadable. Don’t use this with –live-login.
- --host <host>
- Default:
'127.0.0.1'
- --port <port>
- Default:
8775
- --eager-persist
If set, will persist after each curation instead of waiting for the commit button to be pushed
- --implementation <implementation>
The type of backend for running the curation app. Dict means that data is stored in an in-memory dictionary data structure and SQLite means it uses a database w/ ORM
- Default:
'dict'- Options:
dict | sqlite
- --ssl-keyfile <ssl_keyfile>
Path to SSL key file (with the -key.pem extension), which is used to enable the web application to serve HTTPS requests
- --ssl-certfile <ssl_certfile>
Path to a SSL certificate file (with the .pem extension) to go along with the key file.
- --live-login
Use ORCiD for OAuth-based login
- --orcid-client-id <orcid_client_id>
If using –live-login, explicitly set the ORCiD Client ID. Otherwise, loaded via PyStow
- --orcid-client-secret <orcid_client_secret>
If using –live-login, explicitly set the ORCiD Client secret. Otherwise, loaded via PyStow
- --proxy-fix
If set, sets passthroughs for proxies
- --no-open
Turn off automatic webpage opening on app start