Skip to content

Commit

Permalink
Merge pull request #186 from psychoinformatics-de/fixes
Browse files Browse the repository at this point in the history
Enable schema validation in check-models, and fix detected issues
  • Loading branch information
mih authored Dec 9, 2024
2 parents c59c405 + f213d80 commit fc923ff
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ checkmodel/%: src/%.yaml
@linkml-lint \
--config .linkmllint.yaml \
--max-warnings 0 \
--validate \
$<
# generate various output formats, they all have the potential to
# reveal "hidden" issues
Expand Down
7 changes: 4 additions & 3 deletions src/distribution/unreleased.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,10 @@ types:
uri: xsd:nonNegativeInteger
base: int
description: An integer
notes: >-
Integer with minimum (inclusive) value of zero, i.e. the standard
mathematical concept of the non-negative integers.
notes:
- >-
Integer with minimum (inclusive) value of zero, i.e. the standard
mathematical concept of the non-negative integers.
broad_mappings:
- schema:Integer

Expand Down
3 changes: 2 additions & 1 deletion src/prov/unreleased.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ types:
where TZD is the time zone designator (Z or +hh:mm or -hh:mm)
typeof: string
pattern: '^(\d{4})|(\d{4}-[01]\d)|(\d{4}-[01]\d-[0-3]\d)|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))$'
see_also: https://www.w3.org/TR/NOTE-datetime
see_also:
- https://www.w3.org/TR/NOTE-datetime


slots:
Expand Down
8 changes: 5 additions & 3 deletions src/thing/unreleased.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,10 @@ classes:
slot_usage:
value:
required: true
notes: >-
It is required, because when it is not needed, `Thing` should be
used as a type. Its absence is therefore likely a sign of an error.
notes:
- >-
It is required, because when it is not needed, `Thing` should
be used as a type. Its absence is therefore likely a sign of
an error.
exact_mappings:
- obo:OBI_0001933

0 comments on commit fc923ff

Please sign in to comment.