json-ld-preloaded 2.2.3 → 3.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,19 @@
1
+ # -*- encoding: utf-8 -*-
2
+ # frozen_string_literal: true
3
+ # This file generated automatically from https://www.w3.org/2018/credentials/v1
4
+ require 'json/ld'
5
+ class JSON::LD::Context
6
+ add_preloaded("https://www.w3.org/2018/credentials/v1") do
7
+ new(processingMode: "json-ld-1.1", term_definitions: {
8
+ "EcdsaSecp256k1Signature2019" => TermDefinition.new("EcdsaSecp256k1Signature2019", id: "https://w3id.org/security#EcdsaSecp256k1Signature2019", context: {"@version"=>1.1, "@protected"=>true, "id"=>"@id", "type"=>"@type", "sec"=>"https://w3id.org/security#", "xsd"=>"http://www.w3.org/2001/XMLSchema#", "challenge"=>"sec:challenge", "created"=>{"@id"=>"http://purl.org/dc/terms/created", "@type"=>"xsd:dateTime"}, "domain"=>"sec:domain", "expires"=>{"@id"=>"sec:expiration", "@type"=>"xsd:dateTime"}, "jws"=>"sec:jws", "nonce"=>"sec:nonce", "proofPurpose"=>{"@id"=>"sec:proofPurpose", "@type"=>"@vocab", "@context"=>{"@version"=>1.1, "@protected"=>true, "id"=>"@id", "type"=>"@type", "sec"=>"https://w3id.org/security#", "assertionMethod"=>{"@id"=>"sec:assertionMethod", "@type"=>"@id", "@container"=>"@set"}, "authentication"=>{"@id"=>"sec:authenticationMethod", "@type"=>"@id", "@container"=>"@set"}}}, "proofValue"=>"sec:proofValue", "verificationMethod"=>{"@id"=>"sec:verificationMethod", "@type"=>"@id"}}, protected: true),
9
+ "EcdsaSecp256r1Signature2019" => TermDefinition.new("EcdsaSecp256r1Signature2019", id: "https://w3id.org/security#EcdsaSecp256r1Signature2019", context: {"@version"=>1.1, "@protected"=>true, "id"=>"@id", "type"=>"@type", "sec"=>"https://w3id.org/security#", "xsd"=>"http://www.w3.org/2001/XMLSchema#", "challenge"=>"sec:challenge", "created"=>{"@id"=>"http://purl.org/dc/terms/created", "@type"=>"xsd:dateTime"}, "domain"=>"sec:domain", "expires"=>{"@id"=>"sec:expiration", "@type"=>"xsd:dateTime"}, "jws"=>"sec:jws", "nonce"=>"sec:nonce", "proofPurpose"=>{"@id"=>"sec:proofPurpose", "@type"=>"@vocab", "@context"=>{"@version"=>1.1, "@protected"=>true, "id"=>"@id", "type"=>"@type", "sec"=>"https://w3id.org/security#", "assertionMethod"=>{"@id"=>"sec:assertionMethod", "@type"=>"@id", "@container"=>"@set"}, "authentication"=>{"@id"=>"sec:authenticationMethod", "@type"=>"@id", "@container"=>"@set"}}}, "proofValue"=>"sec:proofValue", "verificationMethod"=>{"@id"=>"sec:verificationMethod", "@type"=>"@id"}}, protected: true),
10
+ "Ed25519Signature2018" => TermDefinition.new("Ed25519Signature2018", id: "https://w3id.org/security#Ed25519Signature2018", context: {"@version"=>1.1, "@protected"=>true, "id"=>"@id", "type"=>"@type", "sec"=>"https://w3id.org/security#", "xsd"=>"http://www.w3.org/2001/XMLSchema#", "challenge"=>"sec:challenge", "created"=>{"@id"=>"http://purl.org/dc/terms/created", "@type"=>"xsd:dateTime"}, "domain"=>"sec:domain", "expires"=>{"@id"=>"sec:expiration", "@type"=>"xsd:dateTime"}, "jws"=>"sec:jws", "nonce"=>"sec:nonce", "proofPurpose"=>{"@id"=>"sec:proofPurpose", "@type"=>"@vocab", "@context"=>{"@version"=>1.1, "@protected"=>true, "id"=>"@id", "type"=>"@type", "sec"=>"https://w3id.org/security#", "assertionMethod"=>{"@id"=>"sec:assertionMethod", "@type"=>"@id", "@container"=>"@set"}, "authentication"=>{"@id"=>"sec:authenticationMethod", "@type"=>"@id", "@container"=>"@set"}}}, "proofValue"=>"sec:proofValue", "verificationMethod"=>{"@id"=>"sec:verificationMethod", "@type"=>"@id"}}, protected: true),
11
+ "RsaSignature2018" => TermDefinition.new("RsaSignature2018", id: "https://w3id.org/security#RsaSignature2018", context: {"@version"=>1.1, "@protected"=>true, "challenge"=>"sec:challenge", "created"=>{"@id"=>"http://purl.org/dc/terms/created", "@type"=>"xsd:dateTime"}, "domain"=>"sec:domain", "expires"=>{"@id"=>"sec:expiration", "@type"=>"xsd:dateTime"}, "jws"=>"sec:jws", "nonce"=>"sec:nonce", "proofPurpose"=>{"@id"=>"sec:proofPurpose", "@type"=>"@vocab", "@context"=>{"@version"=>1.1, "@protected"=>true, "id"=>"@id", "type"=>"@type", "sec"=>"https://w3id.org/security#", "assertionMethod"=>{"@id"=>"sec:assertionMethod", "@type"=>"@id", "@container"=>"@set"}, "authentication"=>{"@id"=>"sec:authenticationMethod", "@type"=>"@id", "@container"=>"@set"}}}, "proofValue"=>"sec:proofValue", "verificationMethod"=>{"@id"=>"sec:verificationMethod", "@type"=>"@id"}}, protected: true),
12
+ "VerifiableCredential" => TermDefinition.new("VerifiableCredential", id: "https://www.w3.org/2018/credentials#VerifiableCredential", context: {"@version"=>1.1, "@protected"=>true, "id"=>"@id", "type"=>"@type", "cred"=>"https://www.w3.org/2018/credentials#", "sec"=>"https://w3id.org/security#", "xsd"=>"http://www.w3.org/2001/XMLSchema#", "credentialSchema"=>{"@id"=>"cred:credentialSchema", "@type"=>"@id", "@context"=>{"@version"=>1.1, "@protected"=>true, "id"=>"@id", "type"=>"@type", "cred"=>"https://www.w3.org/2018/credentials#", "JsonSchemaValidator2018"=>"cred:JsonSchemaValidator2018"}}, "credentialStatus"=>{"@id"=>"cred:credentialStatus", "@type"=>"@id"}, "credentialSubject"=>{"@id"=>"cred:credentialSubject", "@type"=>"@id"}, "evidence"=>{"@id"=>"cred:evidence", "@type"=>"@id"}, "expirationDate"=>{"@id"=>"cred:expirationDate", "@type"=>"xsd:dateTime"}, "holder"=>{"@id"=>"cred:holder", "@type"=>"@id"}, "issued"=>{"@id"=>"cred:issued", "@type"=>"xsd:dateTime"}, "issuer"=>{"@id"=>"cred:issuer", "@type"=>"@id"}, "issuanceDate"=>{"@id"=>"cred:issuanceDate", "@type"=>"xsd:dateTime"}, "proof"=>{"@id"=>"sec:proof", "@type"=>"@id", "@container"=>"@graph"}, "refreshService"=>{"@id"=>"cred:refreshService", "@type"=>"@id", "@context"=>{"@version"=>1.1, "@protected"=>true, "id"=>"@id", "type"=>"@type", "cred"=>"https://www.w3.org/2018/credentials#", "ManualRefreshService2018"=>"cred:ManualRefreshService2018"}}, "termsOfUse"=>{"@id"=>"cred:termsOfUse", "@type"=>"@id"}, "validFrom"=>{"@id"=>"cred:validFrom", "@type"=>"xsd:dateTime"}, "validUntil"=>{"@id"=>"cred:validUntil", "@type"=>"xsd:dateTime"}}, protected: true),
13
+ "VerifiablePresentation" => TermDefinition.new("VerifiablePresentation", id: "https://www.w3.org/2018/credentials#VerifiablePresentation", context: {"@version"=>1.1, "@protected"=>true, "id"=>"@id", "type"=>"@type", "cred"=>"https://www.w3.org/2018/credentials#", "sec"=>"https://w3id.org/security#", "holder"=>{"@id"=>"cred:holder", "@type"=>"@id"}, "proof"=>{"@id"=>"sec:proof", "@type"=>"@id", "@container"=>"@graph"}, "verifiableCredential"=>{"@id"=>"cred:verifiableCredential", "@type"=>"@id", "@container"=>"@graph"}}, protected: true),
14
+ "id" => TermDefinition.new("id", id: "@id", simple: true, protected: true),
15
+ "proof" => TermDefinition.new("proof", id: "https://w3id.org/security#proof", type_mapping: "@id", container_mapping: "@graph", protected: true),
16
+ "type" => TermDefinition.new("type", id: "@type", simple: true, protected: true)
17
+ })
18
+ end
19
+ end
@@ -4,7 +4,7 @@
4
4
  require 'json/ld'
5
5
  class JSON::LD::Context
6
6
  add_preloaded("http://www.w3.org/2006/vcard/ns") do
7
- new(processingMode: "json-ld-1.0", term_definitions: {
7
+ new(term_definitions: {
8
8
  "Acquaintance" => TermDefinition.new("Acquaintance", id: "http://www.w3.org/2006/vcard/ns#Acquaintance", simple: true),
9
9
  "Address" => TermDefinition.new("Address", id: "http://www.w3.org/2006/vcard/ns#Address", simple: true),
10
10
  "Agent" => TermDefinition.new("Agent", id: "http://www.w3.org/2006/vcard/ns#Agent", simple: true),
@@ -155,4 +155,5 @@ class JSON::LD::Context
155
155
  "xsd" => TermDefinition.new("xsd", id: "http://www.w3.org/2001/XMLSchema#", simple: true, prefix: true)
156
156
  })
157
157
  end
158
+ alias_preloaded("https://www.w3.org/2006/vcard/ns", "http://www.w3.org/2006/vcard/ns")
158
159
  end
metadata CHANGED
@@ -1,55 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json-ld-preloaded
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.3
4
+ version: 3.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregg Kellogg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-13 00:00:00.000000000 Z
11
+ date: 2019-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdf
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '2.2'
20
- - - "<"
17
+ - - "~>"
21
18
  - !ruby/object:Gem::Version
22
- version: '4.0'
19
+ version: '3.0'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: '2.2'
30
- - - "<"
24
+ - - "~>"
31
25
  - !ruby/object:Gem::Version
32
- version: '4.0'
26
+ version: '3.0'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: json-ld
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
- - - ">="
38
- - !ruby/object:Gem::Version
39
- version: '2.2'
40
- - - "<"
31
+ - - "~>"
41
32
  - !ruby/object:Gem::Version
42
- version: '4.0'
33
+ version: '3.0'
43
34
  type: :runtime
44
35
  prerelease: false
45
36
  version_requirements: !ruby/object:Gem::Requirement
46
37
  requirements:
47
- - - ">="
48
- - !ruby/object:Gem::Version
49
- version: '2.2'
50
- - - "<"
38
+ - - "~>"
51
39
  - !ruby/object:Gem::Version
52
- version: '4.0'
40
+ version: '3.0'
53
41
  - !ruby/object:Gem::Dependency
54
42
  name: multi_json
55
43
  requirement: !ruby/object:Gem::Requirement
@@ -82,22 +70,16 @@ dependencies:
82
70
  name: rdf-turtle
83
71
  requirement: !ruby/object:Gem::Requirement
84
72
  requirements:
85
- - - ">="
86
- - !ruby/object:Gem::Version
87
- version: '2.2'
88
- - - "<"
73
+ - - "~>"
89
74
  - !ruby/object:Gem::Version
90
- version: '4.0'
75
+ version: '3.0'
91
76
  type: :development
92
77
  prerelease: false
93
78
  version_requirements: !ruby/object:Gem::Requirement
94
79
  requirements:
95
- - - ">="
96
- - !ruby/object:Gem::Version
97
- version: '2.2'
98
- - - "<"
80
+ - - "~>"
99
81
  - !ruby/object:Gem::Version
100
- version: '4.0'
82
+ version: '3.0'
101
83
  - !ruby/object:Gem::Dependency
102
84
  name: rspec
103
85
  requirement: !ruby/object:Gem::Requirement
@@ -118,14 +100,14 @@ dependencies:
118
100
  requirements:
119
101
  - - "~>"
120
102
  - !ruby/object:Gem::Version
121
- version: '0.9'
103
+ version: 0.9.12
122
104
  type: :development
123
105
  prerelease: false
124
106
  version_requirements: !ruby/object:Gem::Requirement
125
107
  requirements:
126
108
  - - "~>"
127
109
  - !ruby/object:Gem::Version
128
- version: '0.9'
110
+ version: 0.9.12
129
111
  description: A meta-release of the json-ld gem including preloaded vocabularies.
130
112
  email: public-linked-json@w3.org
131
113
  executables: []
@@ -137,7 +119,6 @@ files:
137
119
  - UNLICENSE
138
120
  - VERSION
139
121
  - lib/json/ld/preloaded.rb
140
- - lib/json/ld/preloaded/actions.rb
141
122
  - lib/json/ld/preloaded/activitystreams.rb
142
123
  - lib/json/ld/preloaded/csvw.rb
143
124
  - lib/json/ld/preloaded/datacube.rb
@@ -147,6 +128,7 @@ files:
147
128
  - lib/json/ld/preloaded/hydra.rb
148
129
  - lib/json/ld/preloaded/identity.rb
149
130
  - lib/json/ld/preloaded/iiif.rb
131
+ - lib/json/ld/preloaded/linkedart.rb
150
132
  - lib/json/ld/preloaded/lov.rb
151
133
  - lib/json/ld/preloaded/oa.rb
152
134
  - lib/json/ld/preloaded/obi.rb
@@ -155,6 +137,7 @@ files:
155
137
  - lib/json/ld/preloaded/rdfa.rb
156
138
  - lib/json/ld/preloaded/research.rb
157
139
  - lib/json/ld/preloaded/schema.rb
140
+ - lib/json/ld/preloaded/vc.rb
158
141
  - lib/json/ld/preloaded/vcard.rb
159
142
  - lib/json/ld/preloaded/version.rb
160
143
  - spec/preloaded_spec.rb
@@ -178,8 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
161
  - !ruby/object:Gem::Version
179
162
  version: '0'
180
163
  requirements: []
181
- rubyforge_project:
182
- rubygems_version: 2.6.14
164
+ rubygems_version: 3.0.4
183
165
  signing_key:
184
166
  specification_version: 4
185
167
  summary: JSON-LD with preloaded contexts.
File without changes