-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for optional credit class image (#56)
* feat: add generic credit-class.jsonld and support for optional class image * chore: rm tokenization source * fix: pin docker image to debian:bullseye * chore: update credit class @type * fix: repeated schema:URL @type and useless xsd:string * refactor: mv common credit class shape to main credit-class.ttl * fix: shacl common.ttl --------- Co-authored-by: Kyle Lawlor-Bagcal <[email protected]>
- Loading branch information
Showing
15 changed files
with
224 additions
and
312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"@context": { | ||
"schema": "http://schema.org/", | ||
"regen": "https://schema.regen.network#", | ||
"xsd": "http://www.w3.org/2001/XMLSchema#", | ||
"schema:itemListElement": { | ||
"@container": "@list" | ||
}, | ||
"regen:sectoralScope": { | ||
"@container": "@list" | ||
}, | ||
"regen:offsetGenerationMethod": { | ||
"@container": "@list" | ||
}, | ||
"regen:projectActivities": { | ||
"@container": "@list" | ||
}, | ||
"schema:url": { | ||
"@type": "schema:URL" | ||
}, | ||
"schema:image": { | ||
"@type": "schema:URL" | ||
} | ||
}, | ||
"@type": "regen:CreditClass", | ||
"schema:description": "", | ||
"schema:name": "", | ||
"schema:url": "", | ||
"schema:image": "", | ||
"regen:sourceRegistry": { | ||
"schema:name": "", | ||
"schema:url": "" | ||
}, | ||
"regen:sectoralScope": [ | ||
"" | ||
], | ||
"regen:offsetGenerationMethod": [ | ||
"" | ||
], | ||
"regen:approvedMethodologies": { | ||
"@type": "schema:ItemList", | ||
"schema:itemListElement": [ | ||
{ | ||
"schema:name": "", | ||
"schema:url": "", | ||
"schema:identifier": "", | ||
"schema:version": "" | ||
}, | ||
{ | ||
"schema:name": "", | ||
"schema:url": "", | ||
"schema:identifier": "", | ||
"schema:version": "" | ||
} | ||
], | ||
"schema:url": "" | ||
}, | ||
"regen:verificationMethod": "", | ||
"regen:projectActivities": [ | ||
"" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 3 additions & 46 deletions
49
shacl/credit-classes/C01-verified-carbon-standard-class.ttl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,9 @@ | ||
@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: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 ; | ||
] ; | ||
. |
Oops, something went wrong.