Skip to content

Commit

Permalink
feat: support for schema copy directives
Browse files Browse the repository at this point in the history
As of now copy_directives can not be specified at
TransformationSpecification level to declare that all elements of a
schema should be recursively copied.
This commit adds this missing support.

Signed-off-by: Silvano Cirujano Cuesta <[email protected]>
  • Loading branch information
Silvanoc committed Aug 1, 2024
1 parent 305f949 commit 60a8f6e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/linkml_map/datamodel/transformer_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ class TransformationSpecification(SpecificationComponent):
default_factory=dict,
description="""Instructions on how to derive a set of top level slots in the target schema""",
)
copy_directives: Optional[Dict[str, CopyDirective]] = Field(default_factory=dict)
description: Optional[str] = Field(
None, description="""description of the specification component"""
)
Expand Down
4 changes: 4 additions & 0 deletions src/linkml_map/datamodel/transformer_model.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ classes:
multivalued: true
inlined: true
slot_uri: sh:declare
copy_directives:
range: CopyDirective
multivalued: true
inlined: true
source_schema:
description: name of the schema that describes the source (input) objects
target_schema:
Expand Down

0 comments on commit 60a8f6e

Please sign in to comment.