Skip to content

Commit

Permalink
fix: adjust some of the credit class constraints for upcoming KSH01
Browse files Browse the repository at this point in the history
  • Loading branch information
blushi committed Aug 31, 2023
1 parent cbb6554 commit 12be3ce
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
11 changes: 11 additions & 0 deletions shacl/common.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ regen:OffsetGenerationMethodPropertyShape sh:path regen:offsetGenerationMethod ;
sh:maxCount 1 ;
.

regen:CreditGenerationMethodPropertyShape sh:path regen:creditGenerationMethod ;
sh:node dash:ListShape ;
sh:property [
sh:path ( [ sh:zeroOrMorePath rdf:rest ] rdf:first ) ;
sh:datatype xsd:string ;
sh:minLength 1 ;
] ;
sh:minCount 1 ;
sh:maxCount 1 ;
.

regen:OffsetGenerationMethodOptionalPropertyShape sh:path regen:offsetGenerationMethod ;
sh:node dash:ListShape ;
sh:property [
Expand Down
14 changes: 11 additions & 3 deletions shacl/credit-classes/credit-class.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

regen:CreditClassShape a sh:NodeShape ;
sh:targetClass regen:CreditClass, regen:C01-CreditClass, regen:C02-CreditClass, regen:C03-CreditClass, regen:C04-CreditClass;
sh:targetClass
regen:CreditClass,
regen:C01-CreditClass, regen:C02-CreditClass, regen:C03-CreditClass, regen:C04-CreditClass,
regen:KSH01-CreditClass;
sh:property [
sh:path schema:name ;
sh:minCount 1 ;
Expand Down Expand Up @@ -42,10 +45,15 @@ regen:CreditClassShape a sh:NodeShape ;
sh:datatype xsd:string ;
sh:minLength 1 ;
] ;
sh:minCount 1 ;
sh:maxCount 1 ;
] ;
sh:property regen:OffsetGenerationMethodPropertyShape ;
sh:or (
[
sh:property regen:OffsetGenerationMethodPropertyShape ;
] [
sh:property regen:creditGenerationMethodPropertyShape ;
]
) ;
sh:or (
[
sh:property [
Expand Down

0 comments on commit 12be3ce

Please sign in to comment.