Skip to content

Commit 6bc1e27

Browse files
committed
Finish 3.0.5
2 parents 71dc24f + 42cefe4 commit 6bc1e27

File tree

9 files changed

+176
-24
lines changed

9 files changed

+176
-24
lines changed

Rakefile

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -19,36 +19,36 @@ namespace :gem do
1919
end
2020

2121
CONTEXTS = {
22-
activitystreams: ["http://www.w3.org/ns/activitystreams", "https://www.w3.org/ns/activitystreams"],
23-
csvw: ["http://www.w3.org/ns/csvw", "https://www.w3.org/ns/csvw"],
24-
datacube: ["http://pebbie.org/context/qb", "https://pebbie.org/context/qb"],
22+
activitystreams: ["http://www.w3.org/ns/activitystreams", "https://www.w3.org/ns/activitystreams"].freeze,
23+
csvw: ["http://www.w3.org/ns/csvw", "https://www.w3.org/ns/csvw"].freeze,
24+
datacube: ["http://pebbie.org/context/qb", "https://pebbie.org/context/qb"].freeze,
2525
entityfacts: [
2626
"http://hub.culturegraph.org/entityfacts/context/v1/entityfacts.jsonld",
2727
"https://hub.culturegraph.org/entityfacts/context/v1/entityfacts.jsonld"
28-
],
29-
foaf: ["http://xmlns.com/foaf/context", "https://xmlns.com/foaf/context"],
28+
].freeze,
29+
foaf: ["http://xmlns.com/foaf/context", "https://xmlns.com/foaf/context"].freeze,
3030
geojson: [
3131
"http://geojson.org/geojson-ld/geojson-context.jsonld",
3232
"https://geojson.org/geojson-ld/geojson-context.jsonld"
33-
],
34-
hydra: ["http://www.w3.org/ns/hydra/core", "https://www.w3.org/ns/hydra/core"],
35-
identity: "https://w3id.org/identity/v1",
36-
iiif: ["http://iiif.io/api/image/2/context.json", "https://iiif.io/api/image/2/context.json"],
37-
linkedart: "https://linked.art/ns/v1/linked-art.json",
38-
lov: ["http://lov.okfn.org/dataset/lov/context", "https://lov.okfn.org/dataset/lov/context"],
39-
oa: ["http://www.w3.org/ns/oa", "https://www.w3.org/ns/oa"],
40-
prefix: ["http://prefix.cc/context", "https://prefix.cc/context"],
41-
presentation: ["http://iiif.io/api/presentation/2/context.json", "https://iiif.io/api/presentation/2/context.json"],
42-
rdfa: ["http://www.w3.org/2013/json-ld-context/rdfa11", "https://www.w3.org/2013/json-ld-context/rdfa11"],
43-
research: ["https://w3id.org/bundle/context", "https://w3id.org/bundle/context"],
33+
].freeze,
34+
hydra: ["http://www.w3.org/ns/hydra/core", "https://www.w3.org/ns/hydra/core"].freeze,
35+
identity: ["https://w3id.org/identity/v1", "http://w3id.org/identity/v1"].freeze,
36+
iiif: ["http://iiif.io/api/image/2/context.json", "https://iiif.io/api/image/2/context.json"].freeze,
37+
linkedart: ["http://linked.art/ns/v1/linked-art.json", "https://linked.art/ns/v1/linked-art.json"].freeze,
38+
lov: ["http://lov.okfn.org/dataset/lov/context", "https://lov.okfn.org/dataset/lov/context"].freeze,
39+
oa: ["http://www.w3.org/ns/oa", "https://www.w3.org/ns/oa"].freeze,
40+
prefix: ["http://prefix.cc/context", "https://prefix.cc/context"].freeze,
41+
presentation: ["http://iiif.io/api/presentation/2/context.json", "https://iiif.io/api/presentation/2/context.json"].freeze,
42+
rdfa: ["http://www.w3.org/2013/json-ld-context/rdfa11", "https://www.w3.org/2013/json-ld-context/rdfa11"].freeze,
43+
research: ["https://w3id.org/bundle/context", "https://w3id.org/bundle/context"].freeze,
4444
schema: [
4545
"http://schema.org/",
4646
"https://schema.org/",
4747
"http://schema.org",
4848
"https://schema.org"
49-
],
50-
vc: ["https://www.w3.org/2018/credentials/v1"],
51-
vcard: ["http://www.w3.org/2006/vcard/ns", "https://www.w3.org/2006/vcard/ns"],
49+
].freeze,
50+
vc: ["http://www.w3.org/2018/credentials/v1", "https://www.w3.org/2018/credentials/v1"].freeze,
51+
vcard: ["http://www.w3.org/2006/vcard/ns", "https://www.w3.org/2006/vcard/ns"].freeze,
5252
}
5353
desc "Generate Contexts"
5454
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.0.4
1+
3.0.5

lib/json/ld/preloaded/hydra.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ class JSON::LD::Context
5858
"previous" => TermDefinition.new("previous", id: "http://www.w3.org/ns/hydra/core#previous", type_mapping: "@id"),
5959
"property" => TermDefinition.new("property", id: "http://www.w3.org/ns/hydra/core#property", type_mapping: "@vocab"),
6060
"range" => TermDefinition.new("range", id: "http://www.w3.org/2000/01/rdf-schema#range", type_mapping: "@vocab"),
61+
"rangeIncludes" => TermDefinition.new("rangeIncludes", id: "http://schema.org/rangeIncludes", type_mapping: "@id"),
6162
"rdf" => TermDefinition.new("rdf", id: "http://www.w3.org/1999/02/22-rdf-syntax-ns#", simple: true, prefix: true),
6263
"rdfs" => TermDefinition.new("rdfs", id: "http://www.w3.org/2000/01/rdf-schema#", simple: true, prefix: true),
6364
"readable" => TermDefinition.new("readable", id: "http://www.w3.org/ns/hydra/core#readable", simple: true),

lib/json/ld/preloaded/identity.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,6 @@ class JSON::LD::Context
8282
"writePermission" => TermDefinition.new("writePermission", id: "https://w3id.org/permissions#writePermission", type_mapping: "@id"),
8383
"xsd" => TermDefinition.new("xsd", id: "http://www.w3.org/2001/XMLSchema#", simple: true, prefix: true)
8484
})
85+
alias_preloaded("http://w3id.org/identity/v1", "https://w3id.org/identity/v1")
8586
end
8687
end

lib/json/ld/preloaded/linkedart.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# -*- encoding: utf-8 -*-
22
# frozen_string_literal: true
3-
# This file generated automatically from https://linked.art/ns/v1/linked-art.json
3+
# This file generated automatically from http://linked.art/ns/v1/linked-art.json
44
require 'json/ld'
55
class JSON::LD::Context
6-
add_preloaded("https://linked.art/ns/v1/linked-art.json") do
6+
add_preloaded("http://linked.art/ns/v1/linked-art.json") do
77
new(processingMode: "json-ld-1.1", term_definitions: {
88
"Acquisition" => TermDefinition.new("Acquisition", id: "http://www.cidoc-crm.org/cidoc-crm/E8_Acquisition", context: {"part_of"=>{"@id"=>"crm:P9i_forms_part_of", "@type"=>"@id", "@container"=>"@set"}, "part"=>{"@id"=>"crm:P9_consists_of", "@type"=>"@id", "@container"=>"@set"}}),
99
"Activity" => TermDefinition.new("Activity", id: "http://www.cidoc-crm.org/cidoc-crm/E7_Activity", context: {"part_of"=>{"@id"=>"crm:P9i_forms_part_of", "@type"=>"@id", "@container"=>"@set"}, "part"=>{"@id"=>"crm:P9_consists_of", "@type"=>"@id", "@container"=>"@set"}}),
@@ -433,4 +433,5 @@ class JSON::LD::Context
433433
"xsd" => TermDefinition.new("xsd", id: "http://www.w3.org/2001/XMLSchema#", simple: true, prefix: true)
434434
})
435435
end
436+
alias_preloaded("https://linked.art/ns/v1/linked-art.json", "http://linked.art/ns/v1/linked-art.json")
436437
end

lib/json/ld/preloaded/lov.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ class JSON::LD::Context
188188
"ep" => TermDefinition.new("ep", id: "http://eprints.org/ontology/", simple: true, prefix: true),
189189
"eppl" => TermDefinition.new("eppl", id: "https://w3id.org/ep-plan#", simple: true, prefix: true),
190190
"eqp" => TermDefinition.new("eqp", id: "https://data.nasa.gov/ontologies/atmonto/equipment#", simple: true, prefix: true),
191+
"esco" => TermDefinition.new("esco", id: "http://data.europa.eu/esco/model#", simple: true, prefix: true),
191192
"essglobal" => TermDefinition.new("essglobal", id: "http://purl.org/essglobal/vocab/", simple: true, prefix: true),
192193
"eupont" => TermDefinition.new("eupont", id: "http://elite.polito.it/ontologies/eupont.owl#", simple: true, prefix: true),
193194
"event" => TermDefinition.new("event", id: "http://purl.org/NET/c4dm/event.owl#", simple: true, prefix: true),

0 commit comments

Comments
 (0)