Compiler Package
A compiler will compile a Map specification into an alternative representation
Compiler (Base Class)
Bases: ABC
Base class for all compilers.
A compiler will compile a transformation specification into an alternative representation.
An example compiler would be a R2RML compiler.
Note: Compilers and Importers will in general be implemented by providing mapping specifications
Source code in src/linkml_map/compiler/compiler.py
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | |
source_python_module = None
class-attribute
instance-attribute
The python module containing the source classes.
source_schemaview = None
class-attribute
instance-attribute
A view over the schema describing the source.
target_python_module = None
class-attribute
instance-attribute
The python module containing the target classes.
compile(specification)
Compile a resolved transformation specification into an alternative representation.
:param specification: A fully resolved specification (e.g. from
Transformer.derived_specification). Must not be None.
:return: The compiled specification.
Source code in src/linkml_map/compiler/compiler.py
65 66 67 68 69 70 71 72 73 74 75 76 77 78 | |
derived_target_schemaview(specification)
Return a view over the target schema, including any derived classes.
Source code in src/linkml_map/compiler/compiler.py
86 87 88 89 90 91 | |
Python Compiler
Bases: Compiler
Compiles a Transformation Specification to Python code.
Source code in src/linkml_map/compiler/python_compiler.py
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | |
Markdown Compiler
Bases: J2BasedCompiler
Compiles a Transformation Specification to Markdown.
Source code in src/linkml_map/compiler/markdown_compiler.py
6 7 8 9 10 11 12 | |
Graphviz Compiler
Bases: Compiler
Compile a Transformation Specification to GraphViz.
Source code in src/linkml_map/compiler/graphviz_compiler.py
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | |