Skip to content

Commit

Permalink
refactor: remove C04 class example and refactor ttls
Browse files Browse the repository at this point in the history
  • Loading branch information
blushi committed Aug 9, 2023
1 parent b0ef457 commit b282ed6
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 151 deletions.
105 changes: 0 additions & 105 deletions jsonld/credit-classes/C04-ruuts-credit-class.jsonld

This file was deleted.

81 changes: 36 additions & 45 deletions shacl/credit-classes/C04-ruuts-credit-class.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -7,50 +7,6 @@

regen:C04-CreditClassShape a sh:NodeShape ;
sh:targetClass regen:C04-CreditClass ;
sh:property [
sh:path schema:name ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:minLength 1 ;
sh:datatype xsd:string ;
] ;
sh:property [
sh:path schema:description ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:minLength 1 ;
sh:datatype xsd:string ;
] ;
sh:property [
sh:path schema:url ;
sh:datatype schema:URL ;
] ;
sh:property [
sh:path regen:sourceRegistry ;
sh:node regen:NameUrlShape ;
] ;
sh:property [
sh:path regen:sectoralScope ;
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 ;
] ;
sh:property [
sh:path regen:offsetGenerationMethod ;
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 ;
] ;
sh:property [
sh:path regen:measuredGHGs ;
sh:node dash:ListShape ;
Expand Down Expand Up @@ -156,7 +112,6 @@ regen:C04-CreditClassShape a sh:NodeShape ;
sh:maxCount 1 ;
sh:minLength 1 ;
] ;
sh:property regen:ApprovedMethodologiesPropertyShape ;
sh:property regen:BufferPoolAccountsShape ;
sh:property [
sh:path regen:additionalityApproach ;
Expand Down Expand Up @@ -187,4 +142,40 @@ regen:C04-CreditClassShape a sh:NodeShape ;
sh:maxCount 1 ;
sh:minLength 1 ;
] ;
.

regen:BufferPoolAccountShape a sh:NodeShape ;
sh:property [
sh:path schema:name ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:minLength 1 ;
] ;
sh:property [
sh:path regen:walletAddress ;
sh:datatype xsd:string ;
sh:minCount 1 ;
] ;
sh:property [
sh:path regen:poolAllocation ;
sh:datatype xsd:string ;
sh:minCount 1 ;
] ;
.

regen:BufferPoolAccountsShape sh:path regen:bufferPoolAccounts ;
sh:node dash:ItemList ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:property [
sh:path schema:itemListElement ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:property [
sh:path ( [ sh:zeroOrMorePath rdf:rest ] rdf:first ) ;
sh:node regen:BufferPoolAccountShape ;
sh:minCount 1 ;
] ;
]
.
2 changes: 1 addition & 1 deletion shacl/credit-classes/credit-class.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@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;
sh:targetClass regen:CreditClass, regen:C01-CreditClass, regen:C02-CreditClass, regen:C03-CreditClass, regen:C04-CreditClass;
sh:property [
sh:path schema:name ;
sh:minCount 1 ;
Expand Down

0 comments on commit b282ed6

Please sign in to comment.