Graphic question

Definitions

Schema

Examples

Graphic simple

{
  "id": "1",
  "type": "application/x.graphic+json",
  "content": "Question ?",
  "image": {
    "id": "12",
    "type": "image/jpeg",
    "meta": {
      "label": "Charlie"
    },
    "url": "http://domain.com/images/charlie_01.jpg",
    "width": 800,
    "height": 400
  },
  "pointers": 2
}

Graphic extended

{
  "id": "1",
  "type": "application/x.graphic+json",
  "content": "Question ?",
  "meta": {
    "authors": [
      {
        "name": "Dr Bunny",
        "status": "Tutor"
      }
    ],
    "license": "CC",
    "created": "2014-06-23"
  },
  "objects": [
    {
      "id": "1",
      "type": "text/html",
      "data": "<p>Lorem ipsum dolor sit amet</p>",
      "meta": {
        "title": "Lorem sample"
      }
    }
  ],
  "resources": [
    {
      "id": "2",
      "type": "application/pdf",
      "url": "http://domain.com/syllabus.txt"
    }
  ],
  "image": {
    "id": "12",
    "type": "image/jpeg",
    "meta": {
      "label": "Charlie"
    },
    "url": "http://domain.com/images/charlie_01.jpg",
    "width": 800,
    "height": 400
  },
  "pointers": 2,
  "hints": [
    {
      "id": "21",
      "value": "Lorem",
      "penalty": 0.5
    },
    {
      "id": "12",
      "value": "Ipsum",
      "penalty": 1.5
    }
  ]
}

Graphic solutions

{
  "id": "1",
  "type": "application/x.graphic+json",
  "content": "Where is Charlie ?",
  "image": {
    "id": "12",
    "meta": {
      "label": "Charlie"
    },
    "type": "image/jpeg",
    "url": "http://domain.com/images/charlie_01.jpg",
    "width": 800,
    "height": 400
  },
  "pointers": 1,
  "solutions": [
    {
      "area": {
        "id": "7",
        "center": {
          "x": 144,
          "y": 727
        },
        "shape": "circle",
        "color": "red",
        "radius": 26
      },
      "score": 2,
      "feedback": "you should have known..."
    }
  ]
}

Graphic with meta

{
  "id": "1",
  "type": "application/x.graphic+json",
  "content": "Question ?",
  "meta": {
    "authors": [
      {
        "name": "Dr Bunny",
        "status": "Tutor"
      }
    ],
    "license": "CC",
    "created": "2014-06-23"
  },
  "image": {
    "id": "12",
    "type": "image/jpeg",
    "meta": {
      "label": "Charlie"
    },
    "url": "http://images/charlie_01.jpg",
    "width": 800,
    "height": 400
  },
  "pointers": 2
}