Skip to content

Commit

Permalink
added batch-metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
S4mmyb committed Sep 12, 2023
1 parent fb8c44d commit 72a4ecc
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
31 changes: 31 additions & 0 deletions ops/KSH01/credit-batch-metadata/KSH01-001-20230101-20230501.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"@context": {
"schema": "http://schema.org/",
"regen": "https://schema.regen.network#",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"regen:verificationReports": {
"@container": "@list"
},
"regen:monitoringReports": {
"@container": "@list"
},
"schema:url": {
"@type": "schema:URL"
}
},
"regen:verificationReports": [
{
"schema:url": "https://regen-registry.s3.amazonaws.com/registry/C05-Sheep-Grazing-in-Vineyard-Systems-Credit-Class/Projects/KSH01-001/project-documentation/2023+Grazing+Season+Verification+Report+-+Grgich+Hills+Estate.pdf"
}
],
"regen:monitoringReports": [
{
"schema:url": "https://regen-registry.s3.amazonaws.com/registry/C05-Sheep-Grazing-in-Vineyard-Systems-Credit-Class/Projects/KSH01-001/project-documentation/2023+Grazing+Season+Monitoring+Report+-+Grgich+Hills+Estate.pdf"
}
],
"regen:projectVerifier": {
"schema:name": "RND Science Team",
"schema:url": "https://app.regen.network/ecocredits/accounts/regen1aa3lclex9w9fxrna5xu68ajruwgvsxklrl2c47"
}
}

40 changes: 40 additions & 0 deletions shacl/credit-batches/KSH01-batch.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
@prefix schema: <http://schema.org/> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix regen: <https://schema.regen.network#> .
@prefix dash: <http://datashapes.org/dash#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

regen:KSH01-CreditBatchShape a sh:NodeShape ;
sh:targetClass regen:KSH01-CreditBatch ;
sh:property [
sh:path regen:verificationReports ;
sh:node dash:ListShape ;
sh:property [
sh:path ( [ sh:zeroOrMorePath rdf:rest ] rdf:first ) ;
sh:node regen:UrlShape ;
] ;
] ;
sh:property [
sh:path regen:monitoringReports ;
sh:node dash:ListShape ;
sh:property [
sh:path ( [ sh:zeroOrMorePath rdf:rest ] rdf:first ) ;
sh:node regen:UrlShape ;
] ;
] ;
sh:property [
sh:path regen:projectVerifier ;
sh:node regen:NameUrlShape ;
] ;
.

regen:UrlShape a sh:NodeShape ;
sh:property [
sh:path schema:url ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:datatype schema:URL ;
] ;
.

0 comments on commit 72a4ecc

Please sign in to comment.