Skip to content

Instantly share code, notes, and snippets.

View science's full-sized avatar

Steve Midgley science

  • California, USA
View GitHub Profile
{
"doc_type": "resource_data",
"resource_locator": "http://docsteach.org/activities/16/detail",
"digital_signature": {
"key_location": ["http://goopen.sandbox.learningregistry.net/pubkey"],
},
"resource_data": "{\"@id\":\"http://docsteach.org/activities/16/detail\",\"@type\":\"CreativeWork\",\"name\":\"The Constitution at Work\",\"thumbnailUrl\":\"http://docsteach.org/assets/lesson/000/000/022/22_medium.jpg\",\"url\":\"http://docsteach.org/activities/16/detail\",\"description\":\"In this activity students will analyze documents that span the course of American history to determine their connection to the U.S. Constitution. Students will then make connections between the documents they have examined and the big ideas found within the Constitution.\",\"typicalAgeRange\":\"13-18\",\"keywords\":\"History\",\"educationalAlignment\":[{\"@type\":\"AlignmentObject\",\"alignmentType\":\"educationLevel\",\"educationalFramework\":\"US K-12 Grade Levels\",\"targetName\":\"8-12\"},{\"@type\":\"AlignmentObjec
# Signed LR v2 envelope
# nb. `resource` = JWT encoded version of LR v2 envelope below
# resource_format can must be one of: "json" or "xml in json"
{
"@context": "http://learningregistry.org/schemas/v2/envelope",
"envelope_type": "resource_data",
"envelope_version": "1.0.0",
"envelope_id": "[URN or similar]",
"envelope_community": "[LearningRegistry|CredentialRegistry]",
"resource": "[resource serialized as string]",
@science
science / LR 2.0 envelope with deleteVotes concept.json
Last active March 4, 2016 22:44
LR envelope as returned by API with example of a "deleteVotes" statement embedded - see line 85. Note this would be an unsigned envelope (or signed by the node)
{
"@id": "http://docsteach.org/activities/16/detail",
"@type": "CreativeWork",
"name": "The Constitution at Work",
"thumbnailUrl": "http://docsteach.org/assets/lesson/000/000/022/22_medium.jpg",
"url": "http://docsteach.org/activities/16/detail",
"description": "In this activity students will analyze documents that span the course of American history to determine their connection to the U.S. Constitution. Students will then make connections between the documents they have examined and the big ideas found within the Constitution.",
"typicalAgeRange": "13-18",
"keywords": "History",
"educationalAlignment": [
@science
science / merged envelope.json
Last active March 17, 2016 18:56
LR 2.0 "merged" envelope returned from API - see line 8 for sample concept
{
"@id": "http://docsteach.org/activities/16/detail",
"@type": "CreativeWork",
"name": "The Constitution at Work",
"thumbnailUrl": "http://docsteach.org/assets/lesson/000/000/022/22_medium.jpg",
"url": "http://docsteach.org/activities/16/detail",
"description": "In this activity students will analyze documents that span the course of American history to determine their connection to the U.S. Constitution. Students will then make connections between the documents they have examined and the big ideas found within the Constitution.",
"typicalAgeRange":
[
{"value": "13-18",
@science
science / paradata disavowal example.json
Created March 8, 2016 06:03
A sample json-ld schema.org structure with an optional "disavowal" paradata statement, refuting the metadata provided
{
"@id": "http://docsteach.org/activities/16/detail",
"@type": "CreativeWork",
"name": "The Constitution at Work",
"thumbnailUrl": "http://docsteach.org/assets/lesson/000/000/022/22_medium.jpg",
"url": "http://docsteach.org/activities/16/detail",
"paradata": {
"activity": {
"actor": "organization",
"verb": {
@science
science / enum.json
Created June 14, 2016 21:14
Sample Enumeration example for schema.org
{
"books": [
{"@bookType": "hardcover",
"title": "Gone with the Wind"
},
{"@booktype": "eBook",
"title": "The Great Gatsby"}
]
}
@science
science / cti_organization_schema.json
Created June 24, 2016 14:51
JSON-schema definition for organization - DRAFT/IN PROGRESS
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "CredentialRegistry Organization metadata",
"type": "object",
"definitions": {
"organization_cti": {
"properties": {
"@type": { "enum": ["cti:Organization"] },
@science
science / registry_data_envelope.json
Created June 24, 2016 14:53
Data envelope that wraps a data resource for management by metadata registry
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Data envelope",
"type": "object",
"definitions": {
"envelope": {
"properties": {
"envelope_type": {
"description": "Defines the type of the envelope. For now, the only accepted value is \"resource_data\"",
@science
science / cti_credential_schema.json
Created June 24, 2016 14:55
CTI Credential json-schema definition - DRAFT/IN PROGRESS
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "CredentialRegistry Organization metadata",
"type": "object",
"definitions": {
"organization_cti": {
"properties": {
"@type": { "enum": ["cti:Organization"] },
@science
science / json-ld.json
Created June 24, 2016 14:56
JSON-LD definition in json-schema format
{
"title": "Schema for JSON-LD",
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions":{
"context": {
"additionalProperties": true,
"properties": {
"@context": {
"description": "Used to define the short-hand names that are used throughout a JSON-LD document.",