schemaorg-coda :: Example

eg-0485

From v29.4

JSON-LD

{
  "@context": [
    "https://schema.org",
    "https://www.w3.org/ns/credentials/v2"
  ],
  "id": "http://certification.example/credentials/3732",
  "type": "VerifiableCredential",
  "issuer": "https://certification.example/issuers/14",
  "validFrom": "2023-01-01T19:23:24Z",
  "credentialSubject": {
    "type": "Product",
    "id": "https://www.example.com/12345678901231",
    "hasCertification": {
      "type": "Certification",
      "schema:name": "CO2 Measured",
      "certificationStatus": "CertificationActive",
      "issuedBy": {
        "type": "Organization",
        "schema:name": "CO2 Trust",
        "url": "https://www.co2trust.com/"
      },
      "logo": "https://www.co2trust.com/c02-measured-logo.jpg",
      "hasMeasurement": {
        "@type": "QuantitativeValue",
        "schema:name": "CO2e",
        "value": 0.158,
        "unitCode": "KGM"
      }
    }
  },
  "proof": {
    "type": "DataIntegrityProof",
    "cryptosuite": "ecdsa-rdfc-2019",
    "created": "2023-12-11T14:58:20Z",
    "verificationMethod": "https://certification.example/issuers/14#key-1",
    "proofPurpose": "assertionMethod",
    "proofValue": "z5dqTceMhzmpFSfwEphYDnWJJiAtcGaitiZ2FgpRWEcLJmfQBRMUpaTihmhpdHbiMJN9Ranx1PXLaGSePQjV74nLC"
  }
}

Pre-Markup

Example of a certification for carbon footprint of a product with a W3C verifiable
credential (https://w3c.github.io/vc-data-model). The certification information is copied
and embedded within the Product.

Note the use of id and type instead of @id and @type, using the mappings defined in
https://www.w3.org/ns/credentials/v2, for lighter-weight credential-type specific processing.