Skip to content

v1.12.0-rc1

Pre-release
Pre-release

Choose a tag to compare

@amc-corey-cox amc-corey-cox released this 01 Oct 18:26
6f382ad

First release candidate for 1.12.0. Bumps metamodel_version to 1.12.0 and regenerates all artifacts against current linkml main. Cut to unblock vendoring in linkml/linkml.

Metamodel changes

  • status is now a plain string (#263). Its range was uriorcurie, and bibo:status moves from slot_uri to a close_mappings entry. Values like testing / unstable are now the documented form. Existing values still validate, since the range got wider. But generated RDF now emits status as a linkml:status string literal, not a bibo:status IRI, and generated OWL no longer emits status at all. So schemas that used CURIE values like status: bibo:status/draft lose that IRI in their RDF and OWL output. It also drops the metamodel's own broken OWL triples, which emitted status: testing as the relative IRI <testing>.
  • anonymous_class_expression.is_a narrows to class_definition (#271). The generated Python and GraphQL types narrow to match.
  • Mixin inheritance documentation clarified (#270).

Changes reaching the generated artifacts

  • class_uri is now serialised as skos:exactMatch in JSON-LD and RDF, not as a class_uri key (linkml/linkml#2687), which matches the OWL output. Anything that reads class_uri out of meta.jsonld will no longer find it.
  • maximum_number_dimensions narrows from Union[dict, Anything] to Union[int, bool, Bool] in meta.py and now coerces its value. A value that is neither an int nor a Bool now raises ValueError, where it used to pass through untouched. The slot has status: testing.
  • jsonschema/meta.schema.json keeps classes closed (additionalProperties: false) per the extra_slots default (linkml/linkml#4021).
  • Generation timestamps are no longer embedded in the generated Python modules.

Also included since v1.11.0

v1.11.1 never went final, so this rc also carries everything from v1.11.1-rc1:

  • New dcterms, rdfs, rdf prefix definitions (#254)
  • Rewritten key / identifier / unique_keys descriptions (#258)
  • UnitOfMeasure gains an anyOf in meta.schema.json (one of ucum_code / iec61360code / symbol / exact_mappings required). The rule was always in units.yaml, but it reaches the published JSON Schema for the first time.
  • linkml_files builds correct GitHub raw / Pages URLs.

Known quirk

Some parts of this rc are still generated using the previous metamodel, linkml-runtime's vendored 1.11.1-rc1:

  • Only meta.py reports metamodel_version 1.12.0. The other modules still say 1.11.0.
  • Element-level status values in rdf/*.ttl and owl/meta.owl.ttl are still emitted the old way (bibo:status "testing"^^xsd:anyURI / bibo:status <testing>), even though the status slot definition itself is updated.

Both resolve once linkml vendors this rc and the model is regenerated against it.

Full detail in #279.