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/* 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) 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