Skip to content

Commit 92ed9dd

Browse files
committed
Rename claim to credentialSubject, remove @graph from vocabulary.
1 parent 9972d3b commit 92ed9dd

File tree

5 files changed

+59
-62
lines changed

5 files changed

+59
-62
lines changed

vocab/context.jsonld

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,14 @@
2222
"Policy": "cred:Policy",
2323
"VerifiableCredential": "cred:VerifiableCredential",
2424
"VerifiablePresentation": "cred:VerifiablePresentation",
25-
"claim": {
26-
"@id": "cred:claim",
27-
"@container": "@graph",
28-
"@type": "@id"
29-
},
3025
"credentialStatus": {
3126
"@id": "cred:credentialStatus",
3227
"@type": "@id"
3328
},
29+
"credentialSubject": {
30+
"@id": "cred:credentialSubject",
31+
"@type": "@id"
32+
},
3433
"evidence": {
3534
"@id": "cred:evidence",
3635
"@type": "@id"

vocab/credentials.html

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
localBiblio: opencreds.localBiblio,
1010
specStatus: "base",
1111
shortName: "vc-vocab",
12-
publishDate: "2018-07-25",
12+
publishDate: "2018-11-14",
1313
thisVersion: "https://w3.org/2018/credentials",
1414
doJsonLd: true,
1515
//edDraftURI: "https://w3c.github.io/vc-vocab/",
@@ -86,7 +86,7 @@
8686
<!--These versions may also be retrieved from <code>FIXME</code> using an appropiate HTTP <em>Accept</em> header.-->
8787
</p>
8888
<dl>
89-
<dt>Published:</dt><dd><time property="dc:date">2018-07-25</time></dd>
89+
<dt>Published:</dt><dd><time property="dc:date">2018-11-14</time></dd>
9090
<dt>Imports:</dt>
9191
<dd><a href="http://purl.org/dc/terms/" property="owl:imports">http://purl.org/dc/terms/</a></dd>
9292
<dd><a href="https://w3.org/2018/security" property="owl:imports">https://w3.org/2018/security</a></dd>
@@ -147,21 +147,21 @@ <h2>Class Definitions</h2>
147147
<h2>Property Definitions</h2>
148148
<p>The following are property definitions in the <code>shex</code> namespace:</p>
149149
<table class="rdfs-definition">
150-
<tr><td class="bold">claim</td>
151-
<td resource="cred:claim" typeof="rdf:Property">
152-
<em property="rdfs:label">claim</em>
153-
<p property="rdfs:comment">A statement made about a `subject`.</p>
150+
<tr><td class="bold">credentialStatus</td>
151+
<td resource="cred:credentialStatus" typeof="rdf:Property">
152+
<em property="rdfs:label">credential status</em>
153+
<p property="rdfs:comment">The value of this property MUST be a status scheme that provides enough information to determine the current status of the credential (e.g. suspended, revoked, etc.). The status scheme will vary depending on a variety of factors, such as whether it is simple to implement or privacy-enhancing.</p>
154154
<span property="rdfs:isDefinedBy" resource="shex:"></span>
155155
<dl class="terms">
156156
<dt>rdfs:domain</dt>
157157
<dd property="rdfs:domain" resource="cred:VerifiableCredential">cred:VerifiableCredential</dd>
158158
</dl>
159159
</td>
160160
</tr>
161-
<tr><td class="bold">credentialStatus</td>
162-
<td resource="cred:credentialStatus" typeof="rdf:Property">
163-
<em property="rdfs:label">credential status</em>
164-
<p property="rdfs:comment">The value of this property MUST be a status scheme that provides enough information to determine the current status of the credential (e.g. suspended, revoked, etc.). The status scheme will vary depending on a variety of factors, such as whether it is simple to implement or privacy-enhancing.</p>
161+
<tr><td class="bold">credentialSubject</td>
162+
<td resource="cred:credentialSubject" typeof="rdf:Property">
163+
<em property="rdfs:label">credentialSubject</em>
164+
<p property="rdfs:comment">The primary `subject` of a credential.</p>
165165
<span property="rdfs:isDefinedBy" resource="shex:"></span>
166166
<dl class="terms">
167167
<dt>rdfs:domain</dt>
@@ -273,12 +273,6 @@ <h2>Term Definitions</h2>
273273
<dd>
274274
cred:VerifiablePresentation
275275
</dd>
276-
<dt>claim</dt>
277-
<dd>
278-
cred:claim
279-
with string values interpreted as @id
280-
with array values interpreted as @graph
281-
</dd>
282276
<dt>created</dt>
283277
<dd>
284278
dc:created
@@ -298,6 +292,11 @@ <h2>Term Definitions</h2>
298292
cred:credentialStatus
299293
with string values interpreted as @id
300294
</dd>
295+
<dt>credentialSubject</dt>
296+
<dd>
297+
cred:credentialSubject
298+
with string values interpreted as @id
299+
</dd>
301300
<dt>dc</dt>
302301
<dd>
303302
http://purl.org/dc/terms/

vocab/credentials.jsonld

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,14 @@
2222
"Policy": "cred:Policy",
2323
"VerifiableCredential": "cred:VerifiableCredential",
2424
"VerifiablePresentation": "cred:VerifiablePresentation",
25-
"claim": {
26-
"@id": "cred:claim",
27-
"@container": "@graph",
28-
"@type": "@id"
29-
},
3025
"credentialStatus": {
3126
"@id": "cred:credentialStatus",
3227
"@type": "@id"
3328
},
29+
"credentialSubject": {
30+
"@id": "cred:credentialSubject",
31+
"@type": "@id"
32+
},
3433
"evidence": {
3534
"@id": "cred:evidence",
3635
"@type": "@id"
@@ -148,7 +147,7 @@
148147
"dc:description": {
149148
"en": "This document describes the RDFS vocabulary description used for Verifiable Claims [[verifiable-claims-data-model]] along with the default JSON-LD Context."
150149
},
151-
"dc:date": "2018-07-25",
150+
"dc:date": "2018-11-14",
152151
"owl:imports": [
153152
"http://purl.org/dc/terms/",
154153
"https://w3.org/2018/security"
@@ -190,24 +189,24 @@
190189
],
191190
"rdfs_properties": [
192191
{
193-
"@id": "cred:claim",
192+
"@id": "cred:credentialStatus",
194193
"@type": "rdf:Property",
195194
"rdfs:label": {
196-
"en": "claim"
195+
"en": "credential status"
197196
},
198197
"rdfs:comment": {
199-
"en": "A statement made about a `subject`."
198+
"en": "The value of this property MUST be a status scheme that provides enough information to determine the current status of the credential (e.g. suspended, revoked, etc.). The status scheme will vary depending on a variety of factors, such as whether it is simple to implement or privacy-enhancing."
200199
},
201200
"rdfs:domain": "cred:VerifiableCredential"
202201
},
203202
{
204-
"@id": "cred:credentialStatus",
203+
"@id": "cred:credentialSubject",
205204
"@type": "rdf:Property",
206205
"rdfs:label": {
207-
"en": "credential status"
206+
"en": "credentialSubject"
208207
},
209208
"rdfs:comment": {
210-
"en": "The value of this property MUST be a status scheme that provides enough information to determine the current status of the credential (e.g. suspended, revoked, etc.). The status scheme will vary depending on a variety of factors, such as whether it is simple to implement or privacy-enhancing."
209+
"en": "The primary `subject` of a credential."
211210
},
212211
"rdfs:domain": "cred:VerifiableCredential"
213212
},

vocab/credentials.ttl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
cred: a owl:Ontology;
1111
dc:title "Verifiable Claims Vocabulary"@en;
1212
dc:description """This document describes the RDFS vocabulary description used for Verifiable Claims [[verifiable-claims-data-model]] along with the default JSON-LD Context."""@en;
13-
dc:date "2018-07-25"^^xsd:date;
13+
dc:date "2018-11-14"^^xsd:date;
1414
dc:imports <http://purl.org/dc/terms/>, <https://w3.org/2018/security>;
1515
rdfs:seeAlso <https://www.w3.org/TR/verifiable-claims-data-model/>;
1616

@@ -29,16 +29,16 @@ cred:VerifiablePresentation a rdfs:Class;
2929
rdfs:isDefinedBy cred: .
3030

3131
# Property definitions
32-
cred:claim a rdf:Property;
33-
rdfs:label "claim"@en;
34-
rdfs:comment """A statement made about a `subject`."""@en;
35-
rdfs:domain cred:VerifiableCredential;
36-
rdfs:isDefinedBy cred: .
3732
cred:credentialStatus a rdf:Property;
3833
rdfs:label "credential status"@en;
3934
rdfs:comment """The value of this property MUST be a status scheme that provides enough information to determine the current status of the credential (e.g. suspended, revoked, etc.). The status scheme will vary depending on a variety of factors, such as whether it is simple to implement or privacy-enhancing."""@en;
4035
rdfs:domain cred:VerifiableCredential;
4136
rdfs:isDefinedBy cred: .
37+
cred:credentialSubject a rdf:Property;
38+
rdfs:label "credentialSubject"@en;
39+
rdfs:comment """The primary `subject` of a credential."""@en;
40+
rdfs:domain cred:VerifiableCredential;
41+
rdfs:isDefinedBy cred: .
4242
cred:evidence a rdf:Property;
4343
rdfs:label "evidence"@en;
4444
rdfs:comment """The value of this property MUST be one or more evidence schemes that provides enough information to a verifier to determine whether or not the evidence gathered meets their requirements."""@en;

vocab/vocab.csv

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
id,type,label,subClassOf,domain,range,@type,@container,comment
2-
,@context,,https://w3.org/2018/security/v1,,,,,
3-
cred,prefix,,https://w3.org/2018/credentials#,,,,,
4-
dc,prefix,,http://purl.org/dc/terms/,,,,,
5-
schema,prefix,,http://schema.org/,,,,,
6-
xsd,prefix,,http://www.w3.org/2001/XMLSchema#,,,,,
7-
,owl:imports,,http://purl.org/dc/terms/,,,,,
8-
,owl:imports,,https://w3.org/2018/security,,,,,
9-
,rdfs:seeAlso,,https://www.w3.org/TR/verifiable-claims-data-model/,,,,,
10-
claim,rdf:Property,claim,,VerifiableCredential,,@id,@graph,A statement made about a `subject`.
11-
issuer,rdf:Property,issuer,,VerifiableCredential,,@id,,The value of this property MUST be a URI. It is RECOMMENDED that dereferencing the URI results in a document containing machine-readable information about the issuer that may be used to verify the information expressed in the `credential`.
12-
issuanceDate,rdf:Property,issuance date,,VerifiableCredential,xsd:dateTime,,,The value of this property MUST be a string value of an [[ISO8601]] combined date and time string and represents the date and time the `credential` was issued. Note that this date represents the earliest date when the information associated with the _claim property became valid.
13-
expirationDate,rdf:Property,expiration date,,VerifiableCredential,xsd:dateTime,,,The value of this property MUST be a string value of an [[ISO8601]] combined date and time string and represents the date and time the `credential` will cease to be valid
14-
evidence,rdf:Property,evidence,,VerifiableCredential,DocumentationVerifier,,,The value of this property MUST be one or more evidence schemes that provides enough information to a verifier to determine whether or not the evidence gathered meets their requirements.
15-
credentialStatus,rdf:Property,credential status,,VerifiableCredential,,@id,,"The value of this property MUST be a status scheme that provides enough information to determine the current status of the credential (e.g. suspended, revoked, etc.). The status scheme will vary depending on a variety of factors, such as whether it is simple to implement or privacy-enhancing."
16-
verifiableCredential,rdf:Property,verifiable credential,,VerifiablePresentation,Credential,@id,@graph,The contents of the `verifiableCredential` property are `verifiable credentials` as described by this specification.
17-
termsOfUse,rdf:Property,terms of use,,VerifiableCredential,Policy,@id,,The value of this property MUST be one or more terms of use descriptions that provide enough information to a verifier to determine how they may utilize the given information.
18-
revocation,rdf:Property,revocation,,VerifiableCredential,,@id,,FIXME
19-
Policy,rdfs:Class,Policy,,,,,,Issue: Generic policy with possible instance 0drlPolicy2017.
20-
VerifiableCredential,rdfs:Class,Verifiable Credential,,,,,,A `verifiable credential` is a credential that is tamper-resistant and whose authorship can be cryptographically verified.
21-
VerifiablePresentation,rdfs:Class,Verifiable Presentation,,,,,,A `verifiable presentation` is a presentation that is made tamper-resistant by the holder.
22-
created,term,,dc:created,,,xsd:dateTime,,Date of creation of the resource.
23-
creator,term,,dc:creator,,,@id,,An entity primarily responsible for making the resource.
1+
id,type,label,subClassOf,domain,range,@type,@container,comment
2+
,@context,,https://w3.org/2018/security/v1,,,,,
3+
cred,prefix,,https://w3.org/2018/credentials#,,,,,
4+
dc,prefix,,http://purl.org/dc/terms/,,,,,
5+
schema,prefix,,http://schema.org/,,,,,
6+
xsd,prefix,,http://www.w3.org/2001/XMLSchema#,,,,,
7+
,owl:imports,,http://purl.org/dc/terms/,,,,,
8+
,owl:imports,,https://w3.org/2018/security,,,,,
9+
,rdfs:seeAlso,,https://www.w3.org/TR/verifiable-claims-data-model/,,,,,
10+
credentialSubject,rdf:Property,credentialSubject,,VerifiableCredential,,@id,,The primary `subject` of a credential.
11+
issuer,rdf:Property,issuer,,VerifiableCredential,,@id,,The value of this property MUST be a URI. It is RECOMMENDED that dereferencing the URI results in a document containing machine-readable information about the issuer that may be used to verify the information expressed in the `credential`.
12+
issuanceDate,rdf:Property,issuance date,,VerifiableCredential,xsd:dateTime,,,The value of this property MUST be a string value of an [[ISO8601]] combined date and time string and represents the date and time the `credential` was issued. Note that this date represents the earliest date when the information associated with the _claim property became valid.
13+
expirationDate,rdf:Property,expiration date,,VerifiableCredential,xsd:dateTime,,,The value of this property MUST be a string value of an [[ISO8601]] combined date and time string and represents the date and time the `credential` will cease to be valid
14+
evidence,rdf:Property,evidence,,VerifiableCredential,DocumentationVerifier,,,The value of this property MUST be one or more evidence schemes that provides enough information to a verifier to determine whether or not the evidence gathered meets their requirements.
15+
credentialStatus,rdf:Property,credential status,,VerifiableCredential,,@id,,"The value of this property MUST be a status scheme that provides enough information to determine the current status of the credential (e.g. suspended, revoked, etc.). The status scheme will vary depending on a variety of factors, such as whether it is simple to implement or privacy-enhancing."
16+
verifiableCredential,rdf:Property,verifiable credential,,VerifiablePresentation,Credential,@id,@graph,The contents of the `verifiableCredential` property are `verifiable credentials` as described by this specification.
17+
termsOfUse,rdf:Property,terms of use,,VerifiableCredential,Policy,@id,,The value of this property MUST be one or more terms of use descriptions that provide enough information to a verifier to determine how they may utilize the given information.
18+
revocation,rdf:Property,revocation,,VerifiableCredential,,@id,,FIXME
19+
Policy,rdfs:Class,Policy,,,,,,Issue: Generic policy with possible instance 0drlPolicy2017.
20+
VerifiableCredential,rdfs:Class,Verifiable Credential,,,,,,A `verifiable credential` is a credential that is tamper-resistant and whose authorship can be cryptographically verified.
21+
VerifiablePresentation,rdfs:Class,Verifiable Presentation,,,,,,A `verifiable presentation` is a presentation that is made tamper-resistant by the holder.
22+
created,term,,dc:created,,,xsd:dateTime,,Date of creation of the resource.
23+
creator,term,,dc:creator,,,@id,,An entity primarily responsible for making the resource.

0 commit comments

Comments
 (0)