-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #132 feat: Badges and Skills data modelling for Diksha teacher …
…registry
- Loading branch information
Anand
committed
Mar 29, 2018
1 parent
794c6ec
commit 909c6a4
Showing
2 changed files
with
107 additions
and
0 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,53 @@ | ||
{ | ||
"id":"open-saber.registry.create", | ||
"ver":"1.0", | ||
"ets":"974737274", | ||
"params":{ | ||
"did":"", | ||
"key":"", | ||
"msgid":"" | ||
}, | ||
"request":{ | ||
"@context":{ | ||
"diksha":"http://diksha.gov.in/voc/teacher/1.0.0/", | ||
"xsd":"http://www.w3.org/2001/XMLSchema#", | ||
"@vocab":"http://diksha.gov.in/voc/teacher/1.0.0/" | ||
}, | ||
"teacherId":1234, | ||
"badgeAssertions":[ | ||
{ | ||
"@type":"diksha:BadgeAssertion", | ||
"assertionId":"e8f204a3-fe9d-45c8-b9ed-67061440ca60", | ||
"assertionType":"Assertion", | ||
"badgeId":"java-se-8-programmer", | ||
"badgeURL": "http://diksha.gov.in/public/badges/java-se-8-programmer", | ||
"recipient":{ | ||
"@type":"diksha:Identity", | ||
"identity":"sha256$2e4073c27e83948c2d75bb424fa65e8eecef013e327f071c90515904af6e3261", | ||
"identityType":"email", | ||
"identityHashed": true, | ||
"identitySalt":"17212da8-0fce-49ba-b39d-058edc73ea0d" | ||
}, | ||
"verify":{ | ||
"@type":"diksha:Verification", | ||
"verificationType":"hosted", | ||
"verificationURL":"http://diksha.gov.in/public/assertions/e8f204a3-fe9d-45c8-b9ed-67061440ca60" | ||
}, | ||
"assertionIssuedOn":{ | ||
"@type":"xsd:datetime", | ||
"@value":"2018-03-05T02:19:25.586958" | ||
}, | ||
"assertionImage":"http://localhost:8000/public/assertions/e8f204a3-fe9d-45c8-b9ed-67061440ca60/image", | ||
"assertionEvidence":"http://diksha.gov.in/public/assertions/e8f204a3-fe9d-45c8-b9ed-67061440ca60/evidence", | ||
"assertionExpiry":{ | ||
"@type":"xsd:datetime", | ||
"@value":"2020-03-05T23:59:59.586958" | ||
} | ||
} | ||
], | ||
"skills":{ | ||
"@type":"diksha:Skill", | ||
"skillName":"oracle-java" | ||
} | ||
} | ||
} |
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,54 @@ | ||
PREFIX diksha: <http://diksha.gov.in/voc/teacher/1.0.0/> | ||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | ||
PREFIX openbadges: <https://w3id.org/openbadges/v1> | ||
|
||
diksha:isAYear xsd:gYear | ||
diksha:isAString xsd:string | ||
diksha:isAnInteger xsd:integer | ||
diksha:isALong xsd:long | ||
diksha:isADate xsd:date | ||
diksha:isADatetime xsd:datetime | ||
diksha:isURI xsd:uri | ||
diksha:isADecimal xsd:decimal | ||
diksha:isABoolean xsd:boolean | ||
diksha:isAIRI IRI | ||
|
||
diksha:TeacherShape { | ||
a [diksha:Teacher] ; | ||
diksha:teacherId @diksha:isALong * ; | ||
diksha:badgeAssertion @diskha:BadgeAssertionShape * ; | ||
diskha:skills @diksha:SkillShape * ; | ||
} | ||
|
||
diksha:BadgeAssertionShape { | ||
a [diksha:BadgeAssertion] ; | ||
diksha:assertionId @diksha:isAIRI * ; | ||
diksha:assertionType @diksha:isAString * ; | ||
diksha:badgeUID @diksha:isAString * ; | ||
diksha:recipient @diksha:IdentityShape * ; | ||
diksha:badgeURL @diksha:isAIRI * ; | ||
diksha:verify @diksha:VerificationShape * ; | ||
diksha:assertionIssuedOn @diksha:isADatetime * ; | ||
diksha:assertionImage @diksha:isAIRI *; | ||
diksha:assertionEvidence @diksha:isAIRI *; | ||
diksha:assertionExpiry @diksha:isADatetime *; | ||
} | ||
|
||
diksha:SkillShape { | ||
a [diksha:Skill] ; | ||
diksha:skillName @diksha:isAString * ; | ||
} | ||
|
||
diksha:IdentityShape { | ||
a [diksha:Identity] ; | ||
diksha:identity @diksha:isAString * ; | ||
diksha:identityType @diksha:isAString * ; | ||
diksha:identityHashed @diksha:isABoolean * ; | ||
diksha:identitySalt @diksha:isAString * ; | ||
} | ||
|
||
diksha:VerificationShape { | ||
a [diksha:Verification] ; | ||
diksha:verificationType @diksha:isAString * ; | ||
diksha:verificationURL @diksha:isAIRI * ; | ||
} |