json-ld-preloaded 3.1.6 → 3.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/VERSION +1 -1
- data/lib/json/ld/preloaded/entityfacts.rb +7 -0
- data/lib/json/ld/preloaded/linkedart.rb +79 -85
- data/lib/json/ld/preloaded/lov.rb +36 -4
- data/lib/json/ld/preloaded/prefix.rb +152 -33
- data/lib/json/ld/preloaded/schema.rb +48 -0
- data/spec/preloaded_spec.rb +1 -1
- metadata +14 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 412addec11bd2e9d00ba298a9fa53022d1ac78bfb734f423bdf5603b4c6d9e8e
|
4
|
+
data.tar.gz: 31d88e19f2f69ddfe32cdc8ee43ea6411bf65dac3623111292ff068a131d4e17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 826b7298868cc1e122f3d04d212d43176612f779e5bca85f0b60e279db44d16387fdfd66139c7199d4d81307ab599f171f68022148d641355c01e5d62505b9b5
|
7
|
+
data.tar.gz: cdcca417aa30439492af981363f9e274cdcb36722ee00830e735ac5caf15e41e1c5b4fb10bc9da1f34532835965801554706ae3ec8bde5984ce77146d8e800d2
|
data/README.md
CHANGED
@@ -12,8 +12,8 @@ This gem uses the preloading capabilities in `JSON::LD::Context` to create ruby
|
|
12
12
|
|
13
13
|
Contexts are taken from https://github.com/json-ld/json-ld.org/wiki/existing-contexts:
|
14
14
|
|
15
|
-
* [Linked Open Vocabularies (LOV)](
|
16
|
-
* http://lov.
|
15
|
+
* [Linked Open Vocabularies (LOV)](https://lov.linkeddata.es/dataset/lov/)
|
16
|
+
* http://lov.linkeddata.es/dataset/lov/context
|
17
17
|
* [Schema.org](http://schema.org)
|
18
18
|
* http://schema.org (needs content negotiation)
|
19
19
|
* [Hydra](http://www.hydra-cg.com/spec/latest/core/)
|
@@ -52,8 +52,8 @@ Contexts are taken from https://github.com/json-ld/json-ld.org/wiki/existing-con
|
|
52
52
|
* https://www.w3.org/ns/csvw
|
53
53
|
|
54
54
|
## Dependencies
|
55
|
-
* [Ruby](https://ruby-lang.org/) (>= 2.
|
56
|
-
* [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)
|
57
57
|
|
58
58
|
## Mailing List
|
59
59
|
* <https://lists.w3.org/Archives/Public/public-rdf-ruby/>
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.1
|
1
|
+
3.2.1
|
@@ -14,9 +14,13 @@ class JSON::LD::Context
|
|
14
14
|
"associatedCountry" => TermDefinition.new("associatedCountry", id: "https://d-nb.info/standards/elementset/gnd#geographicAreaCode", type_mapping: "@id"),
|
15
15
|
"associatedDate" => TermDefinition.new("associatedDate", id: "https://d-nb.info/standards/elementset/gnd#associatedDate", simple: true),
|
16
16
|
"associatedPlace" => TermDefinition.new("associatedPlace", id: "https://d-nb.info/standards/elementset/gnd#associatedPlace", simple: true),
|
17
|
+
"attributionRequired" => TermDefinition.new("attributionRequired", id: "https://d-nb.info/standards/elementset/dnb#attributionRequired", simple: true),
|
17
18
|
"biographicalOrHistoricalInformation" => TermDefinition.new("biographicalOrHistoricalInformation", id: "https://d-nb.info/standards/elementset/gnd#biographicalOrHistoricalInformation", language_mapping: "de"),
|
18
19
|
"collection" => TermDefinition.new("collection", id: "https://d-nb.info/standards/elementset/dnb#isDescribedIn", simple: true),
|
19
20
|
"coordinates" => TermDefinition.new("coordinates", id: "https://purl.org/geojson/vocab#coordinates", container_mapping: "@list"),
|
21
|
+
"copyrighted" => TermDefinition.new("copyrighted", id: "https://d-nb.info/standards/elementset/dnb#copyrighted", simple: true),
|
22
|
+
"creator" => TermDefinition.new("creator", id: "http://purl.org/dc/elements/1.1/creator", simple: true),
|
23
|
+
"creditText" => TermDefinition.new("creditText", id: "https://schema.org/creditText", simple: true),
|
20
24
|
"dateOfBirth" => TermDefinition.new("dateOfBirth", id: "https://d-nb.info/standards/elementset/gnd#dateOfBirth", simple: true),
|
21
25
|
"dateOfBirthAndDeath" => TermDefinition.new("dateOfBirthAndDeath", id: "https://d-nb.info/standards/elementset/gnd#dateOfBirthAndDeath", simple: true),
|
22
26
|
"dateOfDeath" => TermDefinition.new("dateOfDeath", id: "https://d-nb.info/standards/elementset/gnd#dateOfDeath", simple: true),
|
@@ -27,6 +31,7 @@ class JSON::LD::Context
|
|
27
31
|
"dateOfTermination" => TermDefinition.new("dateOfTermination", id: "https://d-nb.info/standards/elementset/gnd#dateOfTermination", simple: true),
|
28
32
|
"depiction" => TermDefinition.new("depiction", id: "http://xmlns.com/foaf/0.1/depiction", simple: true),
|
29
33
|
"describedBy" => TermDefinition.new("describedBy", id: "http://www.w3.org/2007/05/powder-s#describedby", simple: true),
|
34
|
+
"description" => TermDefinition.new("description", id: "http://purl.org/dc/terms/description", simple: true),
|
30
35
|
"event" => TermDefinition.new("event", id: "https://d-nb.info/standards/elementset/gnd#ConferenceOrEvent", simple: true),
|
31
36
|
"familialRelationship" => TermDefinition.new("familialRelationship", id: "https://d-nb.info/standards/elementset/gnd#familialRelationship", simple: true),
|
32
37
|
"family" => TermDefinition.new("family", id: "https://d-nb.info/standards/elementset/gnd#Family", simple: true),
|
@@ -65,11 +70,13 @@ class JSON::LD::Context
|
|
65
70
|
"relatedOrganisation" => TermDefinition.new("relatedOrganisation", id: "https://d-nb.info/standards/elementset/gnd#relatedCorporateBody", simple: true),
|
66
71
|
"relatedPerson" => TermDefinition.new("relatedPerson", id: "https://d-nb.info/standards/elementset/gnd#relatedPerson", type_mapping: "https://d-nb.info/standards/elementset/gnd#Person"),
|
67
72
|
"relatedSubject" => TermDefinition.new("relatedSubject", id: "https://d-nb.info/standards/elementset/gnd#relatedSubjectHeading", type_mapping: "https://d-nb.info/standards/elementset/gnd#SubjectHeading"),
|
73
|
+
"restrictions" => TermDefinition.new("restrictions", id: "http://rdaregistry.info/Elements/u/P60497", simple: true),
|
68
74
|
"sameAs" => TermDefinition.new("sameAs", id: "http://schema.org/sameAs", simple: true),
|
69
75
|
"subject" => TermDefinition.new("subject", id: "https://d-nb.info/standards/elementset/gnd#SubjectHeading", simple: true),
|
70
76
|
"successor" => TermDefinition.new("successor", id: "https://d-nb.info/standards/elementset/gnd#successor", simple: true),
|
71
77
|
"surname" => TermDefinition.new("surname", id: "https://d-nb.info/standards/elementset/gnd#surname", simple: true),
|
72
78
|
"thumbnail" => TermDefinition.new("thumbnail", id: "http://xmlns.com/foaf/0.1/thumbnail", simple: true),
|
79
|
+
"title" => TermDefinition.new("title", id: "http://purl.org/dc/terms/title", simple: true),
|
73
80
|
"titleOfNobility" => TermDefinition.new("titleOfNobility", id: "https://d-nb.info/standards/elementset/gnd#titleOfNobility", language_mapping: "de"),
|
74
81
|
"topic" => TermDefinition.new("topic", id: "https://d-nb.info/standards/elementset/gnd#topic", simple: true),
|
75
82
|
"type" => TermDefinition.new("type", id: "@type", simple: true),
|