Created
February 1, 2023 10:02
-
-
Save bblfish/ab1b450c725674a4386cfc391b7e307b to your computer and use it in GitHub Desktop.
Fix for VerifiableCredentials example 1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@context": [ | |
"https://www.w3.org/2018/credentials/v1", | |
"https://www.w3.org/2018/credentials/examples/v1" | |
], | |
"id": "http://example.edu/credentials/1872", | |
"type": ["VerifiableCredential", "AlumniCredential"], | |
"issuer": "https://example.edu/issuers/565049", | |
"issuanceDate": "2010-01-01T19:23:24Z", | |
"credentialSubject": { | |
"id": "did:example:ebfeb1f712ebc6f1c276e12ec21", | |
"alumniOf": { | |
"id": "did:example:c276e12ec21ebfeb1f712ebc6f1", | |
"name": [{ | |
"@value": "Example University", | |
"@language": "en" | |
}, { | |
"@value": "Exemple d'Université", | |
"@language": "fr" | |
}] | |
} | |
}, | |
"proof": { | |
"type": "RsaSignature2018", | |
"created": "2017-06-18T21:19:10Z", | |
"proofPurpose": "assertionMethod", | |
"verificationMethod": "https://example.edu/issuers/565049#key-1", | |
"jws": "eyJhbGciOiJSUzI1NiIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..TCYt5XsITJX1CxPCT8yAV-TVkIEq_PbChOMqsLfRoPsnsgw5WEuts01mq-pQy7UJiN5mgRxD-WUcX16dUEMGlv50aqzpqh4Qktb3rk-BuQy72IFLOqV0G_zS245-kronKb78cPN25DGlcTwLtjPAYuNzVBAh4vGHSrQyHUdBBPM" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@prefix dc: <http://purl.org/dc/terms/> . | |
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | |
@prefix schema: <http://schema.org/> . | |
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | |
<http://example.edu/credentials/1872> a <https://example.org/examples#AlumniCredential>, | |
<https://www.w3.org/2018/credentials#VerifiableCredential>; | |
<https://w3id.org/security#proof> { | |
[ | |
a <https://w3id.org/security#RsaSignature2018>; | |
dc:created "2017-06-18T21:19:10Z"^^xsd:dateTime; | |
<sec:jws> "eyJhbGciOiJSUzI1NiIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..TCYt5XsITJX1CxPCT8yAV-TVkIEq_PbChOMqsLfRoPsnsgw5WEuts01mq-pQy7UJiN5mgRxD-WUcX16dUEMGlv50aqzpqh4Qktb3rk-BuQy72IFLOqV0G_zS245-kronKb78cPN25DGlcTwLtjPAYuNzVBAh4vGHSrQyHUdBBPM"; | |
<sec:proofPurpose> <https://w3id.org/security#assertionMethod>; | |
<sec:verificationMethod> <https://example.edu/issuers/565049#key-1> | |
] . | |
}; | |
<https://www.w3.org/2018/credentials#credentialSubject> <did:example:ebfeb1f712ebc6f1c276e12ec21>; | |
<https://www.w3.org/2018/credentials#issuanceDate> "2010-01-01T19:23:24Z"^^xsd:dateTime; | |
<https://www.w3.org/2018/credentials#issuer> <https://example.edu/issuers/565049> . | |
<did:example:c276e12ec21ebfeb1f712ebc6f1> schema:name "Example University"@en, | |
"Exemple d'Université"@fr . | |
<did:example:ebfeb1f712ebc6f1c276e12ec21> schema:alumniOf <did:example:c276e12ec21ebfeb1f712ebc6f1> . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<did:example:c276e12ec21ebfeb1f712ebc6f1> <http://schema.org/name> "Example University"@en . | |
<did:example:c276e12ec21ebfeb1f712ebc6f1> <http://schema.org/name> "Exemple d'Université"@fr . | |
<did:example:ebfeb1f712ebc6f1c276e12ec21> <http://schema.org/alumniOf> <did:example:c276e12ec21ebfeb1f712ebc6f1> . | |
<http://example.edu/credentials/1872> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://example.org/examples#AlumniCredential> . | |
<http://example.edu/credentials/1872> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.w3.org/2018/credentials#VerifiableCredential> . | |
<http://example.edu/credentials/1872> <https://w3id.org/security#proof> _:b0 . | |
<http://example.edu/credentials/1872> <https://www.w3.org/2018/credentials#credentialSubject> <did:example:ebfeb1f712ebc6f1c276e12ec21> . | |
<http://example.edu/credentials/1872> <https://www.w3.org/2018/credentials#issuanceDate> "2010-01-01T19:23:24Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> . | |
<http://example.edu/credentials/1872> <https://www.w3.org/2018/credentials#issuer> <https://example.edu/issuers/565049> . | |
_:b1 <http://purl.org/dc/terms/created> "2017-06-18T21:19:10Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> _:b0 . | |
_:b1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://w3id.org/security#RsaSignature2018> _:b0 . | |
_:b1 <sec:jws> "eyJhbGciOiJSUzI1NiIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..TCYt5XsITJX1CxPCT8yAV-TVkIEq_PbChOMqsLfRoPsnsgw5WEuts01mq-pQy7UJiN5mgRxD-WUcX16dUEMGlv50aqzpqh4Qktb3rk-BuQy72IFLOqV0G_zS245-kronKb78cPN25DGlcTwLtjPAYuNzVBAh4vGHSrQyHUdBBPM" _:b0 . | |
_:b1 <sec:proofPurpose> <https://w3id.org/security#assertionMethod> _:b0 . | |
_:b1 <sec:verificationMethod> <https://example.edu/issuers/565049#key-1> _:b0 . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fixed example 1 of the Verifiable Credentials data model spec by changing "value" to "@value" and "lang" to "@language"
https://www.w3.org/TR/vc-data-model/#example-a-simple-example-of-a-verifiable-credential
The literal example from the VC example is to be found here where the problem is also explained:
https://gist.github.com/bblfish/908145116b14486af9dd3460ce14b2c1