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

Exemplify language tagging #469

Merged
merged 5 commits into from
Mar 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
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
5 changes: 3 additions & 2 deletions contexts/credentials/examples/v1
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
},"https://www.w3.org/ns/odrl.jsonld", {
"ex": "https://example.org/examples#",
"schema": "http://schema.org/",
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",

"3rdPartyCorrelation": "ex:3rdPartyCorrelation",
"AllVerifiers": "ex:AllVerifiers",
Expand All @@ -19,10 +20,10 @@
"UniversityDegreeCredential": "ex:UniversityDegreeCredential",
"ZkpExampleSchema2018": "ex:ZkpExampleSchema2018",

"alumniOf": "schema:alumniOf",
"alumniOf": {"schema:alumniOf", "@type": rdf:HTML},
"child": {"@id": "ex:child", "@type": "@id"},
"degree": "ex:degree",
"name": "schema:name",
"name": {"schema:name", "@type": rdf:HTML},
"parent": {"@id": "ex:parent", "@type": "@id"},
"referenceId": "ex:referenceId"
}]
Expand Down
54 changes: 30 additions & 24 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ <h2>Concrete Lifecycle Example</h2>
<span class='comment'>// identifier for the subject of the credential</span>
"id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
<span class='comment'>// assertion about the subject of the credential</span>
"alumniOf": "Example University"
"alumniOf": "&lt;span lang='en'>Example University&lt;/span>"
},
<span class='comment'>// digital proof that makes the credential tamper-evident</span>
"proof": {
Expand Down Expand Up @@ -826,7 +826,7 @@ <h2>Concrete Lifecycle Example</h2>
"issuanceDate": "2010-01-01T19:73:24Z",
"credentialSubject": {
"id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
"alumniOf": "Example University"
"alumniOf": "&lt;span lang='en'>Example University&lt;/span>"
},
"proof": {
"type": "RsaSignature2018",
Expand Down Expand Up @@ -905,7 +905,7 @@ <h3>Contexts</h3>
"type": ["VerifiableCredential", "AlumniCredential"],
"credentialSubject": {
"id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
"alumniOf": "Example University"
"alumniOf": "&lt;span lang='en'>Example University&lt;/span>"
},
"proof": { ... }
}
Expand Down Expand Up @@ -983,7 +983,7 @@ <h3>Identifiers</h3>
<span class="highlight">"id": "did:example:ebfeb1f712ebc6f1c276e12ec21"</span>,
"degree": {
"type": "BachelorDegree",
"name": "Bachelor of Science in Mechanical Engineering"
"name": "&lt;span lang='fr-CA'>Baccalauréat en musiques numériques&lt;/span>"
}
},
"proof": { ... }
Expand Down Expand Up @@ -1047,7 +1047,7 @@ <h3>Types</h3>
"id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
"degree": {
"type": "BachelorDegree",
"name": "Bachelor of Science in Mechanical Engineering"
"name": "&lt;span lang='fr-CA'>Baccalauréat en musiques numériques&lt;/span>"
}
},
"proof": { ... }
Expand Down Expand Up @@ -1229,7 +1229,7 @@ <h3>Credential Subject</h3>
"id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
"degree": {
"type": "BachelorDegree",
"name": "Bachelor of Science in Mechanical Engineering"
"name": "&lt;span lang='fr-CA'>Baccalauréat en musiques numériques&lt;/span>"
}
},
"proof": { ... }
Expand Down Expand Up @@ -1273,7 +1273,7 @@ <h3>Issuer</h3>
"id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
"degree": {
"type": "BachelorDegree",
"name": "Bachelor of Science in Mechanical Engineering"
"name": "&lt;span lang='fr-CA'>Baccalauréat en musiques numériques&lt;/span>"
}
},
"proof": { ... }
Expand Down Expand Up @@ -1315,7 +1315,7 @@ <h3>Issuance Date</h3>
"id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
"degree": {
"type": "BachelorDegree",
"name": "Bachelor of Science in Mechanical Engineering"
"name": "&lt;span lang='fr-CA'>Baccalauréat en musiques numériques&lt;/span>"
}
},
"proof": { ... }
Expand Down Expand Up @@ -1373,7 +1373,7 @@ <h3>Proofs (Signatures)</h3>
"id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
"degree": {
"type": "BachelorDegree",
"name": "Bachelor of Science in Mechanical Engineering"
"name": "&lt;span lang='fr-CA'>Baccalauréat en musiques numériques&lt;/span>"
}
},
<span class="highlight">"proof": {
Expand Down Expand Up @@ -1427,7 +1427,7 @@ <h3>Expiration</h3>
"id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
"degree": {
"type": "BachelorDegree",
"name": "Bachelor of Science in Mechanical Engineering"
"name": "&lt;span lang='fr-CA'>Baccalauréat en musiques numériques&lt;/span>"
}
},
"proof": { ... }
Expand Down Expand Up @@ -1488,7 +1488,7 @@ <h3>Status</h3>
"id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
"degree": {
"type": "BachelorDegree",
"name": "Bachelor of Science in Mechanical Engineering"
"name": "&lt;span lang='fr-CA'>Baccalauréat en musiques numériques&lt;/span>"
}
},
<span class="highlight">"credentialStatus": {
Expand Down Expand Up @@ -2008,7 +2008,7 @@ <h3>Data Schemas</h3>
"id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
"degree": {
"type": "BachelorDegree",
"name": "Bachelor of Science in Mechanical Engineering"
"name": "&lt;span lang='fr-CA'>Baccalauréat en musiques numériques&lt;/span>"
}
},
<span class="highlight">"credentialSchema": {
Expand Down Expand Up @@ -2053,7 +2053,7 @@ <h3>Data Schemas</h3>
"id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
"degree": {
"type": "BachelorDegree",
"name": "Bachelor of Science in Mechanical Engineering"
"name": "&lt;span lang='fr-CA'>Baccalauréat en musiques numériques&lt;/span>"
}
},
<span class="highlight">"credentialSchema": {
Expand Down Expand Up @@ -2136,7 +2136,7 @@ <h3>Refreshing</h3>
"id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
"degree": {
"type": "BachelorDegree",
"name": "Bachelor of Science in Mechanical Engineering"
"name": "&lt;span lang='fr-CA'>Baccalauréat en musiques numériques&lt;/span>"
}
},
<span class="highlight">"refreshService": {
Expand Down Expand Up @@ -2219,7 +2219,7 @@ <h3>Terms of Use</h3>
"id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
"degree": {
"type": "BachelorDegree",
"name": "Bachelor of Science in Mechanical Engineering"
"name": "&lt;span lang='fr-CA'>Baccalauréat en musiques numériques&lt;/span>"
}
},
<span class="highlight">"termsOfUse": [{
Expand Down Expand Up @@ -2260,7 +2260,7 @@ <h3>Terms of Use</h3>
"id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
"degree": {
"type": "BachelorDegree",
"name": "Bachelor of Science in Mechanical Engineering"
"name": "&lt;span lang='fr-CA'>Baccalauréat en musiques numériques&lt;/span>"
}
},
"proof": { ... }
Expand Down Expand Up @@ -2355,7 +2355,7 @@ <h3>Evidence</h3>
"id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
"degree": {
"type": "BachelorDegree",
"name": "Bachelor of Science in Mechanical Engineering"
"name": "&lt;span lang='fr-CA'>Baccalauréat en musiques numériques&lt;/span>"
}
},
<span class="highlight">"evidence": [{
Expand Down Expand Up @@ -2463,7 +2463,7 @@ <h3>Zero-Knowledge Proofs</h3>
"familyName": "Doe",
"degree": {
"type": "BachelorDegree",
"name": "Bachelor of Science in Mechanical Engineering",
"name": "&lt;span lang='fr-CA'>Baccalauréat en musiques numériques&lt;/span>",
"college": "College of Engineering"
}
},
Expand Down Expand Up @@ -2627,7 +2627,10 @@ <h3>Disputes</h3>
<span class="highlight">"credentialSubject": {
"id": "http://example.com/credentials/245",
"currentStatus": "Disputed",
"statusReason": "Address is out of date"
"statusReason": {
"@value": "Address is out of date",
"@language": "en"
},
}</span>,
"issuer": "https://example.com/people#me",
"issuanceDate": "2017-12-05T14:27:42Z",
Expand All @@ -2644,7 +2647,10 @@ <h3>Disputes</h3>
<span class="highlight">"credentialSubject": {
"id": "http://example.com/credentials/245",
"currentStatus": "Disputed",
"statusReason": "Credential contains disputed statements",
"statusReason": {
"@value": "Credential contains disputed statements",
"@language": "en"
},
"disputedClaim": {
"id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
"address": "Is Wrong"
Expand Down Expand Up @@ -3087,7 +3093,7 @@ <h5>JWT Decoding</h5>
"credentialSubject": {
"degree": {
"type": "BachelorDegree",
"name": "Bachelor of Science in Mechanical Engineering"
"name": "&lt;span lang='fr-CA'>Baccalauréat en musiques numériques&lt;/span>"
}
}
}
Expand Down Expand Up @@ -3567,7 +3573,7 @@ <h3>Bearer Credentials</h3>
<span class="comment">// note that the 'id' property is not specified for bearer credentials</span>
"degree": {
"type": "BachelorDegree",
"name": "Bachelor of Science in Mechanical Engineering"
"name": "&lt;span lang='fr-CA'>Baccalauréat en musiques numériques&lt;/span>"
}
},
"proof": { ... }
Expand Down Expand Up @@ -4022,7 +4028,7 @@ <h3>Content Integrity Protection</h3>
"credentialSubject": {
"id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
"image": <span class="highlight">"https://example.edu/images/58473"</span>,
"alumniOf": "Example University"
"alumniOf": "&lt;span lang='en'>Example University&lt;/span>"
},
"proof": { ... }
}
Expand Down Expand Up @@ -4053,7 +4059,7 @@ <h3>Content Integrity Protection</h3>
"credentialSubject": {
"id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
"image": <span class="highlight">"ipfs:/ipfs/QmXfrS3pHerg44zzK6QKQj6JDk8H6cMtQS7pdXbohwNQfK/image"</span>,
"alumniOf": "Example University"
"alumniOf": "&lt;span lang='en'>Example University&lt;/span>"
},
"proof": { ... }
}
Expand Down