Skip to content

Commit 56edb18

Browse files
committed
slots.yaml needs to be a full schema to be imported
1 parent 58dd355 commit 56edb18

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

build.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,26 @@
131131
yaml.dump(module_schema, fp, sort_keys=False)
132132

133133
# Step 6 - write slots file
134+
slots_schema = {
135+
"id": f"https://openminds.ebrains.eu/schemas/latest/slots?format=linkml",
136+
"name": "openMINDS-slots",
137+
"title": f'OpenMINDS properties as LinkML slots, version "{schema_version}"',
138+
"description": f'Slots for the LinkML representation of the openMINDS metadata framework, version "{schema_version}"',
139+
"license": "https://spdx.org/licenses/MIT.html",
140+
"prefixes": {
141+
"linkml": "https://w3id.org/linkml/",
142+
"schema": "http://schema.org/",
143+
"omi": "https://openminds.ebrains.eu",
144+
},
145+
"default_prefix": "omi",
146+
"imports": ["linkml:types"],
147+
"slots": slots
148+
}
134149
with open(
135150
os.path.join("target", "schemas", schema_version, f"slots.yaml"),
136151
"w",
137152
) as fp:
138-
yaml.dump({"slots": slots}, fp, sort_keys=False)
153+
yaml.dump(slots_schema, fp, sort_keys=False)
139154

140155
# Step 7 - create overall schema file
141156
schema_metadata = {

0 commit comments

Comments
 (0)