Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add vc-json-schema to vocab and context #1178

Merged
merged 3 commits into from
Jul 11, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions contexts/credentials/v2
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,28 @@
}
},

"JsonSchema2023": {
"@id":
"https://www.w3.org/ns/credentials#JsonSchema2023",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@iherman vocab URL or the 2018 one?

decentralgabe marked this conversation as resolved.
Show resolved Hide resolved
"@context": {
"@protected": true,

"id": "@id",
"type": "@type"
}
},

"CredentialSchema2023": {
"@id":
"https://www.w3.org/ns/credentials#CredentialSchema2023",
decentralgabe marked this conversation as resolved.
Show resolved Hide resolved
"@context": {
"@protected": true,

"id": "@id",
"type": "@type"
}
},

"StatusList2021Credential": {
"@id":
"https://w3id.org/vc/status-list#StatusList2021Credential",
Expand Down
2 changes: 2 additions & 0 deletions vocab/credentials/credentials.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
"odrl": "http://www.w3.org/ns/odrl/2/",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"JsonSchemaValidator2018": "cred:JsonSchemaValidator2018",
"JsonSchema2023": "cred:JsonSchema2023",
"CredentialSchema2023": "cred:CredentialSchema2023",
decentralgabe marked this conversation as resolved.
Show resolved Hide resolved
"ManualRefreshService2018": "cred:ManualRefreshService2018",
"RefreshService": "cred:RefreshService",
"VerifiableCredential": "cred:VerifiableCredential",
Expand Down
8 changes: 8 additions & 0 deletions vocab/credentials/credentials.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ cred:JsonSchemaValidator2018 a rdfs:Class;
rdfs:label ""@en;
rdfs:comment """A type of validator that can be used to syntactically validate JSON documents using the JSON Schema language."""@en;
rdfs:isDefinedBy cred: .
cred:JsonSchema2023 a rdfs:Class;
rdfs:label ""@en;
rdfs:comment """A type of validator that can be used to syntactically validate JSON documents using the JSON Schema language."""@en;
rdfs:isDefinedBy cred: .
cred:CredentialSchema2023 a rdfs:Class;
rdfs:label ""@en;
rdfs:comment """A type of validator that can be used to syntactically validate JSON documents using the JSON Schemas packaged as Verifiable Credentials language."""@en;
decentralgabe marked this conversation as resolved.
Show resolved Hide resolved
rdfs:isDefinedBy cred: .
cred:ManualRefreshService2018 a rdfs:Class;
rdfs:label ""@en;
rdfs:comment """A type of refresh service that must be interacted with in a manual fashion."""@en;
Expand Down
10 changes: 10 additions & 0 deletions vocab/credentials/v2/vocabulary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ class:
deprecated: true
comment: A type of validator that can be used to syntactically validate JSON documents using the JSON Schema language.

- id: JsonSchema2023
label: JSON schema validator 2023
upper_value: cred:CredentialSchema
comment: A type of validator that can be used to syntactically validate JSON documents using the JSON Schema language.

- id: CredentialSchema2023
decentralgabe marked this conversation as resolved.
Show resolved Hide resolved
label: Credential schema validator 2023
upper_value: cred:CredentialSchema
decentralgabe marked this conversation as resolved.
Show resolved Hide resolved
comment: A type of validator that can be used to syntactically validate JSON documents packaged as Verifiable Credentials using the JSON Schema language.
decentralgabe marked this conversation as resolved.
Show resolved Hide resolved

- id: ManualRefreshService2018
label: Manual refresh service 2018
upper_value: cred:RefreshService
Expand Down
2 changes: 2 additions & 0 deletions vocab/credentials/vocab.csv
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ odrl,prefix,,http://www.w3.org/ns/odrl/2/,,,,,
xsd,prefix,,http://www.w3.org/2001/XMLSchema#,,,,,
,rdfs:seeAlso,,https://www.w3.org/TR/vc-data-model/,,,,,
JsonSchemaValidator2018,rdfs:Class,,,,,,,A type of validator that can be used to syntactically validate JSON documents using the JSON Schema language.
JsonSchema2023,rdfs:Class,,,,,,,A type of validator that can be used to syntactically validate JSON documents using the JSON Schema language.
CredentialSchema2023,rdfs:Class,,,,,,,A type of validator that can be used to syntactically validate JSON documents packaged as Verifiable Credentials using the JSON Schema.
decentralgabe marked this conversation as resolved.
Show resolved Hide resolved
ManualRefreshService2018,rdfs:Class,,cred:RefreshService,,,,,A type of refresh service that must be interacted with in a manual fashion.
RefreshService,rdfs:Class,Refresh Service,,,,,,A refresh service is a mechanism that can be utilized by software agents to retrieve an updated copy of a `verifiable credential`.
VerifiableCredential,rdfs:Class,Verifiable Credential,,,,,,"A `credential` is a set of one or more claims made by an issuer. A `verifiable credential` is a tamper-evident credential that has authorship that can be cryptographically verified. Verifiable credentials can be used to build `verifiable presentations`, which can also be cryptographically verified. The claims in a credential can be about different subjects."
Expand Down