Skip to content

Commit

Permalink
Merge pull request #23 from linkml/sssom-datamodel
Browse files Browse the repository at this point in the history
Advance warning of rename added to README
  • Loading branch information
cmungall authored Apr 11, 2024
2 parents dca86d3 + 9d51aaa commit 2e11448
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.idea
project/
./docs/
docs/
tmp/
site/
__pycache__

tests/output/
dist/*
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
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 2e11448

Please sign in to comment.