Skip to content

Commit 8fc209e

Browse files
authored
Merge pull request #62 from eScienceLab/42-use-short-form-of-keywords-in-error-messages
Removed prefix from entity and property names in shapes' descriptions and messages, and corresponding tests.
2 parents bfbf62f + 6f4d4d9 commit 8fc209e

21 files changed

+37
-41
lines changed

rocrate_validator/profiles/five-safes-crate/may/14_workflow_retrieval_phase.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ five-safes-crate:DownloadedWorkflowSHOULDExistAndBeReferencedByDownloadActionRes
5555
}
5656
""" ;
5757
sh:severity sh:Info ;
58-
sh:message "The entity representing the downloaded workflow is not defined, OR is not referenced by `DownloadAction` --> `result`, OR is not of type `schema:Dataset`." ;
58+
sh:message "The entity representing the downloaded workflow is not defined, OR is not referenced by `DownloadAction` --> `result`, OR is not of type `Dataset`." ;
5959
] ;
6060
] .
6161

rocrate_validator/profiles/five-safes-crate/must/12_check_phase.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ five-safes-crate:CheckValueObjectHasDescriptiveNameAndIsAssessAction
4646
sh:minCount 1 ;
4747
sh:hasValue schema:AssessAction;
4848
sh:severity sh:Violation ;
49-
sh:message "CheckValue MUST be a `schema:AssessAction`." ;
49+
sh:message "CheckValue MUST be a `AssessAction`." ;
5050
] ;
5151

5252
sh:property [

rocrate_validator/profiles/five-safes-crate/must/13_validation_phase.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ five-safes-crate:ValidationCheckObjectHasDescriptiveNameAndIsAssessAction
4646
sh:minCount 1 ;
4747
sh:hasValue schema:AssessAction;
4848
sh:severity sh:Violation ;
49-
sh:message "ValidationCheck MUST be a `schema:AssessAction`." ;
49+
sh:message "ValidationCheck MUST be a `AssessAction`." ;
5050
] ;
5151

5252
sh:property [

rocrate_validator/profiles/five-safes-crate/must/1_responsible_project.ttl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ five-safes-crate:ResponsibleProject
4343
sh:path schema:funding;
4444
sh:class schema:Grant ;
4545
sh:severity sh:Violation ;
46-
sh:message """The property 'funding' of the Responsible Project MUST be of type schema:Grant.""" ;
46+
sh:message """The property 'funding' of the Responsible Project MUST be of type Grant.""" ;
4747
] ;
4848

4949
sh:property [
@@ -55,5 +55,5 @@ five-safes-crate:ResponsibleProject
5555
[ sh:class schema:Person ]
5656
) ;
5757
sh:severity sh:Violation ;
58-
sh:message """The property 'member' of the Responsible Project MUST be of type schema:Organization or schema:Person.""" ;
58+
sh:message """The property 'member' of the Responsible Project MUST be of type schema:Organization or Person.""" ;
5959
] .

rocrate_validator/profiles/five-safes-crate/must/2_requesting_agent.ttl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ five-safes-crate:CreateActionHasAgent
2727
a sh:NodeShape ;
2828
sh:name "CreateAction" ;
2929
sh:targetClass schema:CreateAction ;
30-
sh:description "Checks that a CreateAction has an agent and that each agent is a schema:Person." ;
30+
sh:description "Checks that a CreateAction has an agent and that each agent is a Person." ;
3131

3232
# CreateAction entity MUST have an agent (IRI)
3333
sh:property [
@@ -37,7 +37,7 @@ five-safes-crate:CreateActionHasAgent
3737
sh:minCount 1 ;
3838
sh:nodeKind sh:IRI ;
3939
sh:severity sh:Violation ;
40-
sh:message "CreateAction MUST have at least one schema:agent that is a contextual entity." ;
40+
sh:message "CreateAction MUST have at least one agent that is a contextual entity." ;
4141
] ;
4242

4343
# The agent of a CreateAction entity MUST be a Person
@@ -48,7 +48,7 @@ five-safes-crate:CreateActionHasAgent
4848
sh:nodeKind sh:IRI ;
4949
sh:class schema:Person ;
5050
sh:severity sh:Violation ;
51-
sh:message "Each CreateAction agent MUST be typed as schema:Person." ;
51+
sh:message "Each CreateAction agent MUST be typed as Person." ;
5252
] ;
5353

5454
# If any agent affiliation exists, it MUST be an Organization (IRI)
@@ -59,5 +59,5 @@ five-safes-crate:CreateActionHasAgent
5959
sh:class schema:Organization ;
6060
sh:nodeKind sh:IRI ;
6161
sh:severity sh:Violation ;
62-
sh:message "The affiliation of a CreateAction's agent MUST be a contextual entity with type schema:Organization." ;
62+
sh:message "The affiliation of a CreateAction's agent MUST be a contextual entity with type Organization." ;
6363
] .

rocrate_validator/profiles/five-safes-crate/must/4_sign_off.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ five-safes-crate:SignOffObjectActionAndName
5252
sh:minCount 1 ;
5353
sh:hasValue schema:AssessAction;
5454
sh:severity sh:Violation ;
55-
sh:message "Sign Off phase MUST be a `schema:AssessAction`." ;
55+
sh:message "Sign Off phase MUST be a `AssessAction`." ;
5656
] .
5757

5858
five-safes-crate:SignOffObjectHasActionStatus

rocrate_validator/profiles/five-safes-crate/must/6_workflow_reference.ttl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ five-safes-crate:ReferenceToWorkflowCrate
3838
sh:maxCount 1 ;
3939
sh:nodeKind sh:IRI ;
4040
sh:severity sh:Violation ;
41-
sh:message "The RootDataEntity MUST have exactly one schema:mainEntity property that is an IRI." ;
41+
sh:message "The RootDataEntity MUST have exactly one mainEntity property that is an IRI." ;
4242
] ;
4343

4444
# The mainEntity of a RootDataEntity MUST be a Dataset
@@ -48,7 +48,7 @@ five-safes-crate:ReferenceToWorkflowCrate
4848
sh:path schema:mainEntity ;
4949
sh:class schema:Dataset ;
5050
sh:severity sh:Violation ;
51-
sh:message "The mainEntity pointed to by the RootDataEntity MUST be of type schema:Dataset" ;
51+
sh:message "The mainEntity pointed to by the RootDataEntity MUST be of type Dataset" ;
5252
] .
5353

5454
five-safes-crate:mainEntityHasProperConformsTo
@@ -63,7 +63,7 @@ five-safes-crate:mainEntityHasProperConformsTo
6363
sh:minCount 1 ;
6464
sh:maxCount 1 ;
6565
sh:severity sh:Violation ;
66-
sh:message "mainEntity MUST have one and only one `purl:conformsTo` property." ;
66+
sh:message "mainEntity MUST have one and only one `conformsTo` property." ;
6767
] ;
6868
sh:sparql [
6969
a sh:SPARQLConstraint ;

rocrate_validator/profiles/five-safes-crate/must/7_requested_workflow_run.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ five-safes-crate:CreateActionInstrumentAndStatus
5353
sh:path schema:instrument;
5454
sh:minCount 1 ;
5555
sh:severity sh:Violation ;
56-
sh:message "`CreateAction` MUST have the `schema:instrument` property" ;
56+
sh:message "`CreateAction` MUST have the `instrument` property" ;
5757
] ;
5858
sh:sparql [
5959
a sh:SPARQLConstraint ;

rocrate_validator/profiles/five-safes-crate/must/8_disclosure_phase.ttl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ five-safes-crate:DisclosureObjectHasDescriptiveNameAndIsAssessAction
4444
sh:property [
4545
a sh:PropertyShape ;
4646
sh:name "AssessAction" ;
47-
sh:description "`DisclosureCheck` MUST be a `schema:AssessAction`." ;
47+
sh:description "`DisclosureCheck` MUST be a `AssessAction`." ;
4848
sh:path rdf:type ;
4949
sh:minCount 1 ;
5050
sh:hasValue schema:AssessAction;
5151
sh:severity sh:Violation ;
52-
sh:message "`DisclosureCheck` MUST be a `schema:AssessAction`." ;
52+
sh:message "`DisclosureCheck` MUST be a `AssessAction`." ;
5353
] ;
5454

5555
sh:property [

rocrate_validator/profiles/five-safes-crate/should/10_outputs.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ five-safes-crate:CreateActionHasResultIfActionCompleted
4848
sh:path schema:result ;
4949
sh:minCount 1 ;
5050
sh:severity sh:Warning ;
51-
sh:message "`CreateAction` with CompletedActionStatus SHOULD have the `schema:result` property." ;
51+
sh:message "`CreateAction` with CompletedActionStatus SHOULD have the `result` property." ;
5252
] .
5353

5454

0 commit comments

Comments
 (0)