-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #324 from axone-protocol/feat/vc-proof-of-particip…
…ation Feat/vc proof of participation
- Loading branch information
Showing
5 changed files
with
144 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
--- | ||
sidebar_position: 9 | ||
--- | ||
[//]: # (This file is auto-generated. Please do not modify it yourself.) | ||
|
||
# Proof of participation credential | ||
|
||
> **Name**: `credential-proof-of-participation` | ||
> | ||
> **Namespace**: [https://w3id.org/axone/ontology/v4/schema/credential/proof-of-participation/](https://w3id.org/axone/ontology/v4/schema/credential/proof-of-participation/) | ||
## Namespaces | ||
|
||
Here are the namespaces used in this schema: | ||
|
||
- `rdf`: [http://www.w3.org/1999/02/22-rdf-syntax-ns#](http://www.w3.org/1999/02/22-rdf-syntax-ns#) | ||
- `rdfs`: [http://www.w3.org/2000/01/rdf-schema#](http://www.w3.org/2000/01/rdf-schema#) | ||
- `skos`: [http://www.w3.org/2004/02/skos/core#](http://www.w3.org/2004/02/skos/core#) | ||
- `dcterms`: [http://purl.org/dc/terms/](http://purl.org/dc/terms/) | ||
- `schema`: [http://schema.org/](http://schema.org/) | ||
- `credential-proof-of-participation`: [https://w3id.org/axone/ontology/v4/schema/credential/proof-of-participation/](https://w3id.org/axone/ontology/v4/schema/credential/proof-of-participation/) | ||
|
||
## Verifiable Credential | ||
|
||
> **IRI**: [credential-proof-of-participation:ProofOfParticipationCredential](https://w3id.org/axone/ontology/v4/schema/credential/proof-of-participation/ProofOfParticipationCredential) | ||
### Description | ||
|
||
A Verifiable Credential attesting that a participant has taken part in a specific event. | ||
|
||
The event is linked using `:participatedIn`, which references an instance of [schema:Event](https://schema.org/Event) (e.g., | ||
`schema:Hackathon` or `schema:DeliveryEvent` for token airdrops). | ||
|
||
### Examples | ||
|
||
```json title="katai-proof-of-participation.jsonld" | ||
{ | ||
"@context": [ | ||
"https://www.w3.org/2018/credentials/v1", | ||
"https://w3id.org/axone/ontology/v4/schema/credential/proof-of-participation/", | ||
"https://schema.org" | ||
], | ||
"type": [ | ||
"VerifiableCredential", | ||
"ProofOfParticipationCredential" | ||
], | ||
"id": "https://credentials.axone.xyz/proof-of-participation/katai/42", | ||
"credentialSubject": { | ||
"id": "urn:addr:axone1y6wwdp0gmgnj6hf0jt0r67axhw0fp5dsq37ccv", | ||
"participatedIn": { | ||
"id": "https://play.katai.axone.xyz/sprints/c5295c01-8381-4747-b7be-c7b12dc3b918", | ||
"name": "KatAI | Community-Driven Kat Art, AI & Rewards", | ||
"startDate": "2025-01-08T17:00:00.000Z", | ||
"endDate": "2025-01-29T16:59:59.000Z" | ||
} | ||
}, | ||
"issuanceDate": "2025-01-11T19:14:24.344904+01:00", | ||
"issuer": { | ||
"id": "did:key:zQ3shs7auhJSmVJpiUbQWco6bxxEhSqWnVEPvaBHBRvBKw6Q3", | ||
"name": "Axone" | ||
} | ||
} | ||
|
||
``` | ||
|
||
### Properties | ||
|
||
#### Participated in | ||
> | ||
> **IRI**: [credential-proof-of-participation:participatedIn](https://w3id.org/axone/ontology/v4/schema/credential/proof-of-participation/participatedIn) | ||
> | ||
> **Domain**: [credential-proof-of-participation:ProofOfParticipationCredential](https://w3id.org/axone/ontology/v4/schema/credential/proof-of-participation/ProofOfParticipationCredential) | ||
> | ||
> **Range**: [schema:Event](http://schema.org/Event) | ||
Links the Proof of Participation Credential to the event the participant took part in. | ||
|
||
The event can be any instance of [schema:Event](https://schema.org/Event). |
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
26 changes: 26 additions & 0 deletions
26
src/example/participation/katai-proof-of-participation.jsonld
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,26 @@ | ||
{ | ||
"@context": [ | ||
"https://www.w3.org/2018/credentials/v1", | ||
"https://w3id.org/axone/ontology/v$major/schema/credential/proof-of-participation/", | ||
"https://schema.org" | ||
], | ||
"type": [ | ||
"VerifiableCredential", | ||
"ProofOfParticipationCredential" | ||
], | ||
"id": "https://credentials.axone.xyz/proof-of-participation/katai/42", | ||
"credentialSubject": { | ||
"id": "urn:addr:axone1y6wwdp0gmgnj6hf0jt0r67axhw0fp5dsq37ccv", | ||
"participatedIn": { | ||
"id": "https://play.katai.axone.xyz/sprints/c5295c01-8381-4747-b7be-c7b12dc3b918", | ||
"name": "KatAI | Community-Driven Kat Art, AI & Rewards", | ||
"startDate": "2025-01-08T17:00:00.000Z", | ||
"endDate": "2025-01-29T16:59:59.000Z" | ||
} | ||
}, | ||
"issuanceDate": "2025-01-11T19:14:24.344904+01:00", | ||
"issuer": { | ||
"id": "did:key:zQ3shs7auhJSmVJpiUbQWco6bxxEhSqWnVEPvaBHBRvBKw6Q3", | ||
"name": "Axone" | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
src/schema/participation/credential-proof-of-participation.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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
@prefix : <https://w3id.org/axone/ontology/v$major/schema/credential/proof-of-participation/> . | ||
@prefix schema: <http://schema.org/> . | ||
|
||
:ProofOfParticipationCredential a rdfs:Class ; | ||
rdfs:label "Proof of Participation Credential"@en ; | ||
rdfs:comment """ | ||
A Verifiable Credential attesting that a participant has taken part in a specific event. | ||
The event is linked using `:participatedIn`, which references an instance of [schema:Event](https://schema.org/Event) (e.g., | ||
`schema:Hackathon` or `schema:DeliveryEvent` for token airdrops). | ||
"""@en . | ||
|
||
:participatedIn a rdf:Property ; | ||
rdfs:label "participated in"@en ; | ||
rdfs:comment """ | ||
Links the Proof of Participation Credential to the event the participant took part in. | ||
The event can be any instance of [schema:Event](https://schema.org/Event). | ||
"""@en ; | ||
schema:domainIncludes :ProofOfParticipationCredential ; | ||
schema:rangeIncludes schema:Event . | ||
|
||
|