From c8c96c342a5d266597efd209471c41887f714344 Mon Sep 17 00:00:00 2001 From: Chris Mungall Date: Wed, 10 Apr 2024 18:09:15 -0700 Subject: [PATCH 1/3] sssom datamodel --- src/linkml_transformer/datamodel/sssom.map.yaml | 8 ++++++++ tests/test_compiler/test_duckdb_compiler.py | 4 ++++ 2 files changed, 12 insertions(+) create mode 100644 src/linkml_transformer/datamodel/sssom.map.yaml diff --git a/src/linkml_transformer/datamodel/sssom.map.yaml b/src/linkml_transformer/datamodel/sssom.map.yaml new file mode 100644 index 0000000..0531876 --- /dev/null +++ b/src/linkml_transformer/datamodel/sssom.map.yaml @@ -0,0 +1,8 @@ +class_derivations: + Mapping: + any_of: + - populated_from: ClassDerivation + slot_derivations: + .. + - populated_from: SlotDerivation + diff --git a/tests/test_compiler/test_duckdb_compiler.py b/tests/test_compiler/test_duckdb_compiler.py index 09f4441..4174a41 100644 --- a/tests/test_compiler/test_duckdb_compiler.py +++ b/tests/test_compiler/test_duckdb_compiler.py @@ -24,13 +24,17 @@ def test_compile(session): assert session.transformer_specification is not None compiled = compiler.compile(session.transformer_specification) # TODO: include imports so that code compiles + print("Compiled SQL:") print(compiled.serialization) source_sv = SchemaView(SCHEMA1) source_ddl = compiler.create_ddl(source_sv) + print("Source DDL:") print(source_ddl) target_sv = session.target_schemaview + print("Target Schema:") print(yaml_dumper.dumps(target_sv.schema)) target_ddl = compiler.create_ddl(target_sv) + print("Target DDL:") print(target_ddl) import duckdb From efbf46e236771659fbee1b8771ad9911a3d980f2 Mon Sep 17 00:00:00 2001 From: Chris Mungall Date: Wed, 10 Apr 2024 18:10:21 -0700 Subject: [PATCH 2/3] ignore --- .gitignore | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 8720283..4b6a193 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,8 @@ .idea project/ -./docs/ +docs/ tmp/ site/ __pycache__ - +tests/output/ dist/* From 9d51aaacfed7068c8b58777b3d49dd6b7ff86271 Mon Sep 17 00:00:00 2001 From: Chris Mungall Date: Wed, 10 Apr 2024 18:15:48 -0700 Subject: [PATCH 3/3] Advance warning of renaming. #22 --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index b1ea7ff..0ad06c2 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ # linkml-transformer +THIS PACKAGE HAS BEEN RENAMED + +It is now called linkml-map: https://pypi.org/project/linkml-map/ + [![Pyversions](https://img.shields.io/pypi/pyversions/linkml-transformer.svg)](https://pypi.python.org/pypi/linkml-transformer) ![](https://github.com/linkml/linkml-transformer/workflows/Build/badge.svg) [![PyPi](https://img.shields.io/pypi/v/linkml-transformer.svg)](https://pypi.python.org/pypi/linkml-transformer)