Skip to content

Commit

Permalink
refactor: mv common credit class shape to main credit-class.ttl
Browse files Browse the repository at this point in the history
  • Loading branch information
blushi committed Jun 29, 2023
1 parent 2872e5e commit 0706dce
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 166 deletions.
21 changes: 21 additions & 0 deletions shacl/common.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,24 @@ regen:ProjectActivitiesPropertyShape sh:path regen:projectActivities ;
sh:minCount 1 ;
sh:maxCount 1 ;
.

regen:ApprovedMethodologiesPropertyShape sh:path regen:approvedMethodologies ;
sh:class schema: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:MethodologyVersionShape ;
sh:minCount 1 ;
] ;
] ;
sh:property [
sh:path schema:url ;
sh:maxCount 1 ;
sh:datatype schema:URL ;
] ;
.
42 changes: 0 additions & 42 deletions shacl/credit-classes/C01-verified-carbon-standard-class.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -10,46 +10,4 @@ regen:C01-CreditClass rdfs:subClassOf regen:CreditClass .

regen:C01-CreditClassShape a sh:NodeShape ;
sh:targetClass regen:C01-CreditClass ;
sh:property [
sh:path schema:description ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:minLength 1 ;
sh:datatype xsd:string ;
] ;
sh:property [
sh:path schema:name ;
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 regen:OffsetGenerationMethodPropertyShape ;
sh:property regen:ApprovedMethodologiesPropertyShape ;
sh:property [
sh:path regen:verificationMethod ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:minLength 1 ;
sh:datatype xsd:string ;
] ;
.
52 changes: 0 additions & 52 deletions shacl/credit-classes/C02-city-forest-credits-class.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -10,58 +10,6 @@ regen:C02-CreditClass rdfs:subClassOf regen:CreditClass .

regen:C02-CreditClassShape a sh:NodeShape ;
sh:targetClass regen:C02-CreditClass ;
sh:property [
sh:path schema:description ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:minLength 1 ;
sh:datatype xsd:string ;
] ;
sh:property [
sh:path schema:name ;
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 regen:ApprovedMethodologiesPropertyShape ;
sh:property [
sh:path regen:verificationMethod ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:minLength 1 ;
sh:datatype xsd:string ;
] ;
sh:property regen:ProjectActivitiesPropertyShape;
sh:property [
sh:path regen:carbonOffsetStandard ;
Expand Down
52 changes: 0 additions & 52 deletions shacl/credit-classes/C03-toucan-tco2-class.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -10,58 +10,6 @@ regen:C03-CreditClass rdfs:subClassOf regen:CreditClass .

regen:C03-CreditClassShape a sh:NodeShape ;
sh:targetClass regen:C03-CreditClass ;
sh:property [
sh:path schema:description ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:minLength 1 ;
sh:datatype xsd:string ;
] ;
sh:property [
sh:path schema:name ;
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 regen:ApprovedMethodologiesPropertyShape ;
sh:property [
sh:path regen:verificationMethod ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:minLength 1 ;
sh:datatype xsd:string ;
] ;
sh:property [
sh:path regen:tokenizationSource ;
sh:minCount 1 ;
Expand Down
42 changes: 42 additions & 0 deletions shacl/credit-classes/credit-class.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,50 @@

regen:CreditClassShape a sh:NodeShape ;
sh:targetClass regen: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 schema:image ;
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 regen:OffsetGenerationMethodPropertyShape ;
sh:property [
sh:path regen:verificationMethod ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:minLength 1 ;
sh:datatype xsd:string ;
] ;
sh:property regen:ApprovedMethodologiesPropertyShape ;
.
20 changes: 0 additions & 20 deletions shacl/methodologies/methodology.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,3 @@ regen:MethodologyVersionShape a sh:NodeShape ;
] ;
.

regen:ApprovedMethodologiesPropertyShape sh:path regen:approvedMethodologies ;
sh:class schema: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:MethodologyVersionShape ;
sh:minCount 1 ;
] ;
] ;
sh:property [
sh:path schema:url ;
sh:maxCount 1 ;
sh:datatype schema:URL ;
] ;
.

0 comments on commit 0706dce

Please sign in to comment.