Conversation
Contributor
|
linkml-map 0.5.3 requires Python >=3.10, and 3.9 is past end of life.
linkml 1.11 removed linkml.validators.jsonschemavalidator.
docs/schema/fair_mappings_schema.yaml is regenerated by gen-doc on every docs deploy, so the committed copy was never what got published - it only went stale. Matches how docs/elements is already handled.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Turns the repo from a schema definition into something you can point at a real mapping set. A
fair-mappingscommand parses SSSOM and LinkML-Map documents into FAIR Mappings Schema instances andvalidates them against the schema.
parsetransforms a source document into a.fms.ymlinstance, driven by declarative LinkML-Maptransformation specs (
sssom-to-fair,linkmlmap-to-fair) rather than hand-written field mapping.validatechecks an instance against the schema and exits non-zero with the errors on stderr.-I/--mapping-typetakes its permissible values fromMappingSpecificationTypeEnumread out of theschema at runtime, so the CLI's accepted types cannot drift from the model.
parse_sssom_tsvaccepts an iterable of lines as well as a path, so it can read the#-commentedheader off a streamed HTTP response without downloading the whole mapping set.
schema.pyresolves the bundled schema, the SSSOM and LinkML-Map schemas from their installedpackages, and the bundled transformation specs through
importlib.resources, so everything works froman installed wheel and not just a checkout.
Adds
linkml_maptoMappingSpecificationTypeEnum. That is the only change to the published data modelin this PR.
The distribution is renamed to
fair-mappingsand gains a console script of the same name. 55 testscover parsing, the CLI, validation, schema resource resolution and the package API.
What is not here
An earlier version of this branch carried a FAIR scoring system:
fair_weightannotations on every slot,a
scorecommand, and a 0-1 score per specification. That has been removed — a single score invitesleague tables and implies an authority over what FAIRness is that this schema should not claim. The
per-slot breakdown was the genuinely useful part of it, and I will open a separate issue proposing a
metadata completeness checker that keeps that and drops the grade.