rdf-vocab 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/rdf/vocab.rb CHANGED
@@ -150,7 +150,7 @@ module RDF
150
150
  ical: {uri: "http://www.w3.org/2002/12/cal/icaltzd#"},
151
151
  identifiers: {
152
152
  uri: "http://id.loc.gov/vocabulary/identifiers/",
153
- source: "http://id.loc.gov/vocabulary/identifiers.rdf",
153
+ source: "http://id.loc.gov/vocabulary/identifiers",
154
154
  class_name: "Identifiers",
155
155
  extra: {
156
156
  id: {
@@ -267,7 +267,7 @@ module RDF
267
267
  }
268
268
  },
269
269
  rss: {uri: "http://purl.org/rss/1.0/", source: "http://purl.org/rss/1.0/schema.rdf"},
270
- schema: {uri: "http://schema.org/", source: "http://schema.org/docs/schema_org_rdfa.html"},
270
+ schema: {uri: "http://schema.org/", source: "https://raw.githubusercontent.com/schemaorg/schemaorg/sdo-makemake/data/releases/3.0/all-layers.nq"},
271
271
  sioc: {uri: "http://rdfs.org/sioc/ns#"},
272
272
  sioc_services: {
273
273
  uri: "http://rdfs.org/sioc/services#",
data/spec/vocab_spec.rb CHANGED
@@ -9,6 +9,14 @@ describe RDF::Vocab do
9
9
  end
10
10
  end
11
11
 
12
+ context "schema.org" do
13
+ %w(domainIncludes rangeIncludes inverseOf).each do |prop|
14
+ it "defines schema:#{prop}" do
15
+ expect {RDF::Vocab::SCHEMA[prop]}.not_to raise_error
16
+ end
17
+ end
18
+ end
19
+
12
20
  context "pre-defined vocabularies" do
13
21
  RDF::Vocab::VOCABS.each do |id, params|
14
22
  class_name = params.fetch(:class_name, id.to_s.upcase).to_sym
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-vocab
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Chandek-Stark
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-05-02 00:00:00.000000000 Z
13
+ date: 2016-06-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rdf