Skip to content

Commit b89b23b

Browse files
committed
Finish 3.3.1
2 parents ed5fb79 + 631cd72 commit b89b23b

24 files changed

+495
-28
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
strategy:
2323
fail-fast: false
2424
matrix:
25-
ruby: ['3.0', 3.1, 3.2, ruby-head, jruby]
25+
ruby: ['3.0', 3.1, 3.2, 3.3, ruby-head, jruby]
2626
steps:
2727
- name: Clone repository
2828
uses: actions/checkout@v3

README.md

Lines changed: 68 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -12,49 +12,91 @@ This gem uses the preloading capabilities in `JSON::LD::Context` to create ruby
1212

1313
Contexts are taken from https://github.com/json-ld/json-ld.org/wiki/existing-contexts:
1414

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)
2315
* [ActivityStreams 2.0](http://activitystrea.ms)
24-
* http://asjsonld.mybluemix.net/
25-
* Open Badges (OBI)
26-
* https://openbadgespec.org/v1/context.json
27-
* issues: https://github.com/openbadges/openbadges-specification/issues
28-
* [vCard Ontology](http://www.w3.org/TR/vcard-rdf/)
29-
* http://www.w3.org/2006/vcard/ns (needs content negotiation)
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
3043
* [FOAF](http://xmlns.com/foaf/spec/)
3144
* http://xmlns.com/foaf/context
3245
* [GeoJSON-LD](https://github.com/geojson/geojson-ld)
3346
* 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
3449
* [IIIF Image API](http://iiif.io/api/image/2/)
3550
* http://iiif.io/api/image/2/context.json
3651
* [IIIF Presentation API](http://iiif.io/api/presentation/2/)
3752
* http://iiif.io/api/presentation/2/context.json
38-
* [RDFa Core Initial Context](http://www.w3.org/2011/rdfa-context/rdfa-1.1)
39-
* http://www.w3.org/2013/json-ld-context/rdfa11
40-
* [Web Payments](https://web-payments.org/)
41-
* multiple, see specs
42-
* [package.json](https://github.com/digitalbazaar/jsonld.js/issues/39)
43-
* [Research Object Bundle](https://w3id.org/bundle)
44-
* https://w3id.org/bundle/context
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
4562
* [prefix.cc](http://prefix.cc)
4663
* 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
4964
* [RDF Data Cube](http://purl.org/linked-data/cube#)
5065
* http://pebbie.org/context/qb
51-
* [CSVW Namespace Vocabulary Terms](https://www.w3.org/TR/tabular-data-model/)
52-
* https://www.w3.org/ns/csvw
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
5391

5492
## Dependencies
55-
* [Ruby](https://ruby-lang.org/) (>= 2.6)
93+
* [Ruby](https://ruby-lang.org/) (>= 3.0)
5694
* [JSON::LD](https://rubygems.org/gems/json-ld) (>= 3.2)
5795

96+
## Change Log
97+
98+
See [Release Notes on GitHub](https://github.com/ruby-rdf/json-ld-preloaded/releases)
99+
58100
## Mailing List
59101
* <https://lists.w3.org/Archives/Public/public-rdf-ruby/>
60102

Rakefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,18 @@ end
2020

2121
CONTEXTS = {
2222
activitystreams: ["http://www.w3.org/ns/activitystreams", "https://www.w3.org/ns/activitystreams"].freeze,
23+
aesKeyWrapping: ["https://w3id.org/security/suites/aes-2019/v1"].freeze,
24+
agever: ["https://w3id.org/age/v1"].freeze,
25+
btStatus: ["https://www.w3.org/ns/credentials/v2"].freeze,
26+
concealedId: ["https://w3id.org/cit/v1"].freeze,
2327
csvw: ["http://www.w3.org/ns/csvw", "https://www.w3.org/ns/csvw"].freeze,
2428
datacube: ["http://pebbie.org/context/qb", "https://pebbie.org/context/qb"].freeze,
29+
dataIntegrityv1: ["https://w3id.org/security/data-integrity/v1"].freeze,
30+
dataIntegrityv2: ["https://w3id.org/security/data-integrity/v2"].freeze,
31+
dcc: ["https://w3id.org/dcc/v1"].freeze,
32+
did: ["https://www.w3.org/ns/did/v1"].freeze,
33+
ed25519sig2018: ["https://w3id.org/security/suites/ed25519-2018/v1"].freeze,
34+
ed25519sig2020: ["https://w3id.org/security/suites/ed25519-2020/v1"].freeze,
2535
entityfacts: [
2636
"http://hub.culturegraph.org/entityfacts/context/v1/entityfacts.jsonld",
2737
"https://hub.culturegraph.org/entityfacts/context/v1/entityfacts.jsonld"
@@ -46,8 +56,16 @@ CONTEXTS = {
4656
"http://schema.org/",
4757
"http://schema.org",
4858
].freeze,
59+
sha256HmacKey: ["https://w3id.org/security/suites/hmac-2019/v1"].freeze,
60+
vaccination: ["https://w3id.org/vaccination/v1"].freeze,
4961
vc: ["http://www.w3.org/2018/credentials/v1", "https://www.w3.org/2018/credentials/v1"].freeze,
62+
vc2: ["https://www.w3.org/ns/credentials/v2"].freeze,
5063
vcard: ["http://www.w3.org/2006/vcard/ns", "https://www.w3.org/2006/vcard/ns"].freeze,
64+
vcRevoc: ["https://w3id.org/vc-revocation-list-2020/v1"].freeze,
65+
ver1: ["https://w3id.org/veres-one/v1"].freeze,
66+
webKMS: ["https://w3id.org/webkms/v1"].freeze,
67+
x25519KeyAgr: ["https://w3id.org/security/suites/x25519-2020/v1"].freeze,
68+
zcap: ["https://w3id.org/zcap/v1"].freeze,
5169
}
5270
desc "Generate Contexts"
5371
task :gen_contexts => CONTEXTS.keys.map {|v| "lib/json/ld/preloaded/#{v}.rb"} do

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.3.0
1+
3.3.1

lib/json/ld/preloaded.rb

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,18 @@ module JSON::LD::Preloaded
66

77
# Require individual context files here
88
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"
913
load "json/ld/preloaded/csvw.rb"
1014
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"
1121
load "json/ld/preloaded/entityfacts.rb"
1222
load "json/ld/preloaded/foaf.rb"
1323
load "json/ld/preloaded/geojson.rb"
@@ -21,5 +31,13 @@ module JSON::LD::Preloaded
2131
load "json/ld/preloaded/rdfa.rb"
2232
load "json/ld/preloaded/research.rb"
2333
load "json/ld/preloaded/schema.rb"
34+
load "json/ld/preloaded/sha256HmacKey.rb"
35+
load "json/ld/preloaded/vaccination.rb"
2436
load "json/ld/preloaded/vc.rb"
37+
load "json/ld/preloaded/vc2.rb"
2538
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"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

lib/json/ld/preloaded/agever.rb

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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 commit comments

Comments
 (0)