-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcommon_metadata.md.jinja2
74 lines (56 loc) · 1.42 KB
/
common_metadata.md.jinja2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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
<!-- Jinja2 template based on https://github.com/linkml/linkml/blob/main/linkml/generators/docgen/common_metadata.md.jinja2 -->
<!-- This file should be periodically checked against the original source -->
<!-- Last check 25 August 2023 -->
{% if element.aliases %}
## Aliases
{% for alias in element.aliases %}
* {{ alias }}
{%- endfor %}
{% endif %}
{% if element.examples %}
## Examples
| Value |
| --- |
{% for x in element.examples -%}
| {{ x.value }} |
{% endfor %}
{% endif -%}
{% if element.todos -%}
## TODOs
{% for x in element.todos -%}
* {{x}}
{% endfor %}
{% endif -%}
{% if element.see_also -%}
## See Also
{% for x in element.see_also -%}
* {{ gen.uri_link(x) }}
{% endfor %}
{% endif -%}
## Identifier and Mapping Information
{% if element.id_prefixes %}
### Valid ID Prefixes
Instances of this class *should* have identifiers with one of the following prefixes:
{% for p in element.id_prefixes %}
* {{p}}
{% endfor %}
{% endif %}
{% if element.annotations %}
### Annotations
| property | value |
| --- | --- |
{% for a in element.annotations -%}
{%- if a|string|first != '_' -%}
| {{ a }} | {{ element.annotations[a].value }} |
{%- endif -%}
{% endfor %}
{% endif %}
{% if element.from_schema or element.imported_from %}
### Schema Source
{% if element.from_schema %}
* from schema: {{ element.from_schema }}
{% endif %}
{% if element.imported_from %}
* imported from: {{ element.imported_from }}
{% endif %}
{% endif %}