concepts.trr379.de/tools/patch_linkml
Michael Hanke ff4e51151d
Some checks failed
Codespell / Check for spelling errors (push) Successful in 17s
Model checks / lint (push) Failing after 1m11s
Validate examples and verify unmodified conversion / lint (push) Failing after 58s
Sync patch-set from datalad concepts
2025-09-02 14:05:34 +02:00

14 lines
983 B
Bash
Executable file

#!/bin/bash
#
# This script applies patches to the active linkml installation.
# It is to be executed in the root of the repository.
#
# Create correct 'order' properties when generating SHACL
patch -d $(python -c 'import os; import linkml.generators.shaclgen as m; print(os.path.dirname(m.__file__))') < patches/shaclgen_annotations.diff
# Honor type-designator slots when loading graphs
patch -d $(python -c 'import os; import linkml_runtime.loaders as m; print(os.path.dirname(m.__file__))') < patches/rdflib_loader_typedesignator.diff
# Use correct constructor arguments when normalizing inlined objects
patch -d $(python -c 'import os; import linkml_runtime.utils.yamlutils as m; print(os.path.dirname(m.__file__))') < patches/linkml_runtime_utils_yamlutils.diff
# Use `&` to separate multiple interfaces in graphql schemas
patch -d $(python -c 'import os; import linkml.generators.graphqlgen as m; print(os.path.dirname(m.__file__))') < patches/graphqlgen_interface_list.diff