forked from crs4/rocrate-validator
-
Notifications
You must be signed in to change notification settings - Fork 0
Infer WorkflowRun from CreateAction in five-safes SHACL profiles #104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
EttoreM
wants to merge
97
commits into
develop
Choose a base branch
from
43-run-createaction-checks-only-against-the-createactions-that-the-profile-cares-about
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 88 commits
Commits
Show all changes
97 commits
Select commit
Hold shift + click to select a range
852fb23
started work on isa-ro-crate profile
floWetzels bd1defa
added test arc
floWetzels 7709b57
mystery commit - remove?
elichad 7a87cc5
add ontology labels
elichad 221e210
add note on data entity
elichad d6e0f3b
remove half-baked checks
elichad cc6059a
add sh prefix to ontology
elichad 003bc74
poach sparql_mod testing setup from https://github.com/eScienceLab/ro…
elichad fe1f777
add initial tests
elichad 30b42af
swap out example crate for a simpler one
elichad 3204bd1
fix query syntax
elichad 11e0176
mark valid test as xfail until bug is resolved
elichad d930c8f
WIP adding checks for Study
elichad 36efe64
continue making some demonstrative checks; add test crates; set up un…
elichad 17299b6
add several LabProcess checks for isa profile
HLWeil 7f689bb
add isa study and process test crates
HLWeil fcf3080
add isa process and study tests and some fixes for checks
HLWeil 9b87db2
set non-working isa study test to pending
HLWeil 60fe759
ISA profile - Investigation and Assay checks
floWetzels 4a7342e
ISA profile - updated test crates
floWetzels e2d073c
ISA profile - updated tests
floWetzels 31ebc36
add checks about process objects and results having the correct type
HLWeil daebea1
refactor(core): :recycle: rename flag to `disable_inherited_profiles_…
kikkomep c8ad7b9
refactor(core): :building_construction: skip inherited profile event …
kikkomep cd03486
docs(core): :bulb: improve code documentation with additional comments
kikkomep cd3af57
docs(core): :bulb: clarify the proper usage of the `enable_profile_in…
kikkomep d6f9192
fix(cli): :building_construction: Make the `disable_profile_inheritan…
kikkomep f6e15b7
fix(core): :adhesive_bandage: remove inherited checks from stats when…
kikkomep 4a27eb9
fix(core): :adhesive_bandage: exclude skipped checks from stats
kikkomep 9141a72
fix(core): :bug: enable skipping of SHACL checks
kikkomep efcad8b
fix(core): :bug: enable skipping of Python checks
kikkomep 04988b1
fix(core): :bug: ensure skip_checks is defined before use
kikkomep 38f22ff
fix(cli): :bug: wrong param name
kikkomep c8e7de7
refactor(core): :wrench: set `disable_inherited_profiles_issue_report…
kikkomep 471745b
fix(core): :adhesive_bandage: ensure skipped checks are reported prop…
kikkomep 103c647
test(core): :white_check_mark: test behaviour of `disable_inherited_p…
kikkomep a5d9d0a
test(core): :white_check_mark: test behaviour of skip check functiona…
kikkomep 0c722b5
ISA profile: added protocol checks and updated process checks
floWetzels 807ed77
ISA profile: added tests for protocol checks and updated process tests
floWetzels 0bff8d9
ISA profile: added should checks for investigation with tests
floWetzels 3b17e8b
ISA profile: added checks for study should properties and tests
floWetzels ed0ad77
ISA profile: added should checks (no tests yet)
floWetzels 8615d99
ISA profile: added test using sparql modification of valid ro-crate
floWetzels 7d0d959
fixed merge conflicts
floWetzels 9f01d29
ISA profile: Small fix in assay checks and added tests for Assay shoulds
floWetzels 727b6f0
ISA profile: added checks for Sample, Data, and Person
floWetzels d74bd21
ISA profile: added tests for Sample, Data, and Personn
floWetzels 7b4a2dc
ISA profile: checks and tests for article, comment, defined term
floWetzels bf4f621
ISA profile: checks and tests for PropertyValue (base attributes)
floWetzels 8b6f7f7
#146 Wrap sys.stdout in nullcontext to avoid close on ctx exit
pmslavin d62e214
ISA profile: new definitions of Assay and Study classes, added subcla…
floWetzels 02947b3
ISA profile: cleanup of tests for investigation
floWetzels 2a82b7e
ISA profile: fixed check for linked investigation in study and assay
floWetzels 161cde6
ISA profile: cleanup of study and assay tests
floWetzels 6e3e9a3
ISA profile: modified test with valid ro-crate to use severity recomm…
floWetzels f1c6860
formatting
floWetzels 40fe1e8
formatting
floWetzels cd549aa
ISA profile: test cleanup for process and protocol
floWetzels ffecee2
ISA profile: removed hardcoded invalid test crates
floWetzels b4d3136
formatting
floWetzels 5f9ca89
spelling in profiles
floWetzels 81e50dd
ISA profile: updated checks for root link of study and assay with cor…
floWetzels 4bdc10b
ISA profile: changed test case for valid isa-ro-crate to severity req…
floWetzels fde97be
build(poetry): :arrow_up: allow using the latest PySHACL version
kikkomep 9944712
build(poetry): :wrench: update `poetry.lock` file
kikkomep c6da40a
chore: :mute: filter `rdflib` JSON-LD deprecation warnings
kikkomep a0f5e56
chore(poetry): :art: fix missing whitespaces
kikkomep dbdfae5
fix(cli): :adhesive_bandage: fix `rich` deprecation warning
kikkomep e01ee92
Merge pull request #147 from pmslavin/146-atexit-writes-to-closed-file
kikkomep 0c58ed6
Merge pull request #141 from kikkomep/fix/reporting-inherited-profile…
kikkomep fc68cca
Merge pull request #151 from kikkomep/fix/rdflib-warnings
kikkomep 4f54135
docs: :memo: initialise `CHANGELOG.md`
kikkomep b56a65f
chore: :arrow_up: bump version number to 0.8.1
kikkomep 2251168
docs: :memo: update CHANGELOG (v0.8.1)
kikkomep e66a363
ISA profile: updated copyright in all files related to the profile
floWetzels fbdacb5
ISA profile: fixed some issues and removed leftover code
floWetzels 91e417d
updated CITATION.cff
floWetzels dbf2eef
ISA profile: updates description and message for dateCreated in inves…
floWetzels dea328d
ISA profile: updated copyright in all files related to the profile
floWetzels 01a5c5c
ISA profile: small change in copyright for profile.ttl
floWetzels 70ae91d
ISA profile: updated copyright in all files related to the profile
floWetzels 7277042
Merge pull request #149 from nfdi4plants/isa-profile-setup
simleo 6cde639
Merge remote-tracking branch 'upstream/develop' into develop-testmerge
douglowe 168fac2
5S crate integration test, rename inherited profiles flag
douglowe 5e40c60
5S crate integration test, rename inherited profiles flag (2)
douglowe 6a6f98d
Merge pull request #101 from eScienceLab/develop-testmerge
douglowe b7df62f
Infer WorkflowRun from CreateAction in five-safes SHACL profiles
EttoreM a15258e
Modification of @graph is now centralised
EttoreM 2bd4354
PARTIALLY amended the error messages that appear as validation fails.…
EttoreM 8f19274
completion of amended error messages for workflowrun / createaction
douglowe 5b948c1
linting test files
douglowe 08dd31e
update 5s-rocrate tests
douglowe 7ee8a1d
Renamed to
EttoreM 8d6bc88
Amended message in 7_requested_workflow_run.ttl and corresponding test
EttoreM c57e6cd
Added blank space in message in SHACL shape of
EttoreM 273088f
improved message in 11_workflow_execution_phase.ttl
EttoreM f770e4f
Improved comment in 11_workflow_execution_phase.ttl
EttoreM File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
rocrate_validator/profiles/five-safes-crate/must/0_workflow_run_inference.ttl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| # Copyright (c) 2025 eScience Lab, The University of Manchester | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| @prefix ro-crate: <https://github.com/crs4/rocrate-validator/profiles/ro-crate/> . | ||
| @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
| @prefix schema: <http://schema.org/> . | ||
| @prefix sh: <http://www.w3.org/ns/shacl#> . | ||
| @prefix validator: <https://github.com/crs4/rocrate-validator/> . | ||
|
|
||
|
|
||
| ro-crate:FindWorkflowRunAction a sh:NodeShape, validator:HiddenShape; | ||
| sh:order 1 ; | ||
| sh:name "Identify the CreateAction Entity that corresponds to the Workflow run" ; | ||
| sh:description """The Workflow Run is the CreateAction entity that refers to Workflow run. | ||
| This is identified by checking that the CreateAction entity has an `instrument` property | ||
| that references the same entity as the `mainEntity` property of the Root Data Entity.""" ; | ||
| sh:target [ | ||
| a sh:SPARQLTarget ; | ||
| sh:prefixes ro-crate:sparqlPrefixes ; | ||
| sh:select """ | ||
| SELECT ?this | ||
| WHERE { | ||
| ?this a schema:CreateAction ; | ||
| schema:instrument ?instrument . | ||
| ?root a ro-crate:RootDataEntity ; | ||
| schema:mainEntity ?instrument . | ||
| } | ||
| """ | ||
| ] ; | ||
|
|
||
| sh:rule [ | ||
| a sh:TripleRule ; | ||
| sh:subject sh:this ; | ||
| sh:predicate rdf:type ; | ||
| sh:object ro-crate:WorkflowRun ; | ||
| ] . | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment about
sh:orderhereThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See response above.