json-ld-preloaded 3.1.3 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -6
- data/VERSION +1 -1
- data/lib/json/ld/preloaded/activitystreams.rb +2 -0
- data/lib/json/ld/preloaded/hydra.rb +9 -0
- data/lib/json/ld/preloaded/linkedart.rb +92 -93
- data/lib/json/ld/preloaded/lov.rb +75 -13
- data/lib/json/ld/preloaded/prefix.rb +289 -42
- data/lib/json/ld/preloaded/schema.rb +271 -61
- data/spec/preloaded_spec.rb +1 -1
- metadata +18 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86e39c849295805b38de9abeec664465ab0434e213c6c0d9bd108d80fdf0e9c5
|
4
|
+
data.tar.gz: 6d09ad39a95da5c46956ba6260172a01e759d1a221265318e19ca975c7e6e545
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5f3a3c0096a572da5a977c0e61439c27d75922d15ab4ed903dbcf36cc6701cb00be2a438509dffbc9c9fc7ccc12ba0a9ce3c54ca46ba54c7f60f6422ff38f88
|
7
|
+
data.tar.gz: c2356c18d6d0d49c323bbb8ef78e51bb095358378486e30d139065cf315f56ffe81daec95c9e6bbf6b1cdcc75658e3730abced7fb3bfd64d29f11d7d33cc8ffe
|
data/README.md
CHANGED
@@ -2,7 +2,9 @@
|
|
2
2
|
JSON-LD with preloaded contexts.
|
3
3
|
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/json-ld-preloaded.png)](https://badge.fury.io/rb/json-ld-preloaded)
|
5
|
-
[![Build Status](https://
|
5
|
+
[![Build Status](https://github.com/ruby-rdf/json-ld-preloaded/workflows/CI/badge.svg?branch=develop)](https://github.com/ruby-rdf/json-ld-preloaded/actions?query=workflow%3ACI)
|
6
|
+
[![Coverage Status](https://coveralls.io/repos/ruby-rdf/json-ld-preloaded/badge.svg?branch=develop)](https://coveralls.io/github/ruby-rdf/json-ld-preloaded?branch=develop)
|
7
|
+
[![Gitter chat](https://badges.gitter.im/ruby-rdf/rdf.png)](https://gitter.im/ruby-rdf/rdf)
|
6
8
|
|
7
9
|
## Features
|
8
10
|
|
@@ -10,8 +12,8 @@ This gem uses the preloading capabilities in `JSON::LD::Context` to create ruby
|
|
10
12
|
|
11
13
|
Contexts are taken from https://github.com/json-ld/json-ld.org/wiki/existing-contexts:
|
12
14
|
|
13
|
-
* [Linked Open Vocabularies (LOV)](
|
14
|
-
* http://lov.
|
15
|
+
* [Linked Open Vocabularies (LOV)](https://lov.linkeddata.es/dataset/lov/)
|
16
|
+
* http://lov.linkeddata.es/dataset/lov/context
|
15
17
|
* [Schema.org](http://schema.org)
|
16
18
|
* http://schema.org (needs content negotiation)
|
17
19
|
* [Hydra](http://www.hydra-cg.com/spec/latest/core/)
|
@@ -50,8 +52,8 @@ Contexts are taken from https://github.com/json-ld/json-ld.org/wiki/existing-con
|
|
50
52
|
* https://www.w3.org/ns/csvw
|
51
53
|
|
52
54
|
## Dependencies
|
53
|
-
* [Ruby](https://ruby-lang.org/) (>= 2.
|
54
|
-
* [JSON::LD](https://rubygems.org/gems/json-ld) (>= 3.
|
55
|
+
* [Ruby](https://ruby-lang.org/) (>= 2.6)
|
56
|
+
* [JSON::LD](https://rubygems.org/gems/json-ld) (>= 3.2)
|
55
57
|
|
56
58
|
## Mailing List
|
57
59
|
* <https://lists.w3.org/Archives/Public/public-rdf-ruby/>
|
@@ -70,7 +72,9 @@ Contexts are taken from https://github.com/json-ld/json-ld.org/wiki/existing-con
|
|
70
72
|
list in the the `README`. Alphabetical order applies.
|
71
73
|
* Do note that in order for us to merge any non-trivial changes (as a rule
|
72
74
|
of thumb, additions larger than about 15 lines of code), we need an
|
73
|
-
explicit [public domain dedication][PDD] on record from you
|
75
|
+
explicit [public domain dedication][PDD] on record from you,
|
76
|
+
which you will be asked to agree to on the first commit to a repo within the organization.
|
77
|
+
Note that the agreement applies to all repos in the [Ruby RDF](https://github.com/ruby-rdf/) organization.
|
74
78
|
|
75
79
|
## License
|
76
80
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.2.0
|
@@ -66,6 +66,7 @@ class JSON::LD::Context
|
|
66
66
|
"View" => TermDefinition.new("View", id: "https://www.w3.org/ns/activitystreams#View", simple: true),
|
67
67
|
"accuracy" => TermDefinition.new("accuracy", id: "https://www.w3.org/ns/activitystreams#accuracy", type_mapping: "http://www.w3.org/2001/XMLSchema#float"),
|
68
68
|
"actor" => TermDefinition.new("actor", id: "https://www.w3.org/ns/activitystreams#actor", type_mapping: "@id"),
|
69
|
+
"alsoKnownAs" => TermDefinition.new("alsoKnownAs", id: "https://www.w3.org/ns/activitystreams#alsoKnownAs", type_mapping: "@id"),
|
69
70
|
"altitude" => TermDefinition.new("altitude", id: "https://www.w3.org/ns/activitystreams#altitude", type_mapping: "http://www.w3.org/2001/XMLSchema#float"),
|
70
71
|
"anyOf" => TermDefinition.new("anyOf", id: "https://www.w3.org/ns/activitystreams#anyOf", type_mapping: "@id"),
|
71
72
|
"as" => TermDefinition.new("as", id: "https://www.w3.org/ns/activitystreams#", simple: true, prefix: true),
|
@@ -149,6 +150,7 @@ class JSON::LD::Context
|
|
149
150
|
"updated" => TermDefinition.new("updated", id: "https://www.w3.org/ns/activitystreams#updated", type_mapping: "http://www.w3.org/2001/XMLSchema#dateTime"),
|
150
151
|
"uploadMedia" => TermDefinition.new("uploadMedia", id: "https://www.w3.org/ns/activitystreams#uploadMedia", type_mapping: "@id"),
|
151
152
|
"url" => TermDefinition.new("url", id: "https://www.w3.org/ns/activitystreams#url", type_mapping: "@id"),
|
153
|
+
"vcard" => TermDefinition.new("vcard", id: "http://www.w3.org/2006/vcard/ns#", simple: true, prefix: true),
|
152
154
|
"width" => TermDefinition.new("width", id: "https://www.w3.org/ns/activitystreams#width", type_mapping: "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"),
|
153
155
|
"xsd" => TermDefinition.new("xsd", id: "http://www.w3.org/2001/XMLSchema#", simple: true, prefix: true)
|
154
156
|
})
|
@@ -11,6 +11,7 @@ class JSON::LD::Context
|
|
11
11
|
"Collection" => TermDefinition.new("Collection", id: "http://www.w3.org/ns/hydra/core#Collection", simple: true),
|
12
12
|
"Error" => TermDefinition.new("Error", id: "http://www.w3.org/ns/hydra/core#Error", simple: true),
|
13
13
|
"ExplicitRepresentation" => TermDefinition.new("ExplicitRepresentation", id: "http://www.w3.org/ns/hydra/core#ExplicitRepresentation", simple: true),
|
14
|
+
"HeaderSpecification" => TermDefinition.new("HeaderSpecification", id: "http://www.w3.org/ns/hydra/core#HeaderSpecification", simple: true),
|
14
15
|
"IriTemplate" => TermDefinition.new("IriTemplate", id: "http://www.w3.org/ns/hydra/core#IriTemplate", simple: true),
|
15
16
|
"IriTemplateMapping" => TermDefinition.new("IriTemplateMapping", id: "http://www.w3.org/ns/hydra/core#IriTemplateMapping", simple: true),
|
16
17
|
"Link" => TermDefinition.new("Link", id: "http://www.w3.org/ns/hydra/core#Link", simple: true),
|
@@ -26,6 +27,7 @@ class JSON::LD::Context
|
|
26
27
|
"cc" => TermDefinition.new("cc", id: "http://creativecommons.org/ns#", simple: true, prefix: true),
|
27
28
|
"cc:attributionURL" => TermDefinition.new("cc:attributionURL", id: "http://creativecommons.org/ns#attributionURL", type_mapping: "@id"),
|
28
29
|
"cc:license" => TermDefinition.new("cc:license", id: "http://creativecommons.org/ns#license", type_mapping: "@id"),
|
30
|
+
"closedSet" => TermDefinition.new("closedSet", id: "http://www.w3.org/ns/hydra/core#possibleValue", type_mapping: "http://www.w3.org/2001/XMLSchema#boolean"),
|
29
31
|
"collection" => TermDefinition.new("collection", id: "http://www.w3.org/ns/hydra/core#collection", simple: true),
|
30
32
|
"comment" => TermDefinition.new("comment", id: "http://www.w3.org/2000/01/rdf-schema#comment", simple: true),
|
31
33
|
"dc" => TermDefinition.new("dc", id: "http://purl.org/dc/terms/", simple: true, prefix: true),
|
@@ -36,16 +38,21 @@ class JSON::LD::Context
|
|
36
38
|
"entrypoint" => TermDefinition.new("entrypoint", id: "http://www.w3.org/ns/hydra/core#entrypoint", type_mapping: "@id"),
|
37
39
|
"expects" => TermDefinition.new("expects", id: "http://www.w3.org/ns/hydra/core#expects", type_mapping: "@vocab"),
|
38
40
|
"expectsHeader" => TermDefinition.new("expectsHeader", id: "http://www.w3.org/ns/hydra/core#expectsHeader", type_mapping: "http://www.w3.org/2001/XMLSchema#string"),
|
41
|
+
"extension" => TermDefinition.new("extension", id: "http://www.w3.org/ns/hydra/core#extension", type_mapping: "@id"),
|
39
42
|
"first" => TermDefinition.new("first", id: "http://www.w3.org/ns/hydra/core#first", type_mapping: "@id"),
|
40
43
|
"freetextQuery" => TermDefinition.new("freetextQuery", id: "http://www.w3.org/ns/hydra/core#freetextQuery", simple: true),
|
44
|
+
"headerName" => TermDefinition.new("headerName", id: "http://www.w3.org/ns/hydra/core#headerName", simple: true),
|
41
45
|
"hydra" => TermDefinition.new("hydra", id: "http://www.w3.org/ns/hydra/core#", simple: true, prefix: true),
|
46
|
+
"isDefinedBy" => TermDefinition.new("isDefinedBy", id: "http://www.w3.org/2000/01/rdf-schema#isDefinedBy", type_mapping: "@id"),
|
42
47
|
"label" => TermDefinition.new("label", id: "http://www.w3.org/2000/01/rdf-schema#label", simple: true),
|
43
48
|
"last" => TermDefinition.new("last", id: "http://www.w3.org/ns/hydra/core#last", type_mapping: "@id"),
|
44
49
|
"limit" => TermDefinition.new("limit", id: "http://www.w3.org/ns/hydra/core#limit", type_mapping: "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"),
|
45
50
|
"manages" => TermDefinition.new("manages", id: "http://www.w3.org/ns/hydra/core#manages", simple: true),
|
46
51
|
"mapping" => TermDefinition.new("mapping", id: "http://www.w3.org/ns/hydra/core#mapping", simple: true),
|
47
52
|
"member" => TermDefinition.new("member", id: "http://www.w3.org/ns/hydra/core#member", type_mapping: "@id"),
|
53
|
+
"memberAssertion" => TermDefinition.new("memberAssertion", id: "http://www.w3.org/ns/hydra/core#memberAssertion", simple: true),
|
48
54
|
"method" => TermDefinition.new("method", id: "http://www.w3.org/ns/hydra/core#method", simple: true),
|
55
|
+
"name" => TermDefinition.new("name", id: "http://www.w3.org/ns/hydra/core#name", type_mapping: "http://www.w3.org/2001/XMLSchema#string"),
|
49
56
|
"next" => TermDefinition.new("next", id: "http://www.w3.org/ns/hydra/core#next", type_mapping: "@id"),
|
50
57
|
"object" => TermDefinition.new("object", id: "http://www.w3.org/ns/hydra/core#object", type_mapping: "@vocab"),
|
51
58
|
"offset" => TermDefinition.new("offset", id: "http://www.w3.org/ns/hydra/core#offset", type_mapping: "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"),
|
@@ -54,6 +61,7 @@ class JSON::LD::Context
|
|
54
61
|
"pageIndex" => TermDefinition.new("pageIndex", id: "http://www.w3.org/ns/hydra/core#pageIndex", type_mapping: "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"),
|
55
62
|
"pageReference" => TermDefinition.new("pageReference", id: "http://www.w3.org/ns/hydra/core#pageReference"),
|
56
63
|
"possibleStatus" => TermDefinition.new("possibleStatus", id: "http://www.w3.org/ns/hydra/core#possibleStatus", type_mapping: "@id"),
|
64
|
+
"possibleValue" => TermDefinition.new("possibleValue", id: "http://www.w3.org/ns/hydra/core#possibleValue", simple: true),
|
57
65
|
"preferredPrefix" => TermDefinition.new("preferredPrefix", id: "http://purl.org/vocab/vann/preferredNamespacePrefix", simple: true),
|
58
66
|
"previous" => TermDefinition.new("previous", id: "http://www.w3.org/ns/hydra/core#previous", type_mapping: "@id"),
|
59
67
|
"property" => TermDefinition.new("property", id: "http://www.w3.org/ns/hydra/core#property", type_mapping: "@vocab"),
|
@@ -82,6 +90,7 @@ class JSON::LD::Context
|
|
82
90
|
"variableRepresentation" => TermDefinition.new("variableRepresentation", id: "http://www.w3.org/ns/hydra/core#variableRepresentation", type_mapping: "@vocab"),
|
83
91
|
"view" => TermDefinition.new("view", id: "http://www.w3.org/ns/hydra/core#view", type_mapping: "@id"),
|
84
92
|
"vs" => TermDefinition.new("vs", id: "http://www.w3.org/2003/06/sw-vocab-status/ns#", simple: true, prefix: true),
|
93
|
+
"writable" => TermDefinition.new("writable", id: "http://www.w3.org/ns/hydra/core#writable", simple: true),
|
85
94
|
"writeable" => TermDefinition.new("writeable", id: "http://www.w3.org/ns/hydra/core#writeable", simple: true),
|
86
95
|
"xsd" => TermDefinition.new("xsd", id: "http://www.w3.org/2001/XMLSchema#", simple: true, prefix: true)
|
87
96
|
})
|