The example given at Assembly refers to an invalid SSSOM file:
import semra.io
# load mappings from any standardized SSSOM file as a file path or URL, via `pandas.read_csv`
sssom_url = "https://w3id.org/biopragmatics/biomappings/sssom/biomappings.sssom.tsv"
mappings = semra.io.from_sssom(sssom_url)
File https://w3id.org/biopragmatics/biomappings/sssom/biomappings.sssom.tsv currently lacks a SSSOM MappingSet header so it can only be parsed as valid SSSOM with external metadata to specify at least required fields mapping_set_id and license.
Function from_sssom could be extended an documented to
- support
mapping_set_id with default value derived from path (URL or file:// - URI)-
- support
license with default value
mappings = semra.io.from_sssom(sssom_url, license="https://creativecommons.org/licenses/by/4.0/")
The example given at Assembly refers to an invalid SSSOM file:
File https://w3id.org/biopragmatics/biomappings/sssom/biomappings.sssom.tsv currently lacks a SSSOM MappingSet header so it can only be parsed as valid SSSOM with external metadata to specify at least required fields
mapping_set_idandlicense.Function
from_sssomcould be extended an documented tomapping_set_idwith default value derived frompath(URL orfile://- URI)-licensewith default value