json-ld-preloaded 3.3.0 → 3.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +14 -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/linkedart.rb +54 -54
- data/lib/json/ld/preloaded/sha256HmacKey.rb +13 -0
- data/lib/json/ld/preloaded/vaccination.rb +20 -0
- data/lib/json/ld/preloaded/vc.rb +6 -6
- 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 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4301c79a734b201cd5a28ed75289efacc8daa9bc0bf9e40fc950cf2d7e5cb7c2
|
4
|
+
data.tar.gz: 233297dbb5b24b8eecd8266ee7ee5811b1dbe258c7daab0e083f7f14b8627c6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82843793b107ba21d5954397834f1cab063e01bfcf27881c42a7ddeb7b346847e2b1ba8d248fb84932123ac620b67374a964ea05cb92dda10bbb90bae19be95a
|
7
|
+
data.tar.gz: dcbf88ef65bc2601ca3f16d2cbcb6493a998cf78b80c2443eca978be81a103e06bbc95bb18d18cf79182da40d749272729dfd28c7c3eeda83b82df7e1a7bc38a
|
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.2
|
@@ -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"}, "statusPurpose" => "https://www.w3.org/ns/credentials/status#statusPurpose", "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", "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"}}, "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#integer"}}, 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,14 @@
|
|
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
|
+
"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,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
|