Skip to content

Instantly share code, notes, and snippets.

@ottonomy
Last active April 11, 2024 23:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ottonomy/5a9f67b8a6735279913e8758a0ac102c to your computer and use it in GitHub Desktop.
Save ottonomy/5a9f67b8a6735279913e8758a0ac102c to your computer and use it in GitHub Desktop.
Basic OB examples for skills and work history
{
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json"
],
"id": "urn:uuid:8468ceb1-8ef7-4c42-b69d-078a8b8bba7c",
"type": ["VerifiableCredential", "OpenBadgeCredential"],
"issuer": "did:example:me",
"validFrom": "2020-01-01T00:00:00Z",
"validUntil": "2024-01-01T00:00:00Z",
"credentialSubject": {
"id": "did:example:me",
"type": ["AchievementSubject"],
"achievement": {
"id": "urn:uuid:4fbe4e58-176e-4109-8cb2-4007270e814e",
"type": ["Achievement"],
"achievementType": "Competency",
"criteria": {
"narrative": "Self-claimed Teamwork badge based on the Lightcast open skill"
},
"description": "Teamwork!",
"name": "Teamwork",
"alignment": [
{
"targetUrl": "https://lightcast.io/open-skills/skills/KSKJX44T33B6D4UCC8CB",
"targetName": "Teamwork",
"targetFramework": "Lightcast Open Skills"
}
]
}
}
}
{
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json"
],
"id": "urn:uuid:3b7ce332-7450-420a-9af0-215a6e83ca1e",
"type": ["VerifiableCredential", "OpenBadgeCredential"],
"issuer": "did:example:employer",
"validFrom": "2020-01-01T00:00:00Z",
"credentialSubject": {
"id": "did:example:me",
"type": ["AchievementSubject"],
"activityStartDate": "2020-01-01T00:00:00Z",
"activityEndDate": "2023-01-01T00:00:00Z",
"achievement": {
"id": "urn:uuid:4fbe4e58-176e-4109-8cb2-4007270e814e",
"type": ["Achievement"],
"achievementType": "ext:WorkExperience",
"fieldOfStudy": "System Engineering", // For example if you want to put the department name somewhere
"humanCode": "SE123", // For example if you want to put the department code somewhere
"criteria": {
"narrative": "Self-claimed work history [Link to job info](https://somejobdetails.org)",
"id": "https://example.org/credentials/3732"
},
"description": "4 years of work history in the System Engineering Department. Full time work not just an hour a year.",
"name": "Integration Architect"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment