From c82c53727cc596f15e66ab39a9b64e102e876efb Mon Sep 17 00:00:00 2001 From: Michael Hanke Date: Tue, 3 Mar 2026 14:09:13 +0100 Subject: [PATCH 1/4] feat: declare prefix for for http://purl.org/spar/scoro SCoRO, the Scholarly Contributions and Roles Ontolog --- src/demo-research-information/unreleased.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/demo-research-information/unreleased.yaml b/src/demo-research-information/unreleased.yaml index 9b40a64..31525f9 100644 --- a/src/demo-research-information/unreleased.yaml +++ b/src/demo-research-information/unreleased.yaml @@ -41,6 +41,7 @@ prefixes: CiTO: http://purl.org/spar/cito/ ISSN: http://identifiers.org/issn/ ODRL: http://www.w3.org/ns/odrl/2/ + SCoRO: http://purl.org/spar/scoro/ bibo: http://purl.org/ontology/bibo/ # TODO preliminary definition, pointing to a future resolver datalad: https://pid.datalad.org/datasets/ -- 2.54.1 From 3a180f76eab9474436962d3dc328367f537dfc03 Mon Sep 17 00:00:00 2001 From: Michael Hanke Date: Tue, 3 Mar 2026 14:32:35 +0100 Subject: [PATCH 2/4] chore: update patches for linkml v1.10 and set dependency --- patches/pythongen_type_reference_order.diff | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/pythongen_type_reference_order.diff b/patches/pythongen_type_reference_order.diff index e7aa2f9..fa84ecd 100644 --- a/patches/pythongen_type_reference_order.diff +++ b/patches/pythongen_type_reference_order.diff @@ -9,7 +9,7 @@ index bcf13d0f..feb5b7bc 100644 import os import re +from collections import defaultdict - from collections.abc import Iterator + from collections.abc import Callable, Iterator from copy import copy from dataclasses import dataclass +from graphlib import TopologicalSorter diff --git a/pyproject.toml b/pyproject.toml index 75a2f68..95ea7d3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,7 +33,7 @@ classifiers = [ "Programming Language :: Python :: Implementation :: PyPy", ] dependencies = [ - "linkml", + "linkml >= 1.10", "dump-things-service", ] -- 2.54.1 From e4ff842cdc704fb2a700b7c4d50f58b173b03272 Mon Sep 17 00:00:00 2001 From: Michael Hanke Date: Tue, 3 Mar 2026 14:48:17 +0100 Subject: [PATCH 3/4] chore: disable Python warnings on tests The reason is that we are on the lookup for linkml error messages and want to fail on those. But as soon as there is an unrelated Python warning, the fuse for STDERR output in the makefile also trips. The concrete case right now is a warning issued by the requests library that it does not find a compatible chardet package. --- .github/workflows/model-checks.yml | 3 +++ .github/workflows/sitebuild.yml | 3 +++ .github/workflows/validate-examples.yaml | 3 +++ 3 files changed, 9 insertions(+) diff --git a/.github/workflows/model-checks.yml b/.github/workflows/model-checks.yml index ed8e8b9..a539724 100644 --- a/.github/workflows/model-checks.yml +++ b/.github/workflows/model-checks.yml @@ -6,6 +6,9 @@ on: - main pull_request: +env: + PYTHONWARNINGS: ignore + jobs: lint: runs-on: ubuntu-latest diff --git a/.github/workflows/sitebuild.yml b/.github/workflows/sitebuild.yml index 73c81b3..ee93978 100644 --- a/.github/workflows/sitebuild.yml +++ b/.github/workflows/sitebuild.yml @@ -14,6 +14,9 @@ concurrency: group: "pages" cancel-in-progress: false +env: + PYTHONWARNINGS: ignore + jobs: build: runs-on: ubuntu-latest diff --git a/.github/workflows/validate-examples.yaml b/.github/workflows/validate-examples.yaml index 3bfd31f..6062336 100644 --- a/.github/workflows/validate-examples.yaml +++ b/.github/workflows/validate-examples.yaml @@ -6,6 +6,9 @@ on: - main pull_request: +env: + PYTHONWARNINGS: ignore + jobs: lint: runs-on: ubuntu-latest -- 2.54.1 From 4135cf44c7ed823873852da5ff5f49a08537fbe5 Mon Sep 17 00:00:00 2001 From: Michael Hanke Date: Tue, 3 Mar 2026 15:56:28 +0100 Subject: [PATCH 4/4] chore: linkml v1.10 broke lookup of local schema imports We use this to ensure testing a consistent set of schemas (and it is also faster). With linkml v1.10, it appears that local schemas are imported relative to CWD -- but only at the first level. When a locally imported schema imports another local schema, the imports are relative to the location of the imported schema (behavior prior v1.10). We mitigate this by changing CWD to the directory of the respective root schema to equalize the conditions again. --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 0f9199f..dae31e3 100644 --- a/Makefile +++ b/Makefile @@ -280,13 +280,13 @@ convertexamples/%: src/%.yaml src/%/examples [ "$$ex" = "$<" ] && continue; \ echo "Converting $$ex" ; \ for outf in json rdf; do \ - linkml-convert \ - -s "$<" \ + ( cd $$(dirname "$<"); linkml-convert \ + -s "$$(basename "$<")" \ --target-class-from-path \ --infer \ -t "$$outf" \ - "$$ex" \ - > $${ex%.yaml}.$${outf}.tmp && \ + ../../"$$ex" \ + ) > $${ex%.yaml}.$${outf}.tmp && \ mv $${ex%.yaml}.$${outf}.tmp $${ex%.yaml}.$${outf} ; \ done \ done -- 2.54.1