Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions src/linkml_map/datamodel/transformer_model.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ prefixes:
rdfs: http://www.w3.org/2000/01/rdf-schema#
sh: http://www.w3.org/ns/shacl#
STATO: http://purl.obolibrary.org/obo/STATO_
sssom: https://w3id.org/sssom/
default_prefix: linkmlmap

imports:
Expand Down Expand Up @@ -75,6 +76,23 @@ classes:
title:
description: human readable title for this transformation specification
slot_uri: dcterms:title
description:
description: >-
A description of the transformation specification, including its purpose,
how it should be used, and any other relevant information.
slot_uri: dcterms:description
publication_date:
description: date of publication of this transformation specification
range: date
slot_uri: dcterms:issued
license:
description: license under which this transformation specification is published
range: uriorcurie
slot_uri: dcterms:license
version:
description: version of this transformation specification
range: string
slot_uri: dcterms:version
prefixes:
description: maps prefixes to URL expansions
range: KeyVal
Expand All @@ -89,6 +107,21 @@ classes:
description: name of the schema that describes the source (input) objects
target_schema:
description: name of the schema that describes the target (output) objects
creator_id:
description: A list of creators of this transformation specification
range: uriorcurie
multivalued: true
slot_uri: sssom:creator_id
author_id:
description: A list of authors of this transformation specification
range: uriorcurie
multivalued: true
slot_uri: sssom:author_id
mapping_method:
description: The method used to create this mapping, e.g. manual curation, automated
mapping, etc.
range: uriorcurie
slot_uri: sssom:mapping_justification
class_derivations:
description: >-
Instructions on how to derive a set of classes in the target schema
Expand Down Expand Up @@ -211,6 +244,15 @@ classes:
class_named:
description: local alias for the class

ObjectDerivation:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated change - in discussion with @amc-corey-cox this was missing from the metamodel.

attributes:
class_derivations:
description: >-
One or more class derivations.
range: ClassDerivation
multivalued: true
inlined: true

SlotDerivation:
is_a: ElementDerivation
description: A specification of how to derive the value of a target slot from a source slot
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
id: my-mappings
title: my mappings
id: https://w3id.org/linkml/map/example/personinfo-to-agent.transform.yaml
title: PersonInfo to Agent example transformation
version: 0.1
prefixes:
foo: foo
source_schema: s1
target_schema: s2
semapv: https://w3id.org/semapv/vocab/
description: |
This mapping set demonstrates how to transform a person information schema
into a different format using LinkML.
license: https://creativecommons.org/licenses/by/4.0/
creator_id:
- https://orcid.org/0000-0002-7356-1779
author_id:
- https://orcid.org/0000-0002-7356-1779
publication_date: 2025-08-14
source_schema: https://w3id.org/linkml/map/example/personinfo.yaml
target_schema: https://w3id.org/linkml/map/example/agent.yaml
mapping_method: semapv:ManualMappingCuration
class_derivations:
Container:
populated_from: Container
Expand Down
Loading