Contexts, Vocabularies, and Types
Datatypes
The sriString
Datatype
It MUST conform to the definition in Verifiable Credentials Data Model v2.0 Section B.3.1. For permitted hashes, they MUST conform to hash algorithms.
Example 1:
sha256-GtNUUolQVlwIkQU9JknWkwkhfdiVmHr/BOnLFFHC5jI=
Example 2:
sha256-I4OoejARWbxpTQ1HEccoxIaOIMUjEIgxEfJXJDAjwoI=
sha384-dN4FeVmV5DQb/C8iAY+sBUjLjFfB+knXZJ3RT2GyJg8Tco4SPQYwxNpe2M50b9ON
The image
Datatype
The value of the image
data type is a JSON-LD Node Object and contains the following properties:
id
: REQUIRED. The URL of the image.digestSRI
: RECOMMENDED. A hash value to ensure the integrity of the image. It MUST be of thesriString
datatype.
Example:
{
"id": "https://example.com/image.png",
"digestSRI": "sha256-OYP9B9EPFBi1vs0dUqOhSbHmtP+ZSTsUv2/OjSzWK0w="
}
Verifying image
Datatype
A verifier can verify properties of the image
datatype by following these steps (OPTIONAL):
-
Get the image by sending a GET request to the URL of the
id
property. -
Verify the image obtained in 1. against the
digestSRI
property by the method as specified in SRI section 3.3.5.
The page
Datatype
page
The data type value is a JSON-LD Node Object that contains the following properties:
id
: REQUIRED. The URL of the Web page.name
: REQUIRED. The title of the Web page.
The dateTimeStamp
Datatype
The value of the dateTimeStamp
data type MUST be a dateTimeStamp
string from W3C XML Schema Definition Language (XSD) 1.1 Part 2: Datatypes section 3.3.7 dateTime, which corresponds to the http://www.w3.org/2001/XMLSchema#dateTime data type in the JSON-LD context.
Contexts
This section is non-normative.
These context definitions do not reflect the latest specifications. Please refer to each specification document for the definition of each VC and property.
https://originator-profile.org/ns/credentials/v1
This section is non-normative.
{
"@context": {
"@version": 1.1,
"@base": "https://originator-profile.org/ns/credentials/v1",
"@protected": true,
"op": "https://originator-profile.org/ns/credentials/v1#",
"Image": {
"@id": "https://originator-profile.org/ns/credentials/v1#image",
"@context": {
"@protected": true,
"id": {
"@id": "https://schema.org/image",
"@type": "@id"
},
"digestSRI": {
"@id": "https://www.w3.org/2018/credentials#digestSRI",
"@type": "https://www.w3.org/2018/credentials#sriString"
}
}
},
"allowedUrl": "https://schema.org/url",
"PlainTextDescription": {
"@id": "https://originator-profile.org/ns/credentials/v1#PlainTextDescription",
"@context": {
"@protected": true,
"type": "@type",
"data": {
"@id": "https://originator-profile.org/ns/credentials/v1#data",
"@type": "https://schema.org/Text"
}
}
},
"ContentAttestation": {
"@id": "https://originator-profile.org/ns/credentials/v1#ContentAttestation",
"@context": {
"@protected": true,
"allowedUrl": "op:allowedUrl",
"target": {
"@id": "https://originator-profile.org/ns/credentials/v1#target",
"@type": "@id"
}
}
},
"CoreProfile": "https://originator-profile.org/ns/credentials/v1#CoreProfile",
"Core": {
"@id": "https://originator-profile.org/ns/credentials/v1#Core",
"@context": {
"@protected": true,
"id": "@id",
"jwks": {
"@id": "https://originator-profile.org/ns/credentials/v1#jwks",
"@type": "@json"
}
}
},
"ProfileAnnotation": "https://originator-profile.org/ns/credentials/v1#ProfileAnnotation",
"WebMediaProfile": "https://originator-profile.org/ns/credentials/v1#WebMediaProfile",
"WebMediaSubject": {
"@id": "https://originator-profile.org/ns/credentials/v1#WebMediaSubject",
"@context": {
"@protected": true,
"id": "@id",
"type": "@type",
"url": "https://schema.org/url",
"name": "https://schema.org/name",
"logo": "op:Image",
"email": "https://schema.org/email",
"telephone": "https://schema.org/telephone",
"title": "https://schema.org/title",
"image": "op:Image",
"description": "https://schema.org/description",
"origin": {
"@id": "https://originator-profile.org/ns/credentials/v1#origin",
"@type": "https://schema.org/url"
},
"contactTitle": "https://schema.org/title",
"contactUrl": "https://schema.org/url",
"privacyPolicyTitle": "https://schema.org/title",
"privacyPolicyUrl": "https://schema.org/url",
"publishingPrincipleTitle": "https://schema.org/title",
"publishingPrincipleUrl": "https://schema.org/url"
}
},
"WebsiteProfile": "https://originator-profile.org/ns/credentials/v1#WebsiteProfile",
"Website": {
"@id": "https://originator-profile.org/ns/credentials/v1#Website",
"@context": {
"@protected": true,
"id": "@id",
"type": "@type",
"title": "https://schema.org/title",
"image": "op:Image",
"description": "https://schema.org/description",
"origin": {
"@id": "https://originator-profile.org/ns/credentials/v1#origin",
"@type": "https://schema.org/url"
}
}
}
}
}
https://originator-profile.org/ns/cip/v1
This section is non-normative.
{
"@context": {
"@version": 1.1,
"@base": "https://originator-profile.org/ns/cip/v1",
"@protected": true,
"cip": "https://originator-profile.org/ns/cip/v1#",
"op": "https://originator-profile.org/ns/credentials/v1#",
"CertificateSubject": {
"@id": "https://originator-profile.org/ns/cip/v1#CertificateSubject",
"@context": {
"@protected": true,
"id": "@id",
"type": "@type",
"description": "https://schema.org/description",
"image": "op:image",
"certificationSystem": {
"@id": "https://originator-profile.org/ns/cip/v1#certificationSystem",
"@type": "@id"
},
"verifier": "https://schema.org/name",
"certifier": "https://schema.org/name"
}
},
"CertificationSystem": {
"@id": "https://originator-profile.org/ns/cip/v1#CertificationSystem",
"@context": {
"@protected": true,
"id": "@id",
"type": "@type",
"name": "https://schema.org/name",
"description": "https://schema.org/description",
"ref": {
"@id": "https://originator-profile.org/ns/cip/v1#ref",
"@type": "@id"
}
}
},
"ECJP": {
"@id": "https://originator-profile.org/ns/cip/v1#ECJP",
"@context": {
"@protected": true,
"id": "@id",
"type": "@type",
"addressCountry": "https://schema.org/addressCountry",
"name": "https://schema.org/name",
"corporateNumber": "https://schema.org/identifier",
"postalCode": "https://schema.org/postalCode",
"addressRegion": "https://schema.org/addressRegion",
"addressLocality": "https://schema.org/addressLocality",
"streetAddress": "https://schema.org/streetAddress",
"certificationSystem": {
"@id": "https://originator-profile.org/ns/cip/v1#certificationSystem",
"@type": "@id"
}
}
},
"Certificate": {
"@id": "https://originator-profile.org/ns/cip/v1#Certificate",
"@context": {
"@protected": true,
"certificationSystem": {
"@id": "https://originator-profile.org/ns/cip/v1#certificationSystem",
"@type": "@id"
}
}
},
"ExistenceCertificateInJapan": "https://originator-profile.org/ns/cip/v1#ExistenceCertificateInJapan",
"WebArticle": {
"@id": "https://originator-profile.org/ns/cip/v1#WebArticle",
"@context": {
"@protected": true,
"title": "https://schema.org/title",
"image": "op:image",
"source": "https://schema.org/url",
"description": "https://schema.org/description",
"author": "https://schema.org/author",
"editor": "https://schema.org/editor",
"datePublished": "https://schema.org/datePublished",
"dateModified": "https://schema.org/dateModified",
"category": "cip:category"
}
},
"OnlineAd": {
"@id": "https://originator-profile.org/ns/cip/v1#OnlineAd",
"@context": {
"@protected": true,
"id": "@id",
"type": "@type",
"title": "https://schema.org/title",
"image": "op:image",
"description": "https://schema.org/description",
"landingPageUrl": "https://schema.org/url"
}
},
"Integrity": {
"@id": "https://originator-profile.org/ns/cip/v1#integrity",
"@type": "https://www.w3.org/2018/credentials#sriString"
},
"HtmlTargetIntegrity": {
"@id": "op:HtmlTargetIntegrity",
"@context": {
"@protected": true,
"type": "@type",
"integrity": "cip:Integrity",
"cssSelector": "https://schema.org/cssSelector"
}
},
"VisibleTextTargetIntegrity": {
"@id": "op:VisibleTextTargetIntegrity",
"@context": {
"@protected": true,
"type": "@type",
"integrity": "cip:Integrity",
"cssSelector": "https://schema.org/cssSelector"
}
},
"TextTargetIntegrity": {
"@id": "op:TextTargetIntegrity",
"@context": {
"@protected": true,
"type": "@type",
"integrity": "cip:Integrity",
"cssSelector": "https://schema.org/cssSelector"
}
},
"ExternalResourceTargetIntegrity": {
"@id": "op:ExternalResourceTargetIntegrity",
"@context": {
"@protected": true,
"type": "@type",
"integrity": "cip:Integrity"
}
}
}
}