Skip to content

Commit 56e8fa1

Browse files
authored
Merge pull request #147 from linkml/fix-examples
fixing normalization errors
2 parents 2b76c9c + ce599c9 commit 56e8fa1

File tree

4 files changed

+29
-24
lines changed

4 files changed

+29
-24
lines changed

examples/dynamic-enums-example.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ enums:
7171
relationship_types:
7272
- rdfs:subClassOf
7373
minus:
74-
permissible_values:
75-
root_node:
76-
meaning: MONDO:0000001 ## disease or disorder
74+
- permissible_values:
75+
root_node:
76+
meaning: MONDO:0000001 ## disease or disorder
7777

7878
HumanDisease:
7979
description: Extends the Disease value set, including NCIT neoplasms, excluding non-human diseases
@@ -107,8 +107,8 @@ enums:
107107
- loinc:LP43571-6
108108
is_direct: true
109109
minus:
110-
concepts:
111-
- LOINC:5932-9
110+
- concepts:
111+
- LOINC:5932-9
112112

113113
HCAExample:
114114
see_also:
@@ -123,8 +123,8 @@ enums:
123123
relationship_types:
124124
- rdfs:subClassOf
125125
minus:
126-
concepts:
127-
- LOINC:5932-9
126+
- concepts:
127+
- LOINC:5932-9
128128

129129
BodyPartEnum:
130130
reachable_from:

examples/rules-example.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ classes:
165165
slot_conditions:
166166
encodes:
167167
none_of:
168-
range: Protein
168+
- range: Protein
169169
ProteinCodingGene:
170170
is_a: Gene
171171
classification_rules:

examples/structured_alias.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ slots:
4141
inherited: true
4242
symmetric: true
4343
annotations:
44-
tag: biolink:canonical_predicate
45-
value: true
44+
- tag: biolink:canonical_predicate
45+
value: true
4646
exact_mappings:
4747
- skos:relatedMatch
4848
- UMLS:related_to
@@ -57,12 +57,12 @@ slots:
5757
- RO:0002084
5858
aliases: ['similar to']
5959
structured_aliases:
60-
- alias_name: mapped_to
61-
alias_type: close
60+
- literal_form: mapped_to
61+
predicate: RELATED_SYNONYM
6262
source: infores:mesh
63-
- alias_name: higher_than
64-
alias_type: narrow
63+
- literal_form: higher_than
64+
predicate: NARROW_SYNONYM
6565
source: infores:semmeddb
66-
- alias_name: related_to
67-
alias_type: exact
68-
source: infores:bte
66+
- literal_form: related_to
67+
predicate: EXACT_SYNONYM
68+
source: infores:bte

linkml_model/model/schema/meta.yaml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1754,7 +1754,7 @@ slots:
17541754
range: slot_definition
17551755
description: If s transitive_form_of d, then (1) s holds whenever d holds (2) s is transitive (3) d holds whenever s holds and there are no intermediates, and s is not reflexive
17561756
comments:
1757-
- Example: ancestor_of is the transitive_form_of parent_of
1757+
- "Example: ancestor_of is the transitive_form_of parent_of"
17581758
in_subset:
17591759
- SpecificationSubset
17601760

@@ -2100,8 +2100,8 @@ slots:
21002100
slot_uri: sh:group
21012101
range_expression:
21022102
slot_conditions:
2103-
- is_grouping_slot:
2104-
equals_expression: True
2103+
is_grouping_slot:
2104+
equals_expression: "True"
21052105
in_subset:
21062106
- SpecificationSubset
21072107
- BasicSubset
@@ -2382,6 +2382,7 @@ classes:
23822382
- value set
23832383
- term set
23842384
- Terminology Value Set
2385+
- answer list
23852386
description: an element whose instances must be drawn from a specified set of permissible values
23862387
is_a: definition
23872388
mixins:
@@ -2829,10 +2830,14 @@ enums:
28292830
description: >-
28302831
The formula used to generate the set of permissible values from the code_set values
28312832
permissible_values:
2832-
CODE: The permissible values are the set of possible codes in the code set
2833-
CURIE: The permissible values are the set of CURIES in the code set
2834-
URI: The permissible values are the set of code URIs in the code set
2835-
FHIR_CODING: The permissible values are the set of FHIR coding elements derived from the code set
2833+
CODE:
2834+
description: The permissible values are the set of possible codes in the code set
2835+
CURIE:
2836+
description: The permissible values are the set of CURIES in the code set
2837+
URI:
2838+
description: The permissible values are the set of code URIs in the code set
2839+
FHIR_CODING:
2840+
description: The permissible values are the set of FHIR coding elements derived from the code set
28362841
in_subset:
28372842
- SpecificationSubset
28382843
- BasicSubset

0 commit comments

Comments
 (0)