Skip to content

Commit 36342af

Browse files
authored
Merge pull request #4027 from OpSecId/cache-citizenship-context
Add citizenship context to document downloader
2 parents 799cac6 + 46ac7fe commit 36342af

2 files changed

Lines changed: 58 additions & 0 deletions

File tree

acapy_agent/vc/ld_proofs/document_downloader.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ class StaticCacheJsonLdDownloader:
5050
"https://identity.foundation/presentation-exchange/submission/v1": (
5151
"dif-presentation-exchange-submission-v1.jsonld"
5252
),
53+
"https://w3id.org/citizenship/v1": "citizenship_v1_context.jsonld",
5354
}
5455

5556
def __init__(
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"@context": {
3+
"@version": 1.1,
4+
"@protected": true,
5+
"name": "http://schema.org/name",
6+
"description": "http://schema.org/description",
7+
"identifier": "http://schema.org/identifier",
8+
"image": {
9+
"@id": "http://schema.org/image",
10+
"@type": "@id"
11+
},
12+
"PermanentResidentCard": {
13+
"@id": "https://w3id.org/citizenship#PermanentResidentCard",
14+
"@context": {
15+
"@version": 1.1,
16+
"@protected": true,
17+
"id": "@id",
18+
"type": "@type",
19+
"description": "http://schema.org/description",
20+
"name": "http://schema.org/name",
21+
"identifier": "http://schema.org/identifier",
22+
"image": {
23+
"@id": "http://schema.org/image",
24+
"@type": "@id"
25+
}
26+
}
27+
},
28+
"PermanentResident": {
29+
"@id": "https://w3id.org/citizenship#PermanentResident",
30+
"@context": {
31+
"@version": 1.1,
32+
"@protected": true,
33+
"id": "@id",
34+
"type": "@type",
35+
"ctzn": "https://w3id.org/citizenship#",
36+
"schema": "http://schema.org/",
37+
"xsd": "http://www.w3.org/2001/XMLSchema#",
38+
"birthCountry": "ctzn:birthCountry",
39+
"birthDate": {
40+
"@id": "schema:birthDate",
41+
"@type": "xsd:dateTime"
42+
},
43+
"commuterClassification": "ctzn:commuterClassification",
44+
"familyName": "schema:familyName",
45+
"gender": "schema:gender",
46+
"givenName": "schema:givenName",
47+
"lprCategory": "ctzn:lprCategory",
48+
"lprNumber": "ctzn:lprNumber",
49+
"residentSince": {
50+
"@id": "ctzn:residentSince",
51+
"@type": "xsd:dateTime"
52+
}
53+
}
54+
},
55+
"Person": "http://schema.org/Person"
56+
}
57+
}

0 commit comments

Comments
 (0)