@@ -34,7 +34,7 @@ LINKML_DIR = $(SRC_DIR)/linkml
34
34
JSONSCHEMA_DIR = $(SRC_DIR ) /jsonschema
35
35
PYTHON_DIR = $(SRC_DIR ) /cdm_schema
36
36
# sample data
37
- SAMPLE_DATA_DIR = sample_data
37
+ SAMPLE_DATA_DIR = test/data
38
38
39
39
# unused
40
40
SHEET_MODULE = $(LINKML_SCHEMA_GOOGLE_SHEET_MODULE )
@@ -161,12 +161,6 @@ lint-validate: ## validate the schema; warnings or errors result in a non-zero
161
161
lint-validate-no-warn : # # validate the schema; warnings do not result in a non-zero exit code
162
162
$(RUN ) linkml-lint --ignore-warnings --validate $(LINKML_DIR )
163
163
164
- test-sample-data : # # validate sample data against LinkML schema
165
- $(RUN ) linkml-validate -s $(LINKML_SCHEMA_FILE ) sample_data/** /** /* .json
166
-
167
- test-sample-data-jsonschema : # # validate sample data against JSONschema
168
- $(RUN ) check-jsonschema --schemafile $(JSONSCHEMA_DIR ) /$(SCHEMA_BASE_NAME ) .schema.json --verbose sample_data/** /** /* .json
169
-
170
164
check-config :
171
165
ifndef LINKML_SCHEMA_NAME
172
166
$(error **Project not configured**:\n\n - See '.env.public'\n\n)
@@ -184,27 +178,15 @@ examples/%.json: $(SAMPLE_DATA_DIR)/%.yaml
184
178
examples/% .ttl : $(SAMPLE_DATA_DIR ) /% .yaml
185
179
$(RUN ) linkml-convert -P EXAMPLE=http://example.org/ -s $(LINKML_SCHEMA_FILE ) -C $(SCHEMA_ROOT ) $< -o $@
186
180
187
- test-examples : examples/output
188
181
189
- examples/output : src/$(SCHEMA_NAME ) /schema/$(SCHEMA_NAME ) .yaml
190
- mkdir -p $@
182
+ test-examples :
191
183
$(RUN ) linkml-run-examples \
192
- --output -formats json \
184
+ --input -formats yaml \
193
185
--output-formats yaml \
194
- --counter-example-input-directory $(SAMPLE_DATA_DIR ) /invalid \
195
- --input-directory $(SAMPLE_DATA_DIR ) /valid \
196
- --output-directory $@ \
197
- --schema $< > $@ /README.md
198
-
199
- uv run linkml-run-examples \
200
- --input-formats json \
201
- --input-formats yaml \
202
- --output-formats json \
203
- --output-formats yaml \
204
- --counter-example-input-directory tests/data/invalid \
205
- --input-directory tests/data/valid \
206
- --output-directory examples/output \
207
- --schema {{source_schema_path}} > examples/output/README.md
186
+ --counter-example-input-directory tests/data/invalid \
187
+ --input-directory tests/data/valid \
188
+ --output-directory examples/output \
189
+ --schema $(LINKML_SCHEMA_FILE ) > examples/output/README.md
208
190
209
191
serve : mkd-serve # # Test documentation locally
210
192
0 commit comments