json-ld-preloaded 3.3.0 → 3.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +68 -26
- data/VERSION +1 -1
- data/lib/json/ld/preloaded/aesKeyWrapping.rb +13 -0
- data/lib/json/ld/preloaded/agever.rb +24 -0
- data/lib/json/ld/preloaded/btStatus.rb +40 -0
- data/lib/json/ld/preloaded/concealedId.rb +14 -0
- data/lib/json/ld/preloaded/dataIntegrityv1.rb +15 -0
- data/lib/json/ld/preloaded/dataIntegrityv2.rb +14 -0
- data/lib/json/ld/preloaded/dcc.rb +39 -0
- data/lib/json/ld/preloaded/did.rb +21 -0
- data/lib/json/ld/preloaded/ed25519sig2018.rb +15 -0
- data/lib/json/ld/preloaded/ed25519sig2020.rb +15 -0
- data/lib/json/ld/preloaded/sha256HmacKey.rb +13 -0
- data/lib/json/ld/preloaded/vaccination.rb +20 -0
- data/lib/json/ld/preloaded/vc2.rb +40 -0
- data/lib/json/ld/preloaded/vcRevoc.rb +13 -0
- data/lib/json/ld/preloaded/vcStatus.rb +0 -0
- data/lib/json/ld/preloaded/ver1.rb +18 -0
- data/lib/json/ld/preloaded/webKMS.rb +34 -0
- data/lib/json/ld/preloaded/x25519KeyAgr.rb +13 -0
- data/lib/json/ld/preloaded/zcap.rb +28 -0
- data/lib/json/ld/preloaded.rb +18 -0
- metadata +22 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 588a5dc62af0bf46a62e0e4bcbd8575944b7d2802d7b5180a29300533466e35b
|
4
|
+
data.tar.gz: b726f15b39d508cc984757d9deb9791b83431297aeb19f4db177dad25c5a6bd7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57f28a4bd11b55d166990d6a4abdb55a23ca6cd84639f9337fb2f1ca73cfc1435f1bfbc3d5811685a608e0278f08e5a6f5e1dbae6343d26c910edad5c6d43bad
|
7
|
+
data.tar.gz: 37ec07fdced58d508558a13e52a0f21a34d24d37b93ee2d4a3bb6c816504f9da6d1340b5c97ea7da3ed39cb8cb4d0442ec9e8f8a31477248cfccba480be8e102
|
data/README.md
CHANGED
@@ -12,49 +12,91 @@ This gem uses the preloading capabilities in `JSON::LD::Context` to create ruby
|
|
12
12
|
|
13
13
|
Contexts are taken from https://github.com/json-ld/json-ld.org/wiki/existing-contexts:
|
14
14
|
|
15
|
-
* [Linked Open Vocabularies (LOV)](https://lov.linkeddata.es/dataset/lov/)
|
16
|
-
* http://lov.linkeddata.es/dataset/lov/context
|
17
|
-
* [Schema.org](http://schema.org)
|
18
|
-
* http://schema.org (needs content negotiation)
|
19
|
-
* [Hydra](http://www.hydra-cg.com/spec/latest/core/)
|
20
|
-
* http://www.w3.org/ns/hydra/core
|
21
|
-
* [LDP](http://www.w3.org/2012/ldp/wiki/Main_Page)
|
22
|
-
* [work in progress](http://lists.w3.org/Archives/Public/public-linked-json/2014Jul/0050.html)
|
23
15
|
* [ActivityStreams 2.0](http://activitystrea.ms)
|
24
|
-
*
|
25
|
-
*
|
26
|
-
|
27
|
-
|
28
|
-
*
|
29
|
-
|
16
|
+
* https://www.w3.org/ns/activitystreams
|
17
|
+
* AesKeyWrappingKey2019 Crypto Suite
|
18
|
+
* https://w3id.org/security/suites/aes-2019/v1
|
19
|
+
* Age Verification
|
20
|
+
* https://w3id.org/age/v1
|
21
|
+
* Authorization Capabilities (zCap)
|
22
|
+
* https://w3id.org/zcap/v1
|
23
|
+
* Bitstring Status List v1.0
|
24
|
+
* https://www.w3.org/ns/credentials/v2
|
25
|
+
* Concealed Id Token
|
26
|
+
* https://w3id.org/cit/v1
|
27
|
+
* [CSVW Namespace Vocabulary Terms](https://www.w3.org/TR/tabular-data-model/)
|
28
|
+
* https://www.w3.org/ns/csvw
|
29
|
+
* CultureGraph EntityFacts
|
30
|
+
* http://hub.culturegraph.org/entityfacts/context/v1/entityfacts.jsonld
|
31
|
+
* Data Integrity v1.0
|
32
|
+
* https://w3id.org/security/data-integrity/v1
|
33
|
+
* Data Integrity v2.0
|
34
|
+
* https://w3id.org/security/data-integrity/v2
|
35
|
+
* DCC (Decentralized Credentials Consortium) Core Context
|
36
|
+
* https://w3id.org/dcc/v1
|
37
|
+
* Decentralized Identifiers (DID) Core Spec v1
|
38
|
+
* https://www.w3.org/ns/did/v1
|
39
|
+
* Ed25519Signature2018 Suite
|
40
|
+
* https://w3id.org/security/suites/ed25519-2018/v1
|
41
|
+
* Ed25519Signature2020 Suite
|
42
|
+
* https://w3id.org/security/suites/ed25519-2020/v1
|
30
43
|
* [FOAF](http://xmlns.com/foaf/spec/)
|
31
44
|
* http://xmlns.com/foaf/context
|
32
45
|
* [GeoJSON-LD](https://github.com/geojson/geojson-ld)
|
33
46
|
* https://raw.githubusercontent.com/geojson/geojson-ld/master/contexts/geojson-base.jsonld
|
47
|
+
* [Hydra](http://www.hydra-cg.com/spec/latest/core/)
|
48
|
+
* http://www.w3.org/ns/hydra/core
|
34
49
|
* [IIIF Image API](http://iiif.io/api/image/2/)
|
35
50
|
* http://iiif.io/api/image/2/context.json
|
36
51
|
* [IIIF Presentation API](http://iiif.io/api/presentation/2/)
|
37
52
|
* http://iiif.io/api/presentation/2/context.json
|
38
|
-
* [
|
39
|
-
* http://
|
40
|
-
* [
|
41
|
-
*
|
42
|
-
*
|
43
|
-
*
|
44
|
-
|
53
|
+
* [LDP](http://www.w3.org/2012/ldp/wiki/Main_Page)
|
54
|
+
* [work in progress](http://lists.w3.org/Archives/Public/public-linked-json/2014Jul/0050.html)
|
55
|
+
* [Linked Open Vocabularies (LOV)](https://lov.linkeddata.es/dataset/lov/)
|
56
|
+
* http://lov.linkeddata.es/dataset/lov/context
|
57
|
+
* Multikey v1.0
|
58
|
+
* https://w3id.org/security/multikey/v1
|
59
|
+
* Open Badges (OBI)
|
60
|
+
* https://openbadgespec.org/v1/context.json
|
61
|
+
* issues: https://github.com/openbadges/openbadges-specification/issues
|
45
62
|
* [prefix.cc](http://prefix.cc)
|
46
63
|
* http://prefix.cc/context (and subsets using URLs of the form http://prefix.cc/foaf,rdf,rdfs.file.jsonld)
|
47
|
-
* CultureGraph EntityFacts
|
48
|
-
* http://hub.culturegraph.org/entityfacts/context/v1/entityfacts.jsonld
|
49
64
|
* [RDF Data Cube](http://purl.org/linked-data/cube#)
|
50
65
|
* http://pebbie.org/context/qb
|
51
|
-
* [
|
52
|
-
*
|
66
|
+
* [RDFa Core Initial Context](http://www.w3.org/2011/rdfa-context/rdfa-1.1)
|
67
|
+
* http://www.w3.org/2013/json-ld-context/rdfa11
|
68
|
+
* [Research Object Bundle](https://w3id.org/bundle)
|
69
|
+
* https://w3id.org/bundle/context
|
70
|
+
* [package.json](https://github.com/digitalbazaar/jsonld.js/issues/39)
|
71
|
+
* [Schema.org](http://schema.org)
|
72
|
+
* http://schema.org (needs content negotiation)
|
73
|
+
* Sha256HmacKey2019 Crypto Suite
|
74
|
+
* https://w3id.org/security/suites/hmac-2019/v1
|
75
|
+
* Vaccination Certificate Vocabulary v0.1
|
76
|
+
* https://w3id.org/vaccination/v1
|
77
|
+
* [vCard Ontology](http://www.w3.org/TR/vcard-rdf/)
|
78
|
+
* http://www.w3.org/2006/vcard/ns (needs content negotiation)
|
79
|
+
* Veres One DID Method
|
80
|
+
* https://w3id.org/veres-one/v1
|
81
|
+
* Verifiable Credentials Data Model v1
|
82
|
+
* https://www.w3.org/2018/credentials/v1
|
83
|
+
* Verifiable Credentials Data Model v2
|
84
|
+
* https://www.w3.org/ns/credentials/v2
|
85
|
+
* Verifiable Credentials Revocation List 2020
|
86
|
+
* https://w3id.org/vc-revocation-list-2020/v1
|
87
|
+
* WebKMS (Key Management System)
|
88
|
+
* https://w3id.org/webkms/v1
|
89
|
+
* X25519KeyAgreementKey2020 Suite
|
90
|
+
* https://w3id.org/security/suites/x25519-2020/v1
|
53
91
|
|
54
92
|
## Dependencies
|
55
|
-
* [Ruby](https://ruby-lang.org/) (>=
|
93
|
+
* [Ruby](https://ruby-lang.org/) (>= 3.0)
|
56
94
|
* [JSON::LD](https://rubygems.org/gems/json-ld) (>= 3.2)
|
57
95
|
|
96
|
+
## Change Log
|
97
|
+
|
98
|
+
See [Release Notes on GitHub](https://github.com/ruby-rdf/json-ld-preloaded/releases)
|
99
|
+
|
58
100
|
## Mailing List
|
59
101
|
* <https://lists.w3.org/Archives/Public/public-rdf-ruby/>
|
60
102
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.3.
|
1
|
+
3.3.1
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# frozen_string_literal: true
|
3
|
+
# This file generated automatically from https://w3id.org/security/suites/aes-2019/v1
|
4
|
+
require 'json/ld'
|
5
|
+
class JSON::LD::Context
|
6
|
+
add_preloaded("https://w3id.org/security/suites/aes-2019/v1") do
|
7
|
+
new(processingMode: "json-ld-1.1", term_definitions: {
|
8
|
+
"AesKeyWrappingKey2019" => TermDefinition.new("AesKeyWrappingKey2019", id: "https://w3id.org/security#AesKeyWrappingKey2019", context: {"@protected"=>true, "id"=>"@id", "type"=>"@type", "controller"=>{"@id"=>"https://w3id.org/security#controller", "@type"=>"@id"}, "revoked"=>{"@id"=>"https://w3id.org/security#revoked", "@type"=>"http://www.w3.org/2001/XMLSchema#dateTime"}}, protected: true),
|
9
|
+
"id" => TermDefinition.new("id", id: "@id", simple: true, protected: true),
|
10
|
+
"type" => TermDefinition.new("type", id: "@type", simple: true, protected: true)
|
11
|
+
})
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# frozen_string_literal: true
|
3
|
+
# This file generated automatically from https://w3id.org/age/v1
|
4
|
+
require 'json/ld'
|
5
|
+
class JSON::LD::Context
|
6
|
+
add_preloaded("https://w3id.org/age/v1") do
|
7
|
+
new(processingMode: "json-ld-1.1", term_definitions: {
|
8
|
+
"AgeVerificationContainerCredential" => TermDefinition.new("AgeVerificationContainerCredential", id: "https://w3id.org/age#AgeVerificationContainerCredential", simple: true, protected: true),
|
9
|
+
"AgeVerificationCredential" => TermDefinition.new("AgeVerificationCredential", id: "https://w3id.org/age#AgeVerificationCredential", simple: true, protected: true),
|
10
|
+
"OverAgeTokenCredential" => TermDefinition.new("OverAgeTokenCredential", id: "https://w3id.org/age#OverAgeTokenCredential", simple: true, protected: true),
|
11
|
+
"PersonalPhotoCredential" => TermDefinition.new("PersonalPhotoCredential", id: "https://convenience.org/vocab#PersonalPhotoCredential", simple: true, protected: true),
|
12
|
+
"VerifiableCredentialRefreshService2021" => TermDefinition.new("VerifiableCredentialRefreshService2021", id: "https://w3id.org/vc-refresh-service#VerifiableCredentialRefreshService2021", context: {"@protected"=>true, "url"=>{"@id"=>"https://schema.org/url", "@type"=>"@id"}, "refreshToken"=>{"@id"=>"https://w3id.org/vc-refresh-service#refreshToken", "@type"=>"https://w3id.org/security#multibase"}}, protected: true),
|
13
|
+
"anchoredResource" => TermDefinition.new("anchoredResource", id: "https://w3id.org/security#anchoredResource", type_mapping: "@id", protected: true),
|
14
|
+
"concealedIdToken" => TermDefinition.new("concealedIdToken", id: "https://w3id.org/cit#concealedIdToken", type_mapping: "https://w3id.org/security#multibase", protected: true),
|
15
|
+
"description" => TermDefinition.new("description", id: "https://schema.org/description", simple: true, protected: true),
|
16
|
+
"digestMultibase" => TermDefinition.new("digestMultibase", id: "https://w3id.org/security#digestMultibase", type_mapping: "https://w3id.org/security#multibase", protected: true),
|
17
|
+
"id" => TermDefinition.new("id", id: "@id", simple: true, protected: true),
|
18
|
+
"image" => TermDefinition.new("image", id: "https://schema.org/image", type_mapping: "@id", protected: true),
|
19
|
+
"name" => TermDefinition.new("name", id: "https://schema.org/name", simple: true, protected: true),
|
20
|
+
"overAge" => TermDefinition.new("overAge", id: "https://w3id.org/age#overAge", type_mapping: "http://www.w3.org/2001/XMLSchema#positiveInteger", protected: true),
|
21
|
+
"type" => TermDefinition.new("type", id: "@type", simple: true, protected: true)
|
22
|
+
})
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# frozen_string_literal: true
|
3
|
+
# This file generated automatically from https://www.w3.org/ns/credentials/v2
|
4
|
+
require 'json/ld'
|
5
|
+
class JSON::LD::Context
|
6
|
+
add_preloaded("https://www.w3.org/ns/credentials/v2") do
|
7
|
+
new(processingMode: "json-ld-1.1", term_definitions: {
|
8
|
+
"..." => TermDefinition.new("...", id: "https://www.iana.org/assignments/jwt#...", protected: true),
|
9
|
+
"BitstringStatusList" => TermDefinition.new("BitstringStatusList", id: "https://www.w3.org/ns/credentials/status#BitstringStatusList", context: {"@protected"=>true, "id"=>"@id", "type"=>"@type", "encodedList"=>{"@id"=>"https://www.w3.org/ns/credentials/status#encodedList", "@type"=>"https://w3id.org/security#multibase"}, "statusMessage"=>{"@id"=>"https://www.w3.org/ns/credentials/status#statusMessage", "@context"=>{"@protected"=>true, "id"=>"@id", "type"=>"@type", "message"=>"https://www.w3.org/ns/credentials/status#message", "status"=>"https://www.w3.org/ns/credentials/status#status"}}, "statusPurpose"=>"https://www.w3.org/ns/credentials/status#statusPurpose", "statusReference"=>{"@id"=>"https://www.w3.org/ns/credentials/status#statusReference", "@type"=>"@id"}, "statusSize"=>{"@id"=>"https://www.w3.org/ns/credentials/status#statusSize", "@type"=>"https://www.w3.org/2001/XMLSchema#positiveInteger"}, "ttl"=>"https://www.w3.org/ns/credentials/status#ttl"}, protected: true),
|
10
|
+
"BitstringStatusListCredential" => TermDefinition.new("BitstringStatusListCredential", id: "https://www.w3.org/ns/credentials/status#BitstringStatusListCredential", simple: true, protected: true),
|
11
|
+
"BitstringStatusListEntry" => TermDefinition.new("BitstringStatusListEntry", id: "https://www.w3.org/ns/credentials/status#BitstringStatusListEntry", context: {"@protected"=>true, "id"=>"@id", "type"=>"@type", "statusListCredential"=>{"@id"=>"https://www.w3.org/ns/credentials/status#statusListCredential", "@type"=>"@id"}, "statusListIndex"=>"https://www.w3.org/ns/credentials/status#statusListIndex", "statusPurpose"=>"https://www.w3.org/ns/credentials/status#statusPurpose"}, protected: true),
|
12
|
+
"DataIntegrityProof" => TermDefinition.new("DataIntegrityProof", id: "https://w3id.org/security#DataIntegrityProof", context: {"@protected"=>true, "id"=>"@id", "type"=>"@type", "challenge"=>"https://w3id.org/security#challenge", "created"=>{"@id"=>"http://purl.org/dc/terms/created", "@type"=>"http://www.w3.org/2001/XMLSchema#dateTime"}, "cryptosuite"=>{"@id"=>"https://w3id.org/security#cryptosuite", "@type"=>"https://w3id.org/security#cryptosuiteString"}, "domain"=>"https://w3id.org/security#domain", "expires"=>{"@id"=>"https://w3id.org/security#expiration", "@type"=>"http://www.w3.org/2001/XMLSchema#dateTime"}, "nonce"=>"https://w3id.org/security#nonce", "previousProof"=>{"@id"=>"https://w3id.org/security#previousProof", "@type"=>"@id"}, "proofPurpose"=>{"@id"=>"https://w3id.org/security#proofPurpose", "@type"=>"@vocab", "@context"=>{"@protected"=>true, "id"=>"@id", "type"=>"@type", "assertionMethod"=>{"@id"=>"https://w3id.org/security#assertionMethod", "@type"=>"@id", "@container"=>"@set"}, "authentication"=>{"@id"=>"https://w3id.org/security#authenticationMethod", "@type"=>"@id", "@container"=>"@set"}, "capabilityDelegation"=>{"@id"=>"https://w3id.org/security#capabilityDelegationMethod", "@type"=>"@id", "@container"=>"@set"}, "capabilityInvocation"=>{"@id"=>"https://w3id.org/security#capabilityInvocationMethod", "@type"=>"@id", "@container"=>"@set"}, "keyAgreement"=>{"@id"=>"https://w3id.org/security#keyAgreementMethod", "@type"=>"@id", "@container"=>"@set"}}}, "proofValue"=>{"@id"=>"https://w3id.org/security#proofValue", "@type"=>"https://w3id.org/security#multibase"}, "verificationMethod"=>{"@id"=>"https://w3id.org/security#verificationMethod", "@type"=>"@id"}}, protected: true),
|
13
|
+
"EnvelopedVerifiableCredential" => TermDefinition.new("EnvelopedVerifiableCredential", id: "https://www.w3.org/2018/credentials#EnvelopedVerifiableCredential", simple: true, protected: true),
|
14
|
+
"EnvelopedVerifiablePresentation" => TermDefinition.new("EnvelopedVerifiablePresentation", id: "https://www.w3.org/2018/credentials#EnvelopedVerifiablePresentation", simple: true, protected: true),
|
15
|
+
"JsonSchema" => TermDefinition.new("JsonSchema", id: "https://www.w3.org/2018/credentials#JsonSchema", context: {"@protected"=>true, "id"=>"@id", "type"=>"@type", "jsonSchema"=>{"@id"=>"https://www.w3.org/2018/credentials#jsonSchema", "@type"=>"@json"}}, protected: true),
|
16
|
+
"JsonSchemaCredential" => TermDefinition.new("JsonSchemaCredential", id: "https://www.w3.org/2018/credentials#JsonSchemaCredential", simple: true, protected: true),
|
17
|
+
"VerifiableCredential" => TermDefinition.new("VerifiableCredential", id: "https://www.w3.org/2018/credentials#VerifiableCredential", context: {"@protected"=>true, "id"=>"@id", "type"=>"@type", "confidenceMethod"=>{"@id"=>"https://www.w3.org/2018/credentials#confidenceMethod", "@type"=>"@id"}, "credentialSchema"=>{"@id"=>"https://www.w3.org/2018/credentials#credentialSchema", "@type"=>"@id"}, "credentialStatus"=>{"@id"=>"https://www.w3.org/2018/credentials#credentialStatus", "@type"=>"@id"}, "credentialSubject"=>{"@id"=>"https://www.w3.org/2018/credentials#credentialSubject", "@type"=>"@id"}, "description"=>"https://schema.org/description", "evidence"=>{"@id"=>"https://www.w3.org/2018/credentials#evidence", "@type"=>"@id"}, "issuer"=>{"@id"=>"https://www.w3.org/2018/credentials#issuer", "@type"=>"@id"}, "name"=>"https://schema.org/name", "proof"=>{"@id"=>"https://w3id.org/security#proof", "@type"=>"@id", "@container"=>"@graph"}, "refreshService"=>{"@id"=>"https://www.w3.org/2018/credentials#refreshService", "@type"=>"@id"}, "relatedResource"=>{"@id"=>"https://www.w3.org/2018/credentials#relatedResource", "@type"=>"@id"}, "renderMethod"=>{"@id"=>"https://www.w3.org/2018/credentials#renderMethod", "@type"=>"@id"}, "termsOfUse"=>{"@id"=>"https://www.w3.org/2018/credentials#termsOfUse", "@type"=>"@id"}, "validFrom"=>{"@id"=>"https://www.w3.org/2018/credentials#validFrom", "@type"=>"http://www.w3.org/2001/XMLSchema#dateTime"}, "validUntil"=>{"@id"=>"https://www.w3.org/2018/credentials#validUntil", "@type"=>"http://www.w3.org/2001/XMLSchema#dateTime"}}, protected: true),
|
18
|
+
"VerifiablePresentation" => TermDefinition.new("VerifiablePresentation", id: "https://www.w3.org/2018/credentials#VerifiablePresentation", context: {"@protected"=>true, "id"=>"@id", "type"=>"@type", "holder"=>{"@id"=>"https://www.w3.org/2018/credentials#holder", "@type"=>"@id"}, "proof"=>{"@id"=>"https://w3id.org/security#proof", "@type"=>"@id", "@container"=>"@graph"}, "termsOfUse"=>{"@id"=>"https://www.w3.org/2018/credentials#termsOfUse", "@type"=>"@id"}, "verifiableCredential"=>{"@id"=>"https://www.w3.org/2018/credentials#verifiableCredential", "@type"=>"@id", "@container"=>"@graph", "@context"=>nil}}, protected: true),
|
19
|
+
"_sd" => TermDefinition.new("_sd", id: "https://www.iana.org/assignments/jwt#_sd", type_mapping: "@json", protected: true),
|
20
|
+
"_sd_alg" => TermDefinition.new("_sd_alg", id: "https://www.iana.org/assignments/jwt#_sd_alg", protected: true),
|
21
|
+
"aud" => TermDefinition.new("aud", id: "https://www.iana.org/assignments/jwt#aud", type_mapping: "@id", protected: true),
|
22
|
+
"cnf" => TermDefinition.new("cnf", id: "https://www.iana.org/assignments/jwt#cnf", context: {"@protected"=>true, "kid"=>{"@id"=>"https://www.iana.org/assignments/jwt#kid", "@type"=>"@id"}, "jwk"=>{"@id"=>"https://www.iana.org/assignments/jwt#jwk", "@type"=>"@json"}}, protected: true),
|
23
|
+
"description" => TermDefinition.new("description", id: "https://schema.org/description", simple: true, protected: true),
|
24
|
+
"digestMultibase" => TermDefinition.new("digestMultibase", id: "https://w3id.org/security#digestMultibase", type_mapping: "https://w3id.org/security#multibase", protected: true),
|
25
|
+
"digestSRI" => TermDefinition.new("digestSRI", id: "https://www.w3.org/2018/credentials#digestSRI", type_mapping: "https://www.w3.org/2018/credentials#sriString", protected: true),
|
26
|
+
"exp" => TermDefinition.new("exp", id: "https://www.iana.org/assignments/jwt#exp", type_mapping: "https://www.w3.org/2001/XMLSchema#nonNegativeInteger", protected: true),
|
27
|
+
"iat" => TermDefinition.new("iat", id: "https://www.iana.org/assignments/jwt#iat", type_mapping: "https://www.w3.org/2001/XMLSchema#nonNegativeInteger", protected: true),
|
28
|
+
"id" => TermDefinition.new("id", id: "@id", simple: true, protected: true),
|
29
|
+
"iss" => TermDefinition.new("iss", id: "https://www.iana.org/assignments/jose#iss", type_mapping: "@id", protected: true),
|
30
|
+
"jku" => TermDefinition.new("jku", id: "https://www.iana.org/assignments/jose#jku", type_mapping: "@id", protected: true),
|
31
|
+
"kid" => TermDefinition.new("kid", id: "https://www.iana.org/assignments/jose#kid", type_mapping: "@id", protected: true),
|
32
|
+
"mediaType" => TermDefinition.new("mediaType", id: "https://schema.org/encodingFormat", protected: true),
|
33
|
+
"name" => TermDefinition.new("name", id: "https://schema.org/name", simple: true, protected: true),
|
34
|
+
"nbf" => TermDefinition.new("nbf", id: "https://www.iana.org/assignments/jwt#nbf", type_mapping: "https://www.w3.org/2001/XMLSchema#nonNegativeInteger", protected: true),
|
35
|
+
"sub" => TermDefinition.new("sub", id: "https://www.iana.org/assignments/jose#sub", type_mapping: "@id", protected: true),
|
36
|
+
"type" => TermDefinition.new("type", id: "@type", simple: true, protected: true),
|
37
|
+
"x5u" => TermDefinition.new("x5u", id: "https://www.iana.org/assignments/jose#x5u", type_mapping: "@id", protected: true)
|
38
|
+
})
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# frozen_string_literal: true
|
3
|
+
# This file generated automatically from https://w3id.org/cit/v1
|
4
|
+
require 'json/ld'
|
5
|
+
class JSON::LD::Context
|
6
|
+
add_preloaded("https://w3id.org/cit/v1") do
|
7
|
+
new(processingMode: "json-ld-1.1", term_definitions: {
|
8
|
+
"ConcealedIdToken" => TermDefinition.new("ConcealedIdToken", id: "https://w3id.org/cit#ConcealedIdToken", context: {"@protected"=>true, "meta"=>{"@id"=>"https://w3id.org/cit#meta", "@type"=>"https://w3id.org/security#multibase"}, "payload"=>{"@id"=>"https://w3id.org/cit#payload", "@type"=>"https://w3id.org/security#multibase"}}, protected: true),
|
9
|
+
"ConcealedIdTokenCredential" => TermDefinition.new("ConcealedIdTokenCredential", id: "https://w3id.org/cit#ConcealedIdTokenCredential", simple: true, protected: true),
|
10
|
+
"concealedIdToken" => TermDefinition.new("concealedIdToken", id: "https://w3id.org/cit#concealedIdToken", type_mapping: "https://w3id.org/security#multibase", protected: true),
|
11
|
+
"type" => TermDefinition.new("type", id: "@type", simple: true, protected: true)
|
12
|
+
})
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# frozen_string_literal: true
|
3
|
+
# This file generated automatically from https://w3id.org/security/data-integrity/v1
|
4
|
+
require 'json/ld'
|
5
|
+
class JSON::LD::Context
|
6
|
+
add_preloaded("https://w3id.org/security/data-integrity/v1") do
|
7
|
+
new(processingMode: "json-ld-1.1", term_definitions: {
|
8
|
+
"DataIntegrityProof" => TermDefinition.new("DataIntegrityProof", id: "https://w3id.org/security#DataIntegrityProof", context: {"@protected"=>true, "id"=>"@id", "type"=>"@type", "challenge"=>"https://w3id.org/security#challenge", "created"=>{"@id"=>"http://purl.org/dc/terms/created", "@type"=>"http://www.w3.org/2001/XMLSchema#dateTime"}, "domain"=>"https://w3id.org/security#domain", "expires"=>{"@id"=>"https://w3id.org/security#expiration", "@type"=>"http://www.w3.org/2001/XMLSchema#dateTime"}, "nonce"=>"https://w3id.org/security#nonce", "proofPurpose"=>{"@id"=>"https://w3id.org/security#proofPurpose", "@type"=>"@vocab", "@context"=>{"@protected"=>true, "id"=>"@id", "type"=>"@type", "assertionMethod"=>{"@id"=>"https://w3id.org/security#assertionMethod", "@type"=>"@id", "@container"=>"@set"}, "authentication"=>{"@id"=>"https://w3id.org/security#authenticationMethod", "@type"=>"@id", "@container"=>"@set"}, "capabilityInvocation"=>{"@id"=>"https://w3id.org/security#capabilityInvocationMethod", "@type"=>"@id", "@container"=>"@set"}, "capabilityDelegation"=>{"@id"=>"https://w3id.org/security#capabilityDelegationMethod", "@type"=>"@id", "@container"=>"@set"}, "keyAgreement"=>{"@id"=>"https://w3id.org/security#keyAgreementMethod", "@type"=>"@id", "@container"=>"@set"}}}, "cryptosuite"=>"https://w3id.org/security#cryptosuite", "proofValue"=>{"@id"=>"https://w3id.org/security#proofValue", "@type"=>"https://w3id.org/security#multibase"}, "verificationMethod"=>{"@id"=>"https://w3id.org/security#verificationMethod", "@type"=>"@id"}}, protected: true),
|
9
|
+
"digestMultibase" => TermDefinition.new("digestMultibase", id: "https://w3id.org/security#digestMultibase", type_mapping: "https://w3id.org/security#multibase", protected: true),
|
10
|
+
"id" => TermDefinition.new("id", id: "@id", simple: true, protected: true),
|
11
|
+
"proof" => TermDefinition.new("proof", id: "https://w3id.org/security#proof", type_mapping: "@id", container_mapping: "@graph", protected: true),
|
12
|
+
"type" => TermDefinition.new("type", id: "@type", simple: true, protected: true)
|
13
|
+
})
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# frozen_string_literal: true
|
3
|
+
# This file generated automatically from https://w3id.org/security/data-integrity/v2
|
4
|
+
require 'json/ld'
|
5
|
+
class JSON::LD::Context
|
6
|
+
add_preloaded("https://w3id.org/security/data-integrity/v2") do
|
7
|
+
new(processingMode: "json-ld-1.1", term_definitions: {
|
8
|
+
"DataIntegrityProof" => TermDefinition.new("DataIntegrityProof", id: "https://w3id.org/security#DataIntegrityProof", context: {"@protected"=>true, "id"=>"@id", "type"=>"@type", "challenge"=>"https://w3id.org/security#challenge", "created"=>{"@id"=>"http://purl.org/dc/terms/created", "@type"=>"http://www.w3.org/2001/XMLSchema#dateTime"}, "domain"=>"https://w3id.org/security#domain", "expires"=>{"@id"=>"https://w3id.org/security#expiration", "@type"=>"http://www.w3.org/2001/XMLSchema#dateTime"}, "nonce"=>"https://w3id.org/security#nonce", "previousProof"=>{"@id"=>"https://w3id.org/security#previousProof", "@type"=>"@id"}, "proofPurpose"=>{"@id"=>"https://w3id.org/security#proofPurpose", "@type"=>"@vocab", "@context"=>{"@protected"=>true, "id"=>"@id", "type"=>"@type", "assertionMethod"=>{"@id"=>"https://w3id.org/security#assertionMethod", "@type"=>"@id", "@container"=>"@set"}, "authentication"=>{"@id"=>"https://w3id.org/security#authenticationMethod", "@type"=>"@id", "@container"=>"@set"}, "capabilityInvocation"=>{"@id"=>"https://w3id.org/security#capabilityInvocationMethod", "@type"=>"@id", "@container"=>"@set"}, "capabilityDelegation"=>{"@id"=>"https://w3id.org/security#capabilityDelegationMethod", "@type"=>"@id", "@container"=>"@set"}, "keyAgreement"=>{"@id"=>"https://w3id.org/security#keyAgreementMethod", "@type"=>"@id", "@container"=>"@set"}}}, "cryptosuite"=>{"@id"=>"https://w3id.org/security#cryptosuite", "@type"=>"https://w3id.org/security#cryptosuiteString"}, "proofValue"=>{"@id"=>"https://w3id.org/security#proofValue", "@type"=>"https://w3id.org/security#multibase"}, "verificationMethod"=>{"@id"=>"https://w3id.org/security#verificationMethod", "@type"=>"@id"}}, protected: true),
|
9
|
+
"id" => TermDefinition.new("id", id: "@id", simple: true, protected: true),
|
10
|
+
"proof" => TermDefinition.new("proof", id: "https://w3id.org/security#proof", type_mapping: "@id", container_mapping: "@graph", protected: true),
|
11
|
+
"type" => TermDefinition.new("type", id: "@type", simple: true, protected: true)
|
12
|
+
})
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# frozen_string_literal: true
|
3
|
+
# This file generated automatically from https://w3id.org/dcc/v1
|
4
|
+
require 'json/ld'
|
5
|
+
class JSON::LD::Context
|
6
|
+
add_preloaded("https://w3id.org/dcc/v1") do
|
7
|
+
new(processingMode: "json-ld-1.1", term_definitions: {
|
8
|
+
"Assertion" => TermDefinition.new("Assertion", id: "https://w3id.org/dcc/v1#Assertion", simple: true, protected: true),
|
9
|
+
"Course" => TermDefinition.new("Course", id: "http://schema.org/Course", simple: true, protected: true),
|
10
|
+
"CourseCompletionCredential" => TermDefinition.new("CourseCompletionCredential", id: "https://w3id.org/dcc/v1#CourseCompletionCredential", simple: true, protected: true),
|
11
|
+
"CourseInstance" => TermDefinition.new("CourseInstance", id: "http://schema.org/CourseInstance", simple: true, protected: true),
|
12
|
+
"EducationalOccupationalCredential" => TermDefinition.new("EducationalOccupationalCredential", id: "http://schema.org/EducationalOccupationalCredential", simple: true, protected: true),
|
13
|
+
"EducationalOccupationalProgram" => TermDefinition.new("EducationalOccupationalProgram", id: "http://schema.org/EducationalOccupationalProgram", simple: true, protected: true),
|
14
|
+
"Issuer" => TermDefinition.new("Issuer", id: "https://w3id.org/openbadges#Issuer", simple: true, protected: true),
|
15
|
+
"LearningCredential" => TermDefinition.new("LearningCredential", id: "https://w3id.org/dcc/v1#LearningCredential", simple: true, protected: true),
|
16
|
+
"Person" => TermDefinition.new("Person", id: "http://schema.org/Person", simple: true, protected: true),
|
17
|
+
"ProgramCompletionCredential" => TermDefinition.new("ProgramCompletionCredential", id: "https://w3id.org/dcc/v1#ProgramCompletionCredential", simple: true, protected: true),
|
18
|
+
"assertion" => TermDefinition.new("assertion", id: "https://w3id.org/dcc/v1#assertion", simple: true, protected: true),
|
19
|
+
"awardedOnCompletionOf" => TermDefinition.new("awardedOnCompletionOf", id: "http://schema.org/educationalCredentialAwarded", reverse_property: true, protected: true),
|
20
|
+
"competencyRequired" => TermDefinition.new("competencyRequired", id: "http://schema.org/EducationalOccupationalCredential#competencyRequired", simple: true, protected: true),
|
21
|
+
"courseCode" => TermDefinition.new("courseCode", id: "http://schema.org/courseCode", simple: true, protected: true),
|
22
|
+
"credentialCategory" => TermDefinition.new("credentialCategory", id: "http://schema.org/EducationalOccupationalCredential#credentialCategory", simple: true, protected: true),
|
23
|
+
"description" => TermDefinition.new("description", id: "http://schema.org/description", protected: true),
|
24
|
+
"educationalCredentialAwarded" => TermDefinition.new("educationalCredentialAwarded", id: "http://schema.org/educationalCredentialAwarded", simple: true, protected: true),
|
25
|
+
"endDate" => TermDefinition.new("endDate", id: "http://schema.org/endDate", simple: true, protected: true),
|
26
|
+
"hasCourseInstance" => TermDefinition.new("hasCourseInstance", id: "http://schema.org/hasCourseInstance", simple: true, protected: true),
|
27
|
+
"hasCredential" => TermDefinition.new("hasCredential", id: "http://schema.org/hasCredential", simple: true, protected: true),
|
28
|
+
"id" => TermDefinition.new("id", id: "@id", simple: true, protected: true),
|
29
|
+
"identifier" => TermDefinition.new("identifier", id: "http://schema.org/identifier", simple: true, protected: true),
|
30
|
+
"image" => TermDefinition.new("image", id: "http://schema.org/image", type_mapping: "@id", protected: true),
|
31
|
+
"name" => TermDefinition.new("name", id: "http://schema.org/name", simple: true, protected: true),
|
32
|
+
"numberOfCredits" => TermDefinition.new("numberOfCredits", id: "http://schema.org/numberOfCredits", simple: true, protected: true),
|
33
|
+
"startDate" => TermDefinition.new("startDate", id: "http://schema.org/startDate", simple: true, protected: true),
|
34
|
+
"type" => TermDefinition.new("type", id: "@type", simple: true, protected: true),
|
35
|
+
"url" => TermDefinition.new("url", id: "http://schema.org/url", simple: true, protected: true),
|
36
|
+
"value" => TermDefinition.new("value", id: "http://schema.org/value", simple: true, protected: true)
|
37
|
+
})
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# frozen_string_literal: true
|
3
|
+
# This file generated automatically from https://www.w3.org/ns/did/v1
|
4
|
+
require 'json/ld'
|
5
|
+
class JSON::LD::Context
|
6
|
+
add_preloaded("https://www.w3.org/ns/did/v1") do
|
7
|
+
new(processingMode: "json-ld-1.1", term_definitions: {
|
8
|
+
"alsoKnownAs" => TermDefinition.new("alsoKnownAs", id: "https://www.w3.org/ns/activitystreams#alsoKnownAs", type_mapping: "@id", protected: true),
|
9
|
+
"assertionMethod" => TermDefinition.new("assertionMethod", id: "https://w3id.org/security#assertionMethod", type_mapping: "@id", container_mapping: "@set", protected: true),
|
10
|
+
"authentication" => TermDefinition.new("authentication", id: "https://w3id.org/security#authenticationMethod", type_mapping: "@id", container_mapping: "@set", protected: true),
|
11
|
+
"capabilityDelegation" => TermDefinition.new("capabilityDelegation", id: "https://w3id.org/security#capabilityDelegationMethod", type_mapping: "@id", container_mapping: "@set", protected: true),
|
12
|
+
"capabilityInvocation" => TermDefinition.new("capabilityInvocation", id: "https://w3id.org/security#capabilityInvocationMethod", type_mapping: "@id", container_mapping: "@set", protected: true),
|
13
|
+
"controller" => TermDefinition.new("controller", id: "https://w3id.org/security#controller", type_mapping: "@id", protected: true),
|
14
|
+
"id" => TermDefinition.new("id", id: "@id", simple: true, protected: true),
|
15
|
+
"keyAgreement" => TermDefinition.new("keyAgreement", id: "https://w3id.org/security#keyAgreementMethod", type_mapping: "@id", container_mapping: "@set", protected: true),
|
16
|
+
"service" => TermDefinition.new("service", id: "https://www.w3.org/ns/did#service", type_mapping: "@id", context: {"@protected"=>true, "id"=>"@id", "type"=>"@type", "serviceEndpoint"=>{"@id"=>"https://www.w3.org/ns/did#serviceEndpoint", "@type"=>"@id"}}, protected: true),
|
17
|
+
"type" => TermDefinition.new("type", id: "@type", simple: true, protected: true),
|
18
|
+
"verificationMethod" => TermDefinition.new("verificationMethod", id: "https://w3id.org/security#verificationMethod", type_mapping: "@id", protected: true)
|
19
|
+
})
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# frozen_string_literal: true
|
3
|
+
# This file generated automatically from https://w3id.org/security/suites/ed25519-2018/v1
|
4
|
+
require 'json/ld'
|
5
|
+
class JSON::LD::Context
|
6
|
+
add_preloaded("https://w3id.org/security/suites/ed25519-2018/v1") do
|
7
|
+
new(processingMode: "json-ld-1.1", term_definitions: {
|
8
|
+
"Ed25519Signature2018" => TermDefinition.new("Ed25519Signature2018", id: "https://w3id.org/security#Ed25519Signature2018", context: {"@protected"=>true, "id"=>"@id", "type"=>"@type", "challenge"=>"https://w3id.org/security#challenge", "created"=>{"@id"=>"http://purl.org/dc/terms/created", "@type"=>"http://www.w3.org/2001/XMLSchema#dateTime"}, "domain"=>"https://w3id.org/security#domain", "expires"=>{"@id"=>"https://w3id.org/security#expiration", "@type"=>"http://www.w3.org/2001/XMLSchema#dateTime"}, "nonce"=>"https://w3id.org/security#nonce", "proofPurpose"=>{"@id"=>"https://w3id.org/security#proofPurpose", "@type"=>"@vocab", "@context"=>{"@protected"=>true, "id"=>"@id", "type"=>"@type", "assertionMethod"=>{"@id"=>"https://w3id.org/security#assertionMethod", "@type"=>"@id", "@container"=>"@set"}, "authentication"=>{"@id"=>"https://w3id.org/security#authenticationMethod", "@type"=>"@id", "@container"=>"@set"}, "capabilityInvocation"=>{"@id"=>"https://w3id.org/security#capabilityInvocationMethod", "@type"=>"@id", "@container"=>"@set"}, "capabilityDelegation"=>{"@id"=>"https://w3id.org/security#capabilityDelegationMethod", "@type"=>"@id", "@container"=>"@set"}, "keyAgreement"=>{"@id"=>"https://w3id.org/security#keyAgreementMethod", "@type"=>"@id", "@container"=>"@set"}}}, "jws"=>{"@id"=>"https://w3id.org/security#jws"}, "verificationMethod"=>{"@id"=>"https://w3id.org/security#verificationMethod", "@type"=>"@id"}}, protected: true),
|
9
|
+
"Ed25519VerificationKey2018" => TermDefinition.new("Ed25519VerificationKey2018", id: "https://w3id.org/security#Ed25519VerificationKey2018", context: {"@protected"=>true, "id"=>"@id", "type"=>"@type", "controller"=>{"@id"=>"https://w3id.org/security#controller", "@type"=>"@id"}, "revoked"=>{"@id"=>"https://w3id.org/security#revoked", "@type"=>"http://www.w3.org/2001/XMLSchema#dateTime"}, "publicKeyBase58"=>{"@id"=>"https://w3id.org/security#publicKeyBase58"}}, protected: true),
|
10
|
+
"id" => TermDefinition.new("id", id: "@id", simple: true, protected: true),
|
11
|
+
"proof" => TermDefinition.new("proof", id: "https://w3id.org/security#proof", type_mapping: "@id", container_mapping: "@graph", protected: true),
|
12
|
+
"type" => TermDefinition.new("type", id: "@type", simple: true, protected: true)
|
13
|
+
})
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# frozen_string_literal: true
|
3
|
+
# This file generated automatically from https://w3id.org/security/suites/ed25519-2020/v1
|
4
|
+
require 'json/ld'
|
5
|
+
class JSON::LD::Context
|
6
|
+
add_preloaded("https://w3id.org/security/suites/ed25519-2020/v1") do
|
7
|
+
new(processingMode: "json-ld-1.1", term_definitions: {
|
8
|
+
"Ed25519Signature2020" => TermDefinition.new("Ed25519Signature2020", id: "https://w3id.org/security#Ed25519Signature2020", context: {"@protected"=>true, "id"=>"@id", "type"=>"@type", "challenge"=>"https://w3id.org/security#challenge", "created"=>{"@id"=>"http://purl.org/dc/terms/created", "@type"=>"http://www.w3.org/2001/XMLSchema#dateTime"}, "domain"=>"https://w3id.org/security#domain", "expires"=>{"@id"=>"https://w3id.org/security#expiration", "@type"=>"http://www.w3.org/2001/XMLSchema#dateTime"}, "nonce"=>"https://w3id.org/security#nonce", "proofPurpose"=>{"@id"=>"https://w3id.org/security#proofPurpose", "@type"=>"@vocab", "@context"=>{"@protected"=>true, "id"=>"@id", "type"=>"@type", "assertionMethod"=>{"@id"=>"https://w3id.org/security#assertionMethod", "@type"=>"@id", "@container"=>"@set"}, "authentication"=>{"@id"=>"https://w3id.org/security#authenticationMethod", "@type"=>"@id", "@container"=>"@set"}, "capabilityInvocation"=>{"@id"=>"https://w3id.org/security#capabilityInvocationMethod", "@type"=>"@id", "@container"=>"@set"}, "capabilityDelegation"=>{"@id"=>"https://w3id.org/security#capabilityDelegationMethod", "@type"=>"@id", "@container"=>"@set"}, "keyAgreement"=>{"@id"=>"https://w3id.org/security#keyAgreementMethod", "@type"=>"@id", "@container"=>"@set"}}}, "proofValue"=>{"@id"=>"https://w3id.org/security#proofValue", "@type"=>"https://w3id.org/security#multibase"}, "verificationMethod"=>{"@id"=>"https://w3id.org/security#verificationMethod", "@type"=>"@id"}}, protected: true),
|
9
|
+
"Ed25519VerificationKey2020" => TermDefinition.new("Ed25519VerificationKey2020", id: "https://w3id.org/security#Ed25519VerificationKey2020", context: {"@protected"=>true, "id"=>"@id", "type"=>"@type", "controller"=>{"@id"=>"https://w3id.org/security#controller", "@type"=>"@id"}, "revoked"=>{"@id"=>"https://w3id.org/security#revoked", "@type"=>"http://www.w3.org/2001/XMLSchema#dateTime"}, "publicKeyMultibase"=>{"@id"=>"https://w3id.org/security#publicKeyMultibase", "@type"=>"https://w3id.org/security#multibase"}}, protected: true),
|
10
|
+
"id" => TermDefinition.new("id", id: "@id", simple: true, protected: true),
|
11
|
+
"proof" => TermDefinition.new("proof", id: "https://w3id.org/security#proof", type_mapping: "@id", container_mapping: "@graph", protected: true),
|
12
|
+
"type" => TermDefinition.new("type", id: "@type", simple: true, protected: true)
|
13
|
+
})
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# frozen_string_literal: true
|
3
|
+
# This file generated automatically from https://w3id.org/security/suites/hmac-2019/v1
|
4
|
+
require 'json/ld'
|
5
|
+
class JSON::LD::Context
|
6
|
+
add_preloaded("https://w3id.org/security/suites/hmac-2019/v1") do
|
7
|
+
new(processingMode: "json-ld-1.1", term_definitions: {
|
8
|
+
"Sha256HmacKey2019" => TermDefinition.new("Sha256HmacKey2019", id: "https://w3id.org/security#Sha256HmacKey2019", context: {"@protected"=>true, "id"=>"@id", "type"=>"@type", "controller"=>{"@id"=>"https://w3id.org/security#controller", "@type"=>"@id"}, "revoked"=>{"@id"=>"https://w3id.org/security#revoked", "@type"=>"http://www.w3.org/2001/XMLSchema#dateTime"}}, protected: true),
|
9
|
+
"id" => TermDefinition.new("id", id: "@id", simple: true, protected: true),
|
10
|
+
"type" => TermDefinition.new("type", id: "@type", simple: true, protected: true)
|
11
|
+
})
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# frozen_string_literal: true
|
3
|
+
# This file generated automatically from https://w3id.org/vaccination/v1
|
4
|
+
require 'json/ld'
|
5
|
+
class JSON::LD::Context
|
6
|
+
add_preloaded("https://w3id.org/vaccination/v1") do
|
7
|
+
new(processingMode: "json-ld-1.1", term_definitions: {
|
8
|
+
"VaccinationCertificate" => TermDefinition.new("VaccinationCertificate", id: "https://w3id.org/vaccination#VaccinationCertificate", context: {"@version"=>1.1, "@protected"=>true, "id"=>"@id", "type"=>"@type", "description"=>"http://schema.org/description", "identifier"=>"http://schema.org/identifier", "name"=>"http://schema.org/name", "image"=>"http://schema.org/image"}, protected: true),
|
9
|
+
"VaccinationEvent" => TermDefinition.new("VaccinationEvent", id: "https://w3id.org/vaccination#VaccinationEvent", context: {"@version"=>1.1, "@protected"=>true, "id"=>"@id", "type"=>"@type", "administeringCentre"=>"https://w3id.org/vaccination#administeringCentre", "batchNumber"=>"https://w3id.org/vaccination#batchNumber", "countryOfVaccination"=>"https://w3id.org/vaccination#countryOfVaccination", "dateOfVaccination"=>{"@id"=>"https://w3id.org/vaccination#dateOfVaccination", "@type"=>"http://www.w3.org/2001/XMLSchema#dateTime"}, "healthProfessional"=>"https://w3id.org/vaccination#healthProfessional", "nextVaccinationDate"=>{"@id"=>"https://w3id.org/vaccination#nextVaccinationDate", "@type"=>"http://www.w3.org/2001/XMLSchema#dateTime"}, "order"=>"https://w3id.org/vaccination#order", "recipient"=>{"@id"=>"https://w3id.org/vaccination#recipient", "@type"=>"https://w3id.org/vaccination#VaccineRecipient"}, "vaccine"=>{"@id"=>"https://w3id.org/vaccination#VaccineEventVaccine", "@type"=>"https://w3id.org/vaccination#Vaccine"}}, protected: true),
|
10
|
+
"Vaccine" => TermDefinition.new("Vaccine", id: "https://w3id.org/vaccination#Vaccine", context: {"@version"=>1.1, "@protected"=>true, "id"=>"@id", "type"=>"@type", "atcCode"=>"https://w3id.org/vaccination#atc-code", "disease"=>"https://w3id.org/vaccination#disease", "event"=>{"@id"=>"https://w3id.org/vaccination#VaccineRecipientVaccineEvent", "@type"=>"https://w3id.org/vaccination#VaccineEvent"}, "marketingAuthorizationHolder"=>"https://w3id.org/vaccination#marketingAuthorizationHolder", "medicinalProductName"=>"https://w3id.org/vaccination#medicinalProductName"}, protected: true),
|
11
|
+
"VaccineRecipient" => TermDefinition.new("VaccineRecipient", id: "https://w3id.org/vaccination#VaccineRecipient", context: {"@version"=>1.1, "@protected"=>true, "id"=>"@id", "type"=>"@type", "birthDate"=>{"@id"=>"http://schema.org/birthDate", "@type"=>"http://www.w3.org/2001/XMLSchema#dateTime"}, "familyName"=>"http://schema.org/familyName", "gender"=>"http://schema.org/gender", "givenName"=>"http://schema.org/givenName"}, protected: true),
|
12
|
+
"description" => TermDefinition.new("description", id: "http://schema.org/description", simple: true, protected: true),
|
13
|
+
"id" => TermDefinition.new("id", id: "@id", simple: true, protected: true),
|
14
|
+
"identifier" => TermDefinition.new("identifier", id: "http://schema.org/identifier", simple: true, protected: true),
|
15
|
+
"image" => TermDefinition.new("image", id: "http://schema.org/image", simple: true, protected: true),
|
16
|
+
"name" => TermDefinition.new("name", id: "http://schema.org/name", simple: true, protected: true),
|
17
|
+
"type" => TermDefinition.new("type", id: "@type", simple: true, protected: true)
|
18
|
+
})
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# frozen_string_literal: true
|
3
|
+
# This file generated automatically from https://www.w3.org/ns/credentials/v2
|
4
|
+
require 'json/ld'
|
5
|
+
class JSON::LD::Context
|
6
|
+
add_preloaded("https://www.w3.org/ns/credentials/v2") do
|
7
|
+
new(processingMode: "json-ld-1.1", term_definitions: {
|
8
|
+
"..." => TermDefinition.new("...", id: "https://www.iana.org/assignments/jwt#...", protected: true),
|
9
|
+
"BitstringStatusList" => TermDefinition.new("BitstringStatusList", id: "https://www.w3.org/ns/credentials/status#BitstringStatusList", context: {"@protected"=>true, "id"=>"@id", "type"=>"@type", "encodedList"=>{"@id"=>"https://www.w3.org/ns/credentials/status#encodedList", "@type"=>"https://w3id.org/security#multibase"}, "statusMessage"=>{"@id"=>"https://www.w3.org/ns/credentials/status#statusMessage", "@context"=>{"@protected"=>true, "id"=>"@id", "type"=>"@type", "message"=>"https://www.w3.org/ns/credentials/status#message", "status"=>"https://www.w3.org/ns/credentials/status#status"}}, "statusPurpose"=>"https://www.w3.org/ns/credentials/status#statusPurpose", "statusReference"=>{"@id"=>"https://www.w3.org/ns/credentials/status#statusReference", "@type"=>"@id"}, "statusSize"=>{"@id"=>"https://www.w3.org/ns/credentials/status#statusSize", "@type"=>"https://www.w3.org/2001/XMLSchema#positiveInteger"}, "ttl"=>"https://www.w3.org/ns/credentials/status#ttl"}, protected: true),
|
10
|
+
"BitstringStatusListCredential" => TermDefinition.new("BitstringStatusListCredential", id: "https://www.w3.org/ns/credentials/status#BitstringStatusListCredential", simple: true, protected: true),
|
11
|
+
"BitstringStatusListEntry" => TermDefinition.new("BitstringStatusListEntry", id: "https://www.w3.org/ns/credentials/status#BitstringStatusListEntry", context: {"@protected"=>true, "id"=>"@id", "type"=>"@type", "statusListCredential"=>{"@id"=>"https://www.w3.org/ns/credentials/status#statusListCredential", "@type"=>"@id"}, "statusListIndex"=>"https://www.w3.org/ns/credentials/status#statusListIndex", "statusPurpose"=>"https://www.w3.org/ns/credentials/status#statusPurpose"}, protected: true),
|
12
|
+
"DataIntegrityProof" => TermDefinition.new("DataIntegrityProof", id: "https://w3id.org/security#DataIntegrityProof", context: {"@protected"=>true, "id"=>"@id", "type"=>"@type", "challenge"=>"https://w3id.org/security#challenge", "created"=>{"@id"=>"http://purl.org/dc/terms/created", "@type"=>"http://www.w3.org/2001/XMLSchema#dateTime"}, "cryptosuite"=>{"@id"=>"https://w3id.org/security#cryptosuite", "@type"=>"https://w3id.org/security#cryptosuiteString"}, "domain"=>"https://w3id.org/security#domain", "expires"=>{"@id"=>"https://w3id.org/security#expiration", "@type"=>"http://www.w3.org/2001/XMLSchema#dateTime"}, "nonce"=>"https://w3id.org/security#nonce", "previousProof"=>{"@id"=>"https://w3id.org/security#previousProof", "@type"=>"@id"}, "proofPurpose"=>{"@id"=>"https://w3id.org/security#proofPurpose", "@type"=>"@vocab", "@context"=>{"@protected"=>true, "id"=>"@id", "type"=>"@type", "assertionMethod"=>{"@id"=>"https://w3id.org/security#assertionMethod", "@type"=>"@id", "@container"=>"@set"}, "authentication"=>{"@id"=>"https://w3id.org/security#authenticationMethod", "@type"=>"@id", "@container"=>"@set"}, "capabilityDelegation"=>{"@id"=>"https://w3id.org/security#capabilityDelegationMethod", "@type"=>"@id", "@container"=>"@set"}, "capabilityInvocation"=>{"@id"=>"https://w3id.org/security#capabilityInvocationMethod", "@type"=>"@id", "@container"=>"@set"}, "keyAgreement"=>{"@id"=>"https://w3id.org/security#keyAgreementMethod", "@type"=>"@id", "@container"=>"@set"}}}, "proofValue"=>{"@id"=>"https://w3id.org/security#proofValue", "@type"=>"https://w3id.org/security#multibase"}, "verificationMethod"=>{"@id"=>"https://w3id.org/security#verificationMethod", "@type"=>"@id"}}, protected: true),
|
13
|
+
"EnvelopedVerifiableCredential" => TermDefinition.new("EnvelopedVerifiableCredential", id: "https://www.w3.org/2018/credentials#EnvelopedVerifiableCredential", simple: true, protected: true),
|
14
|
+
"EnvelopedVerifiablePresentation" => TermDefinition.new("EnvelopedVerifiablePresentation", id: "https://www.w3.org/2018/credentials#EnvelopedVerifiablePresentation", simple: true, protected: true),
|
15
|
+
"JsonSchema" => TermDefinition.new("JsonSchema", id: "https://www.w3.org/2018/credentials#JsonSchema", context: {"@protected"=>true, "id"=>"@id", "type"=>"@type", "jsonSchema"=>{"@id"=>"https://www.w3.org/2018/credentials#jsonSchema", "@type"=>"@json"}}, protected: true),
|
16
|
+
"JsonSchemaCredential" => TermDefinition.new("JsonSchemaCredential", id: "https://www.w3.org/2018/credentials#JsonSchemaCredential", simple: true, protected: true),
|
17
|
+
"VerifiableCredential" => TermDefinition.new("VerifiableCredential", id: "https://www.w3.org/2018/credentials#VerifiableCredential", context: {"@protected"=>true, "id"=>"@id", "type"=>"@type", "confidenceMethod"=>{"@id"=>"https://www.w3.org/2018/credentials#confidenceMethod", "@type"=>"@id"}, "credentialSchema"=>{"@id"=>"https://www.w3.org/2018/credentials#credentialSchema", "@type"=>"@id"}, "credentialStatus"=>{"@id"=>"https://www.w3.org/2018/credentials#credentialStatus", "@type"=>"@id"}, "credentialSubject"=>{"@id"=>"https://www.w3.org/2018/credentials#credentialSubject", "@type"=>"@id"}, "description"=>"https://schema.org/description", "evidence"=>{"@id"=>"https://www.w3.org/2018/credentials#evidence", "@type"=>"@id"}, "issuer"=>{"@id"=>"https://www.w3.org/2018/credentials#issuer", "@type"=>"@id"}, "name"=>"https://schema.org/name", "proof"=>{"@id"=>"https://w3id.org/security#proof", "@type"=>"@id", "@container"=>"@graph"}, "refreshService"=>{"@id"=>"https://www.w3.org/2018/credentials#refreshService", "@type"=>"@id"}, "relatedResource"=>{"@id"=>"https://www.w3.org/2018/credentials#relatedResource", "@type"=>"@id"}, "renderMethod"=>{"@id"=>"https://www.w3.org/2018/credentials#renderMethod", "@type"=>"@id"}, "termsOfUse"=>{"@id"=>"https://www.w3.org/2018/credentials#termsOfUse", "@type"=>"@id"}, "validFrom"=>{"@id"=>"https://www.w3.org/2018/credentials#validFrom", "@type"=>"http://www.w3.org/2001/XMLSchema#dateTime"}, "validUntil"=>{"@id"=>"https://www.w3.org/2018/credentials#validUntil", "@type"=>"http://www.w3.org/2001/XMLSchema#dateTime"}}, protected: true),
|
18
|
+
"VerifiablePresentation" => TermDefinition.new("VerifiablePresentation", id: "https://www.w3.org/2018/credentials#VerifiablePresentation", context: {"@protected"=>true, "id"=>"@id", "type"=>"@type", "holder"=>{"@id"=>"https://www.w3.org/2018/credentials#holder", "@type"=>"@id"}, "proof"=>{"@id"=>"https://w3id.org/security#proof", "@type"=>"@id", "@container"=>"@graph"}, "termsOfUse"=>{"@id"=>"https://www.w3.org/2018/credentials#termsOfUse", "@type"=>"@id"}, "verifiableCredential"=>{"@id"=>"https://www.w3.org/2018/credentials#verifiableCredential", "@type"=>"@id", "@container"=>"@graph", "@context"=>nil}}, protected: true),
|
19
|
+
"_sd" => TermDefinition.new("_sd", id: "https://www.iana.org/assignments/jwt#_sd", type_mapping: "@json", protected: true),
|
20
|
+
"_sd_alg" => TermDefinition.new("_sd_alg", id: "https://www.iana.org/assignments/jwt#_sd_alg", protected: true),
|
21
|
+
"aud" => TermDefinition.new("aud", id: "https://www.iana.org/assignments/jwt#aud", type_mapping: "@id", protected: true),
|
22
|
+
"cnf" => TermDefinition.new("cnf", id: "https://www.iana.org/assignments/jwt#cnf", context: {"@protected"=>true, "kid"=>{"@id"=>"https://www.iana.org/assignments/jwt#kid", "@type"=>"@id"}, "jwk"=>{"@id"=>"https://www.iana.org/assignments/jwt#jwk", "@type"=>"@json"}}, protected: true),
|
23
|
+
"description" => TermDefinition.new("description", id: "https://schema.org/description", simple: true, protected: true),
|
24
|
+
"digestMultibase" => TermDefinition.new("digestMultibase", id: "https://w3id.org/security#digestMultibase", type_mapping: "https://w3id.org/security#multibase", protected: true),
|
25
|
+
"digestSRI" => TermDefinition.new("digestSRI", id: "https://www.w3.org/2018/credentials#digestSRI", type_mapping: "https://www.w3.org/2018/credentials#sriString", protected: true),
|
26
|
+
"exp" => TermDefinition.new("exp", id: "https://www.iana.org/assignments/jwt#exp", type_mapping: "https://www.w3.org/2001/XMLSchema#nonNegativeInteger", protected: true),
|
27
|
+
"iat" => TermDefinition.new("iat", id: "https://www.iana.org/assignments/jwt#iat", type_mapping: "https://www.w3.org/2001/XMLSchema#nonNegativeInteger", protected: true),
|
28
|
+
"id" => TermDefinition.new("id", id: "@id", simple: true, protected: true),
|
29
|
+
"iss" => TermDefinition.new("iss", id: "https://www.iana.org/assignments/jose#iss", type_mapping: "@id", protected: true),
|
30
|
+
"jku" => TermDefinition.new("jku", id: "https://www.iana.org/assignments/jose#jku", type_mapping: "@id", protected: true),
|
31
|
+
"kid" => TermDefinition.new("kid", id: "https://www.iana.org/assignments/jose#kid", type_mapping: "@id", protected: true),
|
32
|
+
"mediaType" => TermDefinition.new("mediaType", id: "https://schema.org/encodingFormat", protected: true),
|
33
|
+
"name" => TermDefinition.new("name", id: "https://schema.org/name", simple: true, protected: true),
|
34
|
+
"nbf" => TermDefinition.new("nbf", id: "https://www.iana.org/assignments/jwt#nbf", type_mapping: "https://www.w3.org/2001/XMLSchema#nonNegativeInteger", protected: true),
|
35
|
+
"sub" => TermDefinition.new("sub", id: "https://www.iana.org/assignments/jose#sub", type_mapping: "@id", protected: true),
|
36
|
+
"type" => TermDefinition.new("type", id: "@type", simple: true, protected: true),
|
37
|
+
"x5u" => TermDefinition.new("x5u", id: "https://www.iana.org/assignments/jose#x5u", type_mapping: "@id", protected: true)
|
38
|
+
})
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# frozen_string_literal: true
|
3
|
+
# This file generated automatically from https://w3id.org/vc-revocation-list-2020/v1
|
4
|
+
require 'json/ld'
|
5
|
+
class JSON::LD::Context
|
6
|
+
add_preloaded("https://w3id.org/vc-revocation-list-2020/v1") do
|
7
|
+
new(processingMode: "json-ld-1.1", term_definitions: {
|
8
|
+
"RevocationList2020" => TermDefinition.new("RevocationList2020", id: "https://w3id.org/vc-revocation-list-2020#RevocationList2020", context: {"@protected"=>true, "id"=>"@id", "type"=>"@type", "encodedList"=>"https://w3id.org/vc-revocation-list-2020#encodedList"}, protected: true),
|
9
|
+
"RevocationList2020Credential" => TermDefinition.new("RevocationList2020Credential", id: "https://w3id.org/vc-revocation-list-2020#RevocationList2020Credential", context: {"@protected"=>true, "id"=>"@id", "type"=>"@type", "description"=>"http://schema.org/description", "name"=>"http://schema.org/name"}, protected: true),
|
10
|
+
"RevocationList2020Status" => TermDefinition.new("RevocationList2020Status", id: "https://w3id.org/vc-revocation-list-2020#RevocationList2020Status", context: {"@protected"=>true, "id"=>"@id", "type"=>"@type", "revocationListCredential"=>{"@id"=>"https://w3id.org/vc-revocation-list-2020#revocationListCredential", "@type"=>"@id"}, "revocationListIndex"=>"https://w3id.org/vc-revocation-list-2020#revocationListIndex"}, protected: true)
|
11
|
+
})
|
12
|
+
end
|
13
|
+
end
|
File without changes
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# frozen_string_literal: true
|
3
|
+
# This file generated automatically from https://w3id.org/veres-one/v1
|
4
|
+
require 'json/ld'
|
5
|
+
class JSON::LD::Context
|
6
|
+
add_preloaded("https://w3id.org/veres-one/v1") do
|
7
|
+
new(processingMode: "json-ld-1.1", term_definitions: {
|
8
|
+
"Elector" => TermDefinition.new("Elector", id: "https://w3id.org/webledger#Elector", simple: true),
|
9
|
+
"RecoveryElector" => TermDefinition.new("RecoveryElector", id: "https://w3id.org/webledger#RecoveryElector", simple: true),
|
10
|
+
"ValidatorParameterSet" => TermDefinition.new("ValidatorParameterSet", id: "https://w3id.org/webledger#ValidatorParameterSet", simple: true),
|
11
|
+
"allowedServiceBaseUrl" => TermDefinition.new("allowedServiceBaseUrl", id: "https://w3id.org/veres-one#allowedServiceBaseUrl", type_mapping: "@id", container_mapping: "@set"),
|
12
|
+
"blockHeight" => TermDefinition.new("blockHeight", id: "https://w3id.org/webledger#blockHeight", simple: true),
|
13
|
+
"elector" => TermDefinition.new("elector", id: "https://w3id.org/webledger#elector", type_mapping: "@id"),
|
14
|
+
"electorPool" => TermDefinition.new("electorPool", id: "https://w3id.org/webledger#electorPool", type_mapping: "@id", container_mapping: "@set"),
|
15
|
+
"maximumElectorCount" => TermDefinition.new("maximumElectorCount", id: "https://w3id.org/webledger#maximumElectorCount", type_mapping: "http://www.w3.org/2001/XMLSchema#integer")
|
16
|
+
})
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# frozen_string_literal: true
|
3
|
+
# This file generated automatically from https://w3id.org/webkms/v1
|
4
|
+
require 'json/ld'
|
5
|
+
class JSON::LD::Context
|
6
|
+
add_preloaded("https://w3id.org/webkms/v1") do
|
7
|
+
new(processingMode: "json-ld-1.1", term_definitions: {
|
8
|
+
"DeleteKeyOperation" => TermDefinition.new("DeleteKeyOperation", id: "https://w3id.org/security#DeleteKeyOperation", simple: true, protected: true),
|
9
|
+
"DeriveSecretOperation" => TermDefinition.new("DeriveSecretOperation", id: "https://w3id.org/security#DeriveSecretOperation", simple: true, protected: true),
|
10
|
+
"ExportKeyOperation" => TermDefinition.new("ExportKeyOperation", id: "https://w3id.org/security#ExportKeyOperation", simple: true, protected: true),
|
11
|
+
"GenerateKeyOperation" => TermDefinition.new("GenerateKeyOperation", id: "https://w3id.org/security#GenerateKeyOperation", simple: true, protected: true),
|
12
|
+
"KmsOperation" => TermDefinition.new("KmsOperation", id: "https://w3id.org/security#KmsOperation", simple: true, protected: true),
|
13
|
+
"RevokeKeyOperation" => TermDefinition.new("RevokeKeyOperation", id: "https://w3id.org/security#RevokeKeyOperation", simple: true, protected: true),
|
14
|
+
"SignOperation" => TermDefinition.new("SignOperation", id: "https://w3id.org/security#SignOperation", simple: true, protected: true),
|
15
|
+
"UnwrapKeyOperation" => TermDefinition.new("UnwrapKeyOperation", id: "https://w3id.org/security#UnwrapKeyOperation", simple: true, protected: true),
|
16
|
+
"UpdateKeyOperation" => TermDefinition.new("UpdateKeyOperation", id: "https://w3id.org/security#UpdateKeyOperation", simple: true, protected: true),
|
17
|
+
"VerifyOperation" => TermDefinition.new("VerifyOperation", id: "https://w3id.org/security#VerifyOperation", simple: true, protected: true),
|
18
|
+
"WrapKeyOperation" => TermDefinition.new("WrapKeyOperation", id: "https://w3id.org/security#WrapKeyOperation", simple: true, protected: true),
|
19
|
+
"id" => TermDefinition.new("id", id: "@id", simple: true, protected: true),
|
20
|
+
"invocationTarget" => TermDefinition.new("invocationTarget", id: "https://w3id.org/security#invocationTarget", type_mapping: "@id", protected: true),
|
21
|
+
"kmsModule" => TermDefinition.new("kmsModule", id: "https://w3id.org/security#kmsModule", simple: true, protected: true),
|
22
|
+
"maxCapabilityChainLength" => TermDefinition.new("maxCapabilityChainLength", id: "https://w3id.org/security#maxCapabilityChainLength", type_mapping: "http://www.w3.org/2001/XMLSchema#integer", protected: true),
|
23
|
+
"publicAlias" => TermDefinition.new("publicAlias", id: "https://w3id.org/security#publicAlias", type_mapping: "@id", protected: true),
|
24
|
+
"publicAliasTemplate" => TermDefinition.new("publicAliasTemplate", id: "https://w3id.org/security#publicAliasTemplate", simple: true, protected: true),
|
25
|
+
"publicKey" => TermDefinition.new("publicKey", id: "https://w3id.org/security#publicKey", type_mapping: "@id", protected: true),
|
26
|
+
"revoked" => TermDefinition.new("revoked", id: "https://w3id.org/security#revoked", type_mapping: "http://www.w3.org/2001/XMLSchema#dateTime", protected: true),
|
27
|
+
"signatureValue" => TermDefinition.new("signatureValue", id: "https://w3id.org/security#signatureValue", simple: true, protected: true),
|
28
|
+
"type" => TermDefinition.new("type", id: "@type", simple: true, protected: true),
|
29
|
+
"unwrappedKey" => TermDefinition.new("unwrappedKey", id: "https://w3id.org/security#unwrappedKey", simple: true, protected: true),
|
30
|
+
"verifyData" => TermDefinition.new("verifyData", id: "https://w3id.org/security#verifyData", simple: true, protected: true),
|
31
|
+
"wrappedKey" => TermDefinition.new("wrappedKey", id: "https://w3id.org/security#wrappedKey", simple: true, protected: true)
|
32
|
+
})
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# frozen_string_literal: true
|
3
|
+
# This file generated automatically from https://w3id.org/security/suites/x25519-2020/v1
|
4
|
+
require 'json/ld'
|
5
|
+
class JSON::LD::Context
|
6
|
+
add_preloaded("https://w3id.org/security/suites/x25519-2020/v1") do
|
7
|
+
new(processingMode: "json-ld-1.1", term_definitions: {
|
8
|
+
"X25519KeyAgreementKey2020" => TermDefinition.new("X25519KeyAgreementKey2020", id: "https://w3id.org/security#X25519KeyAgreementKey2020", context: {"@protected"=>true, "id"=>"@id", "type"=>"@type", "controller"=>{"@id"=>"https://w3id.org/security#controller", "@type"=>"@id"}, "revoked"=>{"@id"=>"https://w3id.org/security#revoked", "@type"=>"http://www.w3.org/2001/XMLSchema#dateTime"}, "publicKeyMultibase"=>{"@id"=>"https://w3id.org/security#publicKeyMultibase", "@type"=>"https://w3id.org/security#multibase"}}, protected: true),
|
9
|
+
"id" => TermDefinition.new("id", id: "@id", simple: true, protected: true),
|
10
|
+
"type" => TermDefinition.new("type", id: "@type", simple: true, protected: true)
|
11
|
+
})
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# frozen_string_literal: true
|
3
|
+
# This file generated automatically from https://w3id.org/zcap/v1
|
4
|
+
require 'json/ld'
|
5
|
+
class JSON::LD::Context
|
6
|
+
add_preloaded("https://w3id.org/zcap/v1") do
|
7
|
+
new(processingMode: "json-ld-1.1", term_definitions: {
|
8
|
+
"allowedAction" => TermDefinition.new("allowedAction", id: "https://w3id.org/security#allowedAction", simple: true, protected: true),
|
9
|
+
"capability" => TermDefinition.new("capability", id: "https://w3id.org/security#capability", type_mapping: "@id", protected: true),
|
10
|
+
"capabilityAction" => TermDefinition.new("capabilityAction", id: "https://w3id.org/security#capabilityAction", simple: true, protected: true),
|
11
|
+
"capabilityChain" => TermDefinition.new("capabilityChain", id: "https://w3id.org/security#capabilityChain", type_mapping: "@id", container_mapping: "@list", protected: true),
|
12
|
+
"capabilityDelegation" => TermDefinition.new("capabilityDelegation", id: "https://w3id.org/security#capabilityDelegationMethod", type_mapping: "@id", container_mapping: "@set", protected: true),
|
13
|
+
"capabilityInvocation" => TermDefinition.new("capabilityInvocation", id: "https://w3id.org/security#capabilityInvocationMethod", type_mapping: "@id", container_mapping: "@set", protected: true),
|
14
|
+
"caveat" => TermDefinition.new("caveat", id: "https://w3id.org/security#caveat", type_mapping: "@id", container_mapping: "@set", protected: true),
|
15
|
+
"controller" => TermDefinition.new("controller", id: "https://w3id.org/security#controller", type_mapping: "@id", protected: true),
|
16
|
+
"delegator" => TermDefinition.new("delegator", id: "https://w3id.org/security#delegator", type_mapping: "@id", protected: true),
|
17
|
+
"expires" => TermDefinition.new("expires", id: "https://w3id.org/security#expiration", type_mapping: "http://www.w3.org/2001/XMLSchema#dateTime", protected: true),
|
18
|
+
"id" => TermDefinition.new("id", id: "@id", simple: true, protected: true),
|
19
|
+
"invocationTarget" => TermDefinition.new("invocationTarget", id: "https://w3id.org/security#invocationTarget", type_mapping: "@id", protected: true),
|
20
|
+
"invoker" => TermDefinition.new("invoker", id: "https://w3id.org/security#invoker", type_mapping: "@id", protected: true),
|
21
|
+
"parentCapability" => TermDefinition.new("parentCapability", id: "https://w3id.org/security#parentCapability", type_mapping: "@id", protected: true),
|
22
|
+
"proof" => TermDefinition.new("proof", id: "https://w3id.org/security#proof", type_mapping: "@id", container_mapping: "@graph", protected: true),
|
23
|
+
"publicAlias" => TermDefinition.new("publicAlias", id: "https://w3id.org/security#publicAlias", type_mapping: "@id", protected: true),
|
24
|
+
"referenceId" => TermDefinition.new("referenceId", id: "https://w3id.org/security#referenceId", simple: true, protected: true),
|
25
|
+
"type" => TermDefinition.new("type", id: "@type", simple: true, protected: true)
|
26
|
+
})
|
27
|
+
end
|
28
|
+
end
|
data/lib/json/ld/preloaded.rb
CHANGED
@@ -6,8 +6,18 @@ end
|
|
6
6
|
|
7
7
|
# Require individual context files here
|
8
8
|
load "json/ld/preloaded/activitystreams.rb"
|
9
|
+
load "json/ld/preloaded/aesKeyWrapping.rb"
|
10
|
+
load "json/ld/preloaded/agever.rb"
|
11
|
+
load "json/ld/preloaded/btStatus.rb"
|
12
|
+
load "json/ld/preloaded/concealedId.rb"
|
9
13
|
load "json/ld/preloaded/csvw.rb"
|
10
14
|
load "json/ld/preloaded/datacube.rb"
|
15
|
+
load "json/ld/preloaded/dataIntegrityv1.rb"
|
16
|
+
load "json/ld/preloaded/dataIntegrityv2.rb"
|
17
|
+
load "json/ld/preloaded/dcc.rb"
|
18
|
+
load "json/ld/preloaded/did.rb"
|
19
|
+
load "json/ld/preloaded/ed25519sig2018.rb"
|
20
|
+
load "json/ld/preloaded/ed25519sig2020.rb"
|
11
21
|
load "json/ld/preloaded/entityfacts.rb"
|
12
22
|
load "json/ld/preloaded/foaf.rb"
|
13
23
|
load "json/ld/preloaded/geojson.rb"
|
@@ -21,5 +31,13 @@ load "json/ld/preloaded/presentation.rb"
|
|
21
31
|
load "json/ld/preloaded/rdfa.rb"
|
22
32
|
load "json/ld/preloaded/research.rb"
|
23
33
|
load "json/ld/preloaded/schema.rb"
|
34
|
+
load "json/ld/preloaded/sha256HmacKey.rb"
|
35
|
+
load "json/ld/preloaded/vaccination.rb"
|
24
36
|
load "json/ld/preloaded/vc.rb"
|
37
|
+
load "json/ld/preloaded/vc2.rb"
|
25
38
|
load "json/ld/preloaded/vcard.rb"
|
39
|
+
load "json/ld/preloaded/vcRevoc.rb"
|
40
|
+
load "json/ld/preloaded/ver1.rb"
|
41
|
+
load "json/ld/preloaded/webKMS.rb"
|
42
|
+
load "json/ld/preloaded/x25519KeyAgr.rb"
|
43
|
+
load "json/ld/preloaded/zcap.rb"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: json-ld-preloaded
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gregg Kellogg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdf
|
@@ -79,8 +79,18 @@ files:
|
|
79
79
|
- VERSION
|
80
80
|
- lib/json/ld/preloaded.rb
|
81
81
|
- lib/json/ld/preloaded/activitystreams.rb
|
82
|
+
- lib/json/ld/preloaded/aesKeyWrapping.rb
|
83
|
+
- lib/json/ld/preloaded/agever.rb
|
84
|
+
- lib/json/ld/preloaded/btStatus.rb
|
85
|
+
- lib/json/ld/preloaded/concealedId.rb
|
82
86
|
- lib/json/ld/preloaded/csvw.rb
|
87
|
+
- lib/json/ld/preloaded/dataIntegrityv1.rb
|
88
|
+
- lib/json/ld/preloaded/dataIntegrityv2.rb
|
83
89
|
- lib/json/ld/preloaded/datacube.rb
|
90
|
+
- lib/json/ld/preloaded/dcc.rb
|
91
|
+
- lib/json/ld/preloaded/did.rb
|
92
|
+
- lib/json/ld/preloaded/ed25519sig2018.rb
|
93
|
+
- lib/json/ld/preloaded/ed25519sig2020.rb
|
84
94
|
- lib/json/ld/preloaded/entityfacts.rb
|
85
95
|
- lib/json/ld/preloaded/foaf.rb
|
86
96
|
- lib/json/ld/preloaded/geojson.rb
|
@@ -95,9 +105,18 @@ files:
|
|
95
105
|
- lib/json/ld/preloaded/rdfa.rb
|
96
106
|
- lib/json/ld/preloaded/research.rb
|
97
107
|
- lib/json/ld/preloaded/schema.rb
|
108
|
+
- lib/json/ld/preloaded/sha256HmacKey.rb
|
109
|
+
- lib/json/ld/preloaded/vaccination.rb
|
98
110
|
- lib/json/ld/preloaded/vc.rb
|
111
|
+
- lib/json/ld/preloaded/vc2.rb
|
112
|
+
- lib/json/ld/preloaded/vcRevoc.rb
|
113
|
+
- lib/json/ld/preloaded/vcStatus.rb
|
99
114
|
- lib/json/ld/preloaded/vcard.rb
|
115
|
+
- lib/json/ld/preloaded/ver1.rb
|
100
116
|
- lib/json/ld/preloaded/version.rb
|
117
|
+
- lib/json/ld/preloaded/webKMS.rb
|
118
|
+
- lib/json/ld/preloaded/x25519KeyAgr.rb
|
119
|
+
- lib/json/ld/preloaded/zcap.rb
|
101
120
|
- spec/preloaded_spec.rb
|
102
121
|
- spec/spec_helper.rb
|
103
122
|
homepage: https://github.com/ruby-rdf/json-ld-preloaded
|
@@ -124,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
143
|
- !ruby/object:Gem::Version
|
125
144
|
version: '0'
|
126
145
|
requirements: []
|
127
|
-
rubygems_version: 3.
|
146
|
+
rubygems_version: 3.5.22
|
128
147
|
signing_key:
|
129
148
|
specification_version: 4
|
130
149
|
summary: JSON-LD with preloaded contexts for RDF.rb.
|