Skip to content

Instantly share code, notes, and snippets.

@ottonomy
Created October 29, 2024 01:01
Show Gist options
  • Save ottonomy/5c92209d76f5b718223ad4c7f0d1268d to your computer and use it in GitHub Desktop.
Save ottonomy/5c92209d76f5b718223ad4c7f0d1268d to your computer and use it in GitHub Desktop.
Open Badges Skill examples 2024-10-28
{
// Example 1: An Achievement aligned to a Competency
// This example uses an alignment to an external targetUrl
// The alignment targetType indicates the purpose of the alignment
// is competency/skill.
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json"
],
"id": "http://example.edu/credentials/3732",
"type": ["VerifiableCredential", "OpenBadgeCredential"],
"issuer": {
"id": "https://example.edu/issuers/565049",
"type": ["Profile"],
"name": "Example University"
},
"validFrom": "2010-01-01T00:00:00Z",
"name": "Safe and responsible use of AI",
"credentialSubject": {
"id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
"type": ["AchievementSubject"],
"achievement": {
"id": "https://1edtech.edu/achievements/1",
"type": ["Achievement"],
"achievementType": "Achievement", // Or "Competency" or anything. When using alignment to targetType Competency,
// any type achievement is likely representing achievement of the linked
// competency.
"criteria": {
"narrative": "They are expected to be conscious of the risks of disclosing data privacy and take measures to ensure that their data are collected, used, shared, archived and deleted only with their deliberate and informed consent. They are also expected to be conscious of typical AI incidents and the specific risks of certain AI systems, and be able to protect their own safety and that of their peers when using AI."
},
"description": "Students are expected to be able to carry out responsible AI practices in compliance with ethical principles and locally applicable regulations.",
"name": "Safe and responsible use of AI",
"alignment": [
{
"type": ["Alignment"],
"targetCode": "ce-cf4dee18-7cea-443a-b920-158a0762c6bf",
"targetFramework": "UNESCO AI Competency Framework for Students",
"targetName": "Safe and responsible use of AI",
"targetType": "ceterms:Competency",
// Ideally targetUrl a URL that is both human and machine-readable. Credential Engine absolutely should
// be redirecting JSON traffic over to the corresponding JSON url, and vice versa to this HTML
// representation. All in all, usually the link to the human-readable thing should be used.
"targetUrl": "https://credentialfinder.org/competency/ce-ecd0cb90-858e-415d-9988-44352d204514"
}
],
"tag": ["Ethics of AI"] // Immaterial to the skill-ness of this credential.
}
}
}
{
// Example 2: An Achievement that IS the Competency created by a 3rd party
// Here, achievementType is "Competency", there is no external alignment,
// this Achievement Describes the competency directly.
//
// The Achievement.creator is a different organization from the credential
// issuer. (This Achievement would still represent a Competency even if not
// from a 3rd party creator)
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json"
],
"id": "http://example.edu/credentials/3732",
"type": ["VerifiableCredential", "OpenBadgeCredential"],
"issuer": {
"id": "https://example.edu/issuers/565049",
"type": ["Profile"],
"name": "Example University"
},
"validFrom": "2010-01-01T00:00:00Z",
"name": "Linear equations and inequalities",
"credentialSubject": {
"id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
"type": ["AchievementSubject"],
"achievement": {
"id": "https://example.com/achievements/math/linear-1",
"type": ["Achievement"],
"achievementType": "Competency",
"name": "Linear equations and inequalities",
"description": "This achievement represents developing capability to solve and graph linear equations and inequalities",
"criteria": {
"narrative": "Learners must demonstrate understanding of linear algebra and graphic representation of linear equations."
},
"image": {
"id": "https://example.com/achievements/math/linear-1/image",
"type": "Image",
"caption": "A line, sloping upward optimistically"
},
// Creator of the achievement is a 3rd party. (This relationship is currently not verifiable)
// and the authority of the credential issuer to use this Achievement is not verifiable.
"creator": {
"id": "https://example.com/issuers/123767",
"type": ["Profile"],
"name": "Example Industry Group",
"url": "https://example.com",
"description": "Example Industry Group is a consortium of luminaries who publish skills data for common usage.",
"email": "[email protected]"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment