@@ -19,36 +19,36 @@ namespace :gem do
19
19
end
20
20
21
21
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 ,
25
25
entityfacts : [
26
26
"http://hub.culturegraph.org/entityfacts/context/v1/entityfacts.jsonld" ,
27
27
"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 ,
30
30
geojson : [
31
31
"http://geojson.org/geojson-ld/geojson-context.jsonld" ,
32
32
"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 ,
44
44
schema : [
45
45
"http://schema.org/" ,
46
46
"https://schema.org/" ,
47
47
"http://schema.org" ,
48
48
"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 ,
52
52
}
53
53
desc "Generate Contexts"
54
54
task :gen_contexts => CONTEXTS . keys . map { |v | "lib/json/ld/preloaded/#{ v } .rb" } do
0 commit comments