VC type
Quest Response

TASKS LIST

  • Add introduction
  • Create use cases
  • Document schema
  • Create references to standards and protocols

Quest Response (QuestResponseCredential) type.

The QuestResponse Credential is a versatile verifiable credential designed to securely capture, store, and verify responses to a wide range of questions, tasks, or challenges. It supports various response types, making it suitable for diverse applications, including assessments, surveys, quizzes, and interactive experiences like games.

Examples

Example with Multiple Response Types

{
  "@context": [
    "https://www.w3.org/2018/credentials/v1",
    "https://schema.org/",
    {
      "QuestResponse": {
        "@id": "https://example.org/questresponse",
        "@context": {
          "@version": 1.1,
          "Person": "https://schema.org/Person",
          "Quest": "https://schema.org/CreativeWork",
          "assessmentResponses": {
            "@id": "https://example.org/questresponse/assessmentResponses",
            "@type": "@id"
          },
          "question": {
            "@id": "https://schema.org/Question",
            "@type": "@id"
          },
          "responseType": {
            "@id": "https://schema.org/Text",
            "@type": "xsd:string"
          }
        }
      }
    }
  ],
  "type": [
    "VerifiableCredential",
    "QuestResponse"
  ],
  "issuer": {
    "id": "did:example:assessmentorg123",
    "name": "Personality Assessment Organization"
  },
  "issuanceDate": "2024-08-08T00:00:00Z",
  "credentialSubject": {
    "id": "did:example:subject456",
    "type": "Person",
    "completedQuest": {
      "id": "uri:hcn:quest:QST2024",
      "type": "Quest",
      "name": "Big Five Personality Assessment",
      "description": "A comprehensive assessment to evaluate personality traits based on the Big Five model.",
      "assessmentResponses": [
        {
          "taskId": "uri:hcn:ipip:IPI8867",
          "responseType": "LikertScale",
          "response": {
            "@type": "https://schema.org/Thing",
            "scaleValue": 4,
            "scale": "likert5",
            "direction": 1
          }
        },
        {
          "taskId": "uri:hcn:multiplechoice:MC1234",
          "responseType": "MultipleChoice",
          "response": {
            "@type": "https://schema.org/Thing",
            "selectedOption": "Option B"
          }
        },
        {
          "taskId": "uri:hcn:truefalse:TF5678",
          "responseType": "TrueFalse",
          "response": {
            "@type": "https://schema.org/Thing",
            "value": "True"
          }
        },
        {
          "taskId": "uri:hcn:freetext:FT91011",
          "responseType": "FreeText",
          "response": {
            "@type": "https://schema.org/Text",
            "text": "I believe that teamwork is essential for success."
          }
        }
      ]
    }
  },
  "nonTransferable": true,
  "proof": {
    "type": "JwtProof2020",
    "jws": "eyJhbGciOiJFZERTQSIsIm...signature"
  }
}

Example for a Mini-Game Assessment (Kaiju Cats) from Roblox

{
  "@context": [
    "https://www.w3.org/2018/credentials/v1",
    "https://schema.org/",
    {
      "QuestResponse": {
        "@id": "https://example.org/questresponse",
        "@context": {
          "@version": 1.1,
          "response": {
            "@id": "https://schema.org/Thing",
            "@type": "@id"
          },
          "taskId": {
            "@id": "https://schema.org/Thing",
            "@type": "@id"
          },
          "responseType": {
            "@id": "https://schema.org/Text",
            "@type": "xsd:string"
          },
          "scale": {
            "@id": "https://schema.org/Text",
            "@type": "xsd:string"
          }
        }
      }
    }
  ],
  "type": [
    "VerifiableCredential",
    "QuestResponse"
  ],
  "issuer": {
    "id": "did:example:robloxdev123",
    "name": "Kaiju Cats Development Team"
  },
  "issuanceDate": "2024-08-08T00:00:00Z",
  "credentialSubject": {
    "id": "did:example:player789",
    "type": "Person",
    "completedQuest": {
      "id": "uri:hcn:kaijucats:quest2024",
      "type": "Quest",
      "name": "Kaiju Cats Game Quest",
      "description": "A series of challenges within the Kaiju Cats game to test player skills and decision-making.",
      "assessmentResponses": [
        {
          "taskId": "uri:hcn:kaijucats:task1",
          "responseType": "Score",
          "response": {
            "@type": "https://schema.org/Thing",
            "scoreValue": 1500,
            "scale": "points"
          }
        },
        {
          "taskId": "uri:hcn:kaijucats:task2",
          "responseType": "CompletionTime",
          "response": {
            "@type": "https://schema.org/Thing",
            "timeInSeconds": 120,
            "scale": "seconds"
          }
        },
        {
          "taskId": "uri:hcn:kaijucats:task3",
          "responseType": "DecisionMaking",
          "response": {
            "@type": "https://schema.org/Thing",
            "decision": "Chose to save the city",
            "scale": "binary"
          }
        },
        {
          "taskId": "uri:hcn:kaijucats:task4",
          "responseType": "HealthRemaining",
          "response": {
            "@type": "https://schema.org/Thing",
            "healthPoints": 80,
            "scale": "percentage"
          }
        }
      ]
    }
  },
  "nonTransferable": true,
  "proof": {
    "type": "JwtProof2020",
    "jws": "eyJhbGciOiJFZERTQSIsIm...signature"
  }
}