Skip to content

Commit

Permalink
sssom datamodel
Browse files Browse the repository at this point in the history
  • Loading branch information
cmungall committed Apr 11, 2024
1 parent dca86d3 commit c8c96c3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/linkml_transformer/datamodel/sssom.map.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
class_derivations:
Mapping:
any_of:
- populated_from: ClassDerivation
slot_derivations:
..
- populated_from: SlotDerivation

4 changes: 4 additions & 0 deletions tests/test_compiler/test_duckdb_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c8c96c3

Please sign in to comment.