Skip to content

Commit 0c23758

Browse files
satradjarecka
andauthored
WIP: updated branch with changes to support linkml schema (#456)
* [wip] linkml version with shacl, context and pydantic * removing some unnecessary any_of; regenerate context * changing comments to description; fixing types (string vs langString) and adding @language:en to context; bringing back imageUrl; splitting UI class to multiple classes for UI for Activity, Field and Protocol * Updated linkml schema and corresponding updates to context * Move TimedOut to an enumeration for missing * update autogenerated files * Add generated shacl * more fixes * change name to also allow importing reproschema * remove slot_usage of value for some classes * adding AllowSkip and fixing activity1 * changing LangString to Dict[str, str] * fixing vocab in the context file * fixing alt label so it is also langString, adding altLabel to the example * fixing context for additionalNotesObj * adding container to choices in the context * adding additional container=set to the context * removing old contexts and renaming the new one * updates based on the examples from reproschema-library * additional changes based on testing library: adding CreativeWork to ResponseOption, dealing with dict-form of compute * fixing compute * adding MissingType to the Response value * adding AllowAltResponse option * adding CreativeWork to most of the classes; adding description to CreativeWork slots; slightly different formatting from the linkml generator * adding title to enum, and modyfing label so it include reproschema * adding Thing and use it instead of CreativeWork in some classes * adding back CreativeWork to ResponseOption and Activity * moving category to Thing and removing Creative Work; removing imageUrl to have consistent with video and audio * removing imageUrl and CreativeWork from the context * add proprietary flag to activities * removing decimal * cleaning: removing some fles and changing test (will not work before merging reproschema-py) * running pre-commit * removing link to validation --------- Co-authored-by: Dorota Jarecka <[email protected]>
1 parent 3a8aa0c commit 0c23758

16 files changed

+956
-787
lines changed

.github/workflows/pythonpackage.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Test with pyshacl
2828
run: |
2929
python scripts/jsonParser.py
30-
reproschema -l DEBUG validate --shapefile validation/reproschema-shacl.ttl examples
30+
reproschema validate examples
3131
- name: Make a release
3232
run: |
3333
python scripts/makeRelease.py ci-release

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ This repository contains:
1212
- the [different terms of the ReproSchema](./terms)
1313
- the [corresponding context files](./contexts)
1414
- a example of [a protocol based on the reproschema](./examples)
15-
- the [validation SHACL files](./validation)
1615
- the [documentation](./docs)
1716

1817

contexts/base

-18
This file was deleted.

contexts/generic

-279
This file was deleted.

0 commit comments

Comments
 (0)