-
Notifications
You must be signed in to change notification settings - Fork 129
Update the formal vocabulary files #920
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
Changes from 1 commit
d22a11c
e33814f
c913998
5cd2253
2ff5fd2
03ce916
e816807
60dc692
4d81199
815ba1a
3411b4c
79b9f88
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # Updating vocabulary | ||
|
|
||
| Vocabulary definitions are managed in vocab.csv. Add or change entries within this file. Regenerate `credentials.ttl`, `credentials.jsonld`, and `credentials.html` by running `mk_vocab.rb`. | ||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,351 @@ | ||
| { | ||
| "@context": [ | ||
| { | ||
| "@version": 1.1 | ||
iherman marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "https://w3id.org/security/v2", | ||
|
||
| { | ||
| "id": "@id", | ||
| "type": "@type", | ||
| "cred": "https://w3.org/2018/credentials#", | ||
| "odrl": "http://www.w3.org/ns/odrl/2/", | ||
| "xsd": "http://www.w3.org/2001/XMLSchema#", | ||
| "JsonSchemaValidator2018": "cred:JsonSchemaValidator2018", | ||
| "ManualRefreshService2018": "cred:ManualRefreshService2018", | ||
| "RefreshService": "cred:RefreshService", | ||
| "VerifiableCredential": "cred:VerifiableCredential", | ||
| "VerifiableCredentialGraph": "cred:VerifiableCredentialGraph", | ||
| "VerifiablePresentation": "cred:VerifiablePresentation", | ||
| "credentialSchema": { | ||
| "@id": "cred:credentialSchema", | ||
| "@type": "@id" | ||
| }, | ||
| "credentialStatus": { | ||
| "@id": "cred:credentialStatus", | ||
| "@type": "@id" | ||
| }, | ||
| "credentialSubject": { | ||
| "@id": "cred:credentialSubject", | ||
| "@type": "@id" | ||
| }, | ||
| "evidence": { | ||
| "@id": "cred:evidence", | ||
| "@type": "@id" | ||
| }, | ||
| "expirationDate": { | ||
| "@id": "cred:expirationDate", | ||
| "@type": "xsd:dateTime" | ||
| }, | ||
| "issuanceDate": { | ||
| "@id": "cred:issuanceDate", | ||
| "@type": "xsd:dateTime" | ||
| }, | ||
| "issuer": { | ||
| "@id": "cred:issuer", | ||
| "@type": "@id" | ||
| }, | ||
| "refreshService": { | ||
| "@id": "cred:refreshService", | ||
| "@type": "@id" | ||
| }, | ||
| "serviceEndpoint": { | ||
| "@id": "cred:serviceEndpoint", | ||
| "@type": "@id" | ||
| }, | ||
| "termsOfUse": { | ||
| "@id": "cred:termsOfUse", | ||
| "@type": "@id" | ||
| }, | ||
| "verifiableCredential": { | ||
| "@id": "cred:verifiableCredential", | ||
| "@type": "@id", | ||
| "@container": "@graph" | ||
| } | ||
| } | ||
| ], | ||
| "@graph": { | ||
| "@context": { | ||
| "id": "@id", | ||
| "type": "@type", | ||
| "dc": "http://purl.org/dc/terms/", | ||
| "owl": "http://www.w3.org/2002/07/owl#", | ||
| "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#", | ||
| "rdfs": "http://www.w3.org/2000/01/rdf-schema#", | ||
| "dc:title": { | ||
| "@container": "@language" | ||
| }, | ||
| "dc:description": { | ||
| "@container": "@language" | ||
| }, | ||
| "dc:date": { | ||
| "@type": "xsd:date" | ||
| }, | ||
| "rdfs:comment": { | ||
| "@container": "@language" | ||
| }, | ||
| "rdfs:domain": { | ||
| "@type": "@id" | ||
| }, | ||
| "rdfs:label": { | ||
| "@container": "@language" | ||
| }, | ||
| "rdfs:range": { | ||
| "@type": "@id" | ||
| }, | ||
| "rdfs:seeAlso": { | ||
| "@type": "@id" | ||
| }, | ||
| "rdfs:subClassOf": { | ||
| "@type": "@id" | ||
| }, | ||
| "rdfs:subPropertyOf": { | ||
| "@type": "@id" | ||
| }, | ||
| "owl:equivalentClass": { | ||
| "@type": "@vocab" | ||
| }, | ||
| "owl:equivalentProperty": { | ||
| "@type": "@vocab" | ||
| }, | ||
| "owl:oneOf": { | ||
| "@container": "@list", | ||
| "@type": "@vocab" | ||
| }, | ||
| "owl:imports": { | ||
| "@type": "@id" | ||
| }, | ||
| "owl:versionInfo": { | ||
| "@type": "@id" | ||
| }, | ||
| "owl:inverseOf": { | ||
| "@type": "@vocab" | ||
| }, | ||
| "owl:unionOf": { | ||
| "@type": "@vocab", | ||
| "@container": "@list" | ||
| }, | ||
| "rdfs_classes": { | ||
| "@reverse": "rdfs:isDefinedBy", | ||
| "@type": "@id" | ||
| }, | ||
| "rdfs_properties": { | ||
| "@reverse": "rdfs:isDefinedBy", | ||
| "@type": "@id" | ||
| }, | ||
| "rdfs_datatypes": { | ||
| "@reverse": "rdfs:isDefinedBy", | ||
| "@type": "@id" | ||
| }, | ||
| "rdfs_instances": { | ||
| "@reverse": "rdfs:isDefinedBy", | ||
| "@type": "@id" | ||
| } | ||
| }, | ||
| "@id": "https://w3.org/2018/credentials#", | ||
| "@type": "owl:Ontology", | ||
| "dc:title": { | ||
| "en": "Verifiable Credentials Vocabulary v2.0" | ||
| }, | ||
| "dc:description": { | ||
| "en": "This document describes the RDFS vocabulary description used for Verifiable Credentials [[VC-DATA-MODEL]]." | ||
| }, | ||
| "dc:date": "2022-08-25", | ||
| "rdfs:seeAlso": [ | ||
| "https://www.w3.org/TR/vc-data-model-2.0/" | ||
| ], | ||
| "rdfs_classes": [ | ||
| { | ||
| "@id": "cred:JsonSchemaValidator2018", | ||
| "@type": "rdfs:Class", | ||
| "rdfs:label": { | ||
| "en": " Json Schema Validator 2018" | ||
| }, | ||
| "rdfs:comment": { | ||
| "en": "A type of validator that can be used to syntactically validate JSON documents using the JSON Schema language." | ||
| } | ||
| }, | ||
| { | ||
| "@id": "cred:ManualRefreshService2018", | ||
| "@type": "rdfs:Class", | ||
| "rdfs:label": { | ||
| "en": "Manual Refresh Service 2018" | ||
| }, | ||
| "rdfs:comment": { | ||
| "en": "A type of refresh service that must be interacted with in a manual fashion." | ||
| }, | ||
| "rdfs:subClassOf": "cred:RefreshService" | ||
| }, | ||
| { | ||
| "@id": "cred:RefreshService", | ||
| "@type": "rdfs:Class", | ||
| "rdfs:label": { | ||
| "en": "Refresh Service" | ||
| }, | ||
| "rdfs:comment": { | ||
| "en": "A refresh service is a mechanism that can be utilized by software agents to retrieve an updated copy of a `verifiable credential`." | ||
| } | ||
| }, | ||
| { | ||
| "@id": "cred:VerifiableCredential", | ||
| "@type": "rdfs:Class", | ||
| "rdfs:label": { | ||
| "en": "Verifiable Credential" | ||
| }, | ||
| "rdfs:comment": { | ||
| "en": "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." | ||
| } | ||
| }, | ||
| { | ||
| "@id": "cred:VerifiableCredentialGraph", | ||
| "@type": "rdfs:Class", | ||
| "rdfs:label": { | ||
| "en": "Verifiable Credential Graph" | ||
| }, | ||
| "rdfs:comment": { | ||
| "en": "Instances of this class identify RDF Graphs, where each of these graphs must include exactly one Resource of type `VerifiableCredential`" | ||
| } | ||
| }, | ||
| { | ||
| "@id": "cred:VerifiablePresentation", | ||
| "@type": "rdfs:Class", | ||
| "rdfs:label": { | ||
| "en": "Verifiable Presentation" | ||
| }, | ||
| "rdfs:comment": { | ||
| "en": "A `presentation` is data derived from one or more `credentials`, issued by one or more `issuers`, that is shared with a specific `verifier`. A `verifiable presentation` is a tamper-evident `presentation` encoded in such a way that authorship of the data can be trusted after a process of cryptographic verification. Certain types of verifiable presentations might contain data that is synthesized from, but do not contain, the original verifiable credentials (for example, zero-knowledge proofs)." | ||
| } | ||
| } | ||
| ], | ||
| "rdfs_properties": [ | ||
| { | ||
| "@id": "cred:credentialSchema", | ||
| "@type": "rdf:Property", | ||
| "rdfs:label": { | ||
| "en": "Credential Schema" | ||
| }, | ||
| "rdfs:comment": { | ||
| "en": "The value of the `credentialSchema` property MUST be one or more data schemas that provide verifiers with enough information to determine if the provided data conforms to the provided schema." | ||
| }, | ||
| "rdfs:domain": "cred:VerifiableCredential", | ||
| "rdfs:range": "cred:CredentialSchema" | ||
| }, | ||
| { | ||
| "@id": "cred:credentialStatus", | ||
| "@type": "rdf:Property", | ||
| "rdfs:label": { | ||
| "en": "Credential Status" | ||
| }, | ||
| "rdfs:comment": { | ||
| "en": "The value of the `credentialStatus` property MUST include the `id` property, which MUST be a URL, and the `type` property, which expresses the credential status type (also referred to as the credential status scheme), which MUST provide enough information to determine the current status of the credential (for example, suspended or revoked)." | ||
| }, | ||
| "rdfs:domain": "cred:VerifiableCredential", | ||
| "rdfs:range": "cred:CredentialStatus" | ||
| }, | ||
| { | ||
| "@id": "cred:credentialSubject", | ||
| "@type": "rdf:Property", | ||
| "rdfs:label": { | ||
| "en": "Credential Subject" | ||
| }, | ||
| "rdfs:comment": { | ||
| "en": "An entity about which claims are made." | ||
| }, | ||
| "rdfs:domain": "cred:VerifiableCredential" | ||
| }, | ||
| { | ||
| "@id": "cred:evidence", | ||
| "@type": "rdf:Property", | ||
| "rdfs:label": { | ||
| "en": "evidence" | ||
| }, | ||
| "rdfs:comment": { | ||
| "en": "The value of the `evidence` property MUST be one or more evidence schemes providing enough information to a verifier to determine whether the evidence gathered meets their requirements for issuing a credential. The precise content of each evidence scheme is determined by the specific evidence type definition." | ||
| }, | ||
| "rdfs:domain": "cred:VerifiableCredential", | ||
| "rdfs:range": "cred:CredentialEvidence" | ||
| }, | ||
| { | ||
| "@id": "cred:expirationDate", | ||
| "@type": "rdf:Property", | ||
| "rdfs:label": { | ||
| "en": "expiration date" | ||
| }, | ||
| "rdfs:comment": { | ||
| "en": "The value of the `expirationDate` property MUST be a string value of an ISO8601 combined date and time string representing the date and time the credential ceases to be valid." | ||
| }, | ||
| "rdfs:domain": "cred:VerifiableCredential", | ||
| "rdfs:range": "xsd:dateTime" | ||
| }, | ||
| { | ||
| "@id": "cred:issuanceDate", | ||
| "@type": "rdf:Property", | ||
| "rdfs:label": { | ||
| "en": "issuance date" | ||
| }, | ||
| "rdfs:comment": { | ||
| "en": "The value of the `issuanceDate` property MUST be a string value of an ISO8601 combined date and time string representing the date and time the credential was issued. Note that this date represents the earliest date when the information associated with the `credentialSubject` property became valid." | ||
| }, | ||
| "rdfs:domain": "cred:VerifiableCredential", | ||
| "rdfs:range": "xsd:dateTime" | ||
| }, | ||
| { | ||
| "@id": "cred:issuer", | ||
| "@type": "rdf:Property", | ||
| "rdfs:label": { | ||
| "en": "issuer" | ||
| }, | ||
| "rdfs:comment": { | ||
| "en": "The value of the `issuer` property MUST be a URI. It is RECOMMENDED that dereferencing the URI results in a document containing machine-readable information about the issuer that can be used to verify the information expressed in the credential." | ||
| }, | ||
| "rdfs:domain": "cred:VerifiableCredential" | ||
| }, | ||
| { | ||
| "@id": "cred:refreshService", | ||
| "@type": "rdf:Property", | ||
| "rdfs:label": { | ||
| "en": "refresh service" | ||
| }, | ||
| "rdfs:comment": { | ||
| "en": "The value of the `refreshService` property MUST be one or more refresh services that provides enough information to the holder's software such that the holder can refresh the credential." | ||
| }, | ||
| "rdfs:domain": "cred:VerifiableCredential", | ||
| "rdfs:range": "cred:RefreshService" | ||
| }, | ||
| { | ||
| "@id": "cred:serviceEndpoint", | ||
| "@type": "rdf:Property", | ||
| "rdfs:label": { | ||
| "en": "service endpoint" | ||
| }, | ||
| "rdfs:comment": { | ||
| "en": "The value of the `serviceEndpoint` property MUST be a URL to the service endpoint associated with the subject." | ||
| }, | ||
| "rdfs:domain": "cred:RefreshService" | ||
| }, | ||
| { | ||
| "@id": "cred:termsOfUse", | ||
| "@type": "rdf:Property", | ||
| "rdfs:label": { | ||
| "en": "terms of use" | ||
| }, | ||
| "rdfs:comment": { | ||
| "en": "If specified, the value of the `termsOfUse` property MUST specify one or more terms of use policies under which the creator issued the credential or presentation. If the recipient (a holder or verifier) is not willing to adhere to the specified terms of use, then they do so on their own responsibility and might incur legal liability if they violate the stated Terms of Use. Each `termsOfUse` MUST specify its type, for example, `IssuerPolicy`, and optionally, its instance `id`. The precise contents of each term of use is determined by the specific `TermsOfUse` type definition." | ||
| }, | ||
| "rdfs:domain": "cred:VerifiableCredential", | ||
| "rdfs:range": "odrl:Policy" | ||
| }, | ||
| { | ||
| "@id": "cred:verifiableCredential", | ||
| "@type": "rdf:Property", | ||
| "rdfs:label": { | ||
| "en": "verifiable credential" | ||
| }, | ||
| "rdfs:comment": { | ||
| "en": "The value of the `verifiableCredential` property MUST identify a `VerifiableCredentialGraph` (informally, it indirectly identifies a `VerifiableCredential` contained in a separate graph)." | ||
| }, | ||
| "rdfs:domain": "cred:VerifiablePresentation", | ||
| "rdfs:range": "cred:VerifiableCredentialGraph" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.