Skip to content

Instantly share code, notes, and snippets.

@ottonomy
ottonomy / 20170621-badgeclass.json
Last active June 21, 2017 16:54
20170621-badgeclass.json
{
"@context": "https://w3id.org/openbadges/v2",
"id": "https://gist.github.com/ottonomy/f920ce98aa93c2d60b685461f4bd22ca/raw",
"type": "BadgeClass",
"name": "Hosted Bill of Rights",
"description": "Description of Bill",
"image": "https://api.badgr.io/public/badges/bill-of-rights/image",
"criteria": {
"id": "https://api.badgr.io/public/badges/bill-of-rights/criteria",
"narrative": "some narrative"
@ottonomy
ottonomy / 20170621-assertion.json
Last active June 26, 2017 19:04
20170621-assertion.json
{
"@context": "https://w3id.org/openbadges/v2",
"id": "https://gist.github.com/ottonomy/30f865699f2047082a4f91f920eb91b4/raw",
"type": "Assertion",
"recipient": {
"type": "email",
"hashed": false,
"identity": "bcowell@concentricsky.com"
},
"badge": "https://gist.github.com/ottonomy/f920ce98aa93c2d60b685461f4bd22ca/raw",
@ottonomy
ottonomy / psc.md
Created June 9, 2017 19:23
Links for the Pacific Science Center Discovery Corps program
@ottonomy
ottonomy / embedded-badgeclass-minimal.jsonld
Created July 9, 2015 00:16
Embedded BadgeClass Minimal
{
"@context": {
"id": "@id",
"obi": "https://w3id.org/openbadges#",
"badge": {"@id": "obi:badge", "@type": "@id"},
"name": "http://schema.org/name"
},
"badge": "https://issuer.org/badgeclass1",
"obi:badge": {
"id": "https://issuer.org/badgeclass1",
@ottonomy
ottonomy / credentials context v1
Created April 8, 2015 05:25
draft credentials context v1
{
"@context": {
"id": "@id",
"type": "@type",
"credentials": "http://specification.openbadges.org/credentials/#",
"obi": "http://specification.openbadges.org/#",
"schema": "https://schema.org/",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"dc": "http://purl.org/dc/terms/",
@ottonomy
ottonomy / v1 context
Created April 8, 2015 05:17
draft 8 April 2015 - Open Badges Context 1.1
{
"@context": {
"id": "@id",
"type": "@type",
"obi": "https://w3id.org/openbadges#",
"validation": "obi:validation",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"schema": "http://schema.org/",
"sec": "https://w3id.org/security#",
"Assertion": "obi:Assertion",
{
"@context": {
"id": "@id",
"type": "@type",
"obi": "http://specification.openbadges.org/#",
"assertion": "obi:Assertion",
"badge": { "@id": "badge", "@type": "@id" },
"issuer": { "@id": "obi: Issuer", "@type": "@id" },
"extension": "http://specification.openbadges.org/extensions#",
@ottonomy
ottonomy / extensionSchema.json
Created November 1, 2014 00:34
Sample extension JSON-schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "http://extension.org/schema/badgeListUrl",
"title": "BadgelistUrl Extension",
"description": "An extension that allows issuers to declare a list of badge classes that they offer",
"type": "object",
"properties": {
"listUrl": { "type": "string", "format": "uri" }
},
"required": ["listUrl"]
@ottonomy
ottonomy / extensionContext.jsonld
Created November 1, 2014 00:33
Sample extension context file
{
"@context": {
"obi": "http://openbadges.org/definitions#",
"listUrl": {
"@id": "http://extension.org/defs/listUrl",
"@type": "@id"
}
},
"obi:validation": [
@ottonomy
ottonomy / issuerExtended.jsonld
Created November 1, 2014 00:32
sample extended issuer file
{
"@context": "http://openbadges.org/standard/1.1/context",
"@type": "issuer",
"name": "Issuer of Awesome",
"url": "http://issuer.org",
"extension:badgeListUrl": {
"@context": "http://extension.org/context/badgeListUrl",
"@type": ["extension", "http://extension.org/defs/badgelistUrl" ],