rdf-vocab 3.1.4 → 3.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +69 -45
  4. data/VERSION +1 -1
  5. data/lib/rdf/vocab.rb +14 -28
  6. data/lib/rdf/vocab/acl.rb +84 -1
  7. data/lib/rdf/vocab/as.rb +466 -1
  8. data/lib/rdf/vocab/bf2.rb +1317 -1
  9. data/lib/rdf/vocab/bibframe.rb +1 -2
  10. data/lib/rdf/vocab/bibo.rb +496 -1
  11. data/lib/rdf/vocab/cc.rb +107 -1
  12. data/lib/rdf/vocab/cert.rb +68 -1
  13. data/lib/rdf/vocab/cnt.rb +79 -1
  14. data/lib/rdf/vocab/crm.rb +1303 -1
  15. data/lib/rdf/vocab/datacite.rb +1 -1
  16. data/lib/rdf/vocab/dbo.rb +10463 -1
  17. data/lib/rdf/vocab/dc.rb +1 -1
  18. data/lib/rdf/vocab/dc11.rb +63 -1
  19. data/lib/rdf/vocab/dcat.rb +152 -4
  20. data/lib/rdf/vocab/dcmitype.rb +1 -1
  21. data/lib/rdf/vocab/disco.rb +228 -1
  22. data/lib/rdf/vocab/doap.rb +175 -1
  23. data/lib/rdf/vocab/dwc.rb +753 -1
  24. data/lib/rdf/vocab/earl.rb +135 -1
  25. data/lib/rdf/vocab/ebucore.rb +7335 -1974
  26. data/lib/rdf/vocab/edm.rb +150 -1
  27. data/lib/rdf/vocab/exif.rb +650 -1
  28. data/lib/rdf/vocab/extensions.rb +253 -203
  29. data/lib/rdf/vocab/fcrepo4.rb +377 -1
  30. data/lib/rdf/vocab/foaf.rb +305 -1
  31. data/lib/rdf/vocab/geo.rb +39 -1
  32. data/lib/rdf/vocab/geojson.rb +66 -1
  33. data/lib/rdf/vocab/geonames.rb +166 -1
  34. data/lib/rdf/vocab/gr.rb +684 -1
  35. data/lib/rdf/vocab/gs1.rb +1597 -1
  36. data/lib/rdf/vocab/ht.rb +164 -1
  37. data/lib/rdf/vocab/hydra.rb +236 -2
  38. data/lib/rdf/vocab/iana.rb +230 -1
  39. data/lib/rdf/vocab/ical.rb +462 -1
  40. data/lib/rdf/vocab/identifiers.rb +462 -1
  41. data/lib/rdf/vocab/iiif.rb +136 -1
  42. data/lib/rdf/vocab/jsonld.rb +135 -1
  43. data/lib/rdf/vocab/ldp.rb +130 -1
  44. data/lib/rdf/vocab/lrmi.rb +1 -1
  45. data/lib/rdf/vocab/ma.rb +381 -1
  46. data/lib/rdf/vocab/mads.rb +600 -22
  47. data/lib/rdf/vocab/{marc_relators.rb → marcrelators.rb} +809 -1
  48. data/lib/rdf/vocab/mo.rb +919 -1
  49. data/lib/rdf/vocab/mods.rb +516 -1
  50. data/lib/rdf/vocab/nfo.rb +1 -1
  51. data/lib/rdf/vocab/oa.rb +275 -1
  52. data/lib/rdf/vocab/og.rb +78 -1
  53. data/lib/rdf/vocab/ogc.rb +34 -1
  54. data/lib/rdf/vocab/ore.rb +56 -1
  55. data/lib/rdf/vocab/org.rb +189 -1
  56. data/lib/rdf/vocab/pcdm.rb +47 -1
  57. data/lib/rdf/vocab/pplan.rb +64 -1
  58. data/lib/rdf/vocab/premis.rb +1266 -779
  59. data/lib/rdf/vocab/{premis_event_type.rb → premiseventtype.rb} +155 -1
  60. data/lib/rdf/vocab/prov.rb +619 -1
  61. data/lib/rdf/vocab/ptr.rb +138 -1
  62. data/lib/rdf/vocab/rightsstatements.rb +5 -1
  63. data/lib/rdf/vocab/rsa.rb +30 -1
  64. data/lib/rdf/vocab/rss.rb +1 -1
  65. data/lib/rdf/vocab/schema.rb +10032 -12
  66. data/lib/rdf/vocab/sd.rb +372 -0
  67. data/lib/rdf/vocab/sh.rb +736 -1
  68. data/lib/rdf/vocab/sioc.rb +401 -1
  69. data/lib/rdf/vocab/{sioc_services.rb → siocservices.rb} +38 -1
  70. data/lib/rdf/vocab/{sioct.rb → sioctypes.rb} +158 -1
  71. data/lib/rdf/vocab/skos.rb +119 -1
  72. data/lib/rdf/vocab/skosxl.rb +30 -1
  73. data/lib/rdf/vocab/v.rb +291 -1
  74. data/lib/rdf/vocab/vcard.rb +508 -1
  75. data/lib/rdf/vocab/vmd.rb +291 -1
  76. data/lib/rdf/vocab/void.rb +121 -1
  77. data/lib/rdf/vocab/vs.rb +19 -1
  78. data/lib/rdf/vocab/wdrs.rb +90 -1
  79. data/lib/rdf/vocab/wot.rb +78 -1
  80. data/lib/rdf/vocab/xhtml.rb +2 -1
  81. data/lib/rdf/vocab/xhv.rb +338 -1
  82. data/lib/rdf/vocab/xkos.rb +150 -1
  83. data/spec/extensions_spec.rb +68 -0
  84. data/spec/vocab_spec.rb +10 -0
  85. metadata +15 -8
@@ -5,9 +5,158 @@ require 'rdf'
5
5
  module RDF::Vocab
6
6
  # @!parse
7
7
  # # Vocabulary for <http://rdf-vocabulary.ddialliance.org/xkos#>
8
+ # #
9
+ # # XKOS: an SKOS extension for representing statistical classifications
10
+ # #
11
+ # # This ontology is based on work initiated at Dagstuhl Schloss in September 2011
12
+ # # @version Version 1.0.3 - 2016-03-15
13
+ # # @version Version 1.1 - 2016-03-20
14
+ # # @version Version 1.0.2 - 2016-03-15
15
+ # # @version Version 1.0.1 - 2014-11-26
8
16
  # class XKOS < RDF::StrictVocabulary
17
+ # # @return [RDF::Vocabulary::Term]
18
+ # attr_reader :ClassificationLevel
19
+ #
20
+ # # @return [RDF::Vocabulary::Term]
21
+ # attr_reader :ConceptAssociation
22
+ #
23
+ # # @return [RDF::Vocabulary::Term]
24
+ # attr_reader :Correspondence
25
+ #
26
+ # # @return [RDF::Vocabulary::Term]
27
+ # attr_reader :ExplanatoryNote
28
+ #
29
+ # # @return [RDF::Vocabulary::Term]
30
+ # attr_reader :additionalContentNote
31
+ #
32
+ # # @return [RDF::Vocabulary::Term]
33
+ # attr_reader :after
34
+ #
35
+ # # @return [RDF::Vocabulary::Term]
36
+ # attr_reader :before
37
+ #
38
+ # # @return [RDF::Vocabulary::Term]
39
+ # attr_reader :belongsTo
40
+ #
41
+ # # @return [RDF::Vocabulary::Term]
42
+ # attr_reader :caseLaw
43
+ #
44
+ # # @return [RDF::Vocabulary::Term]
45
+ # attr_reader :causal
46
+ #
47
+ # # @return [RDF::Vocabulary::Term]
48
+ # attr_reader :causedBy
49
+ #
50
+ # # @return [RDF::Vocabulary::Term]
51
+ # attr_reader :causes
52
+ #
53
+ # # @return [RDF::Vocabulary::Term]
54
+ # attr_reader :classifiedUnder
55
+ #
56
+ # # @return [RDF::Vocabulary::Term]
57
+ # attr_reader :compares
58
+ #
59
+ # # @return [RDF::Vocabulary::Term]
60
+ # attr_reader :coreContentNote
61
+ #
62
+ # # @return [RDF::Vocabulary::Term]
63
+ # attr_reader :covers
64
+ #
65
+ # # @return [RDF::Vocabulary::Term]
66
+ # attr_reader :coversExhaustively
67
+ #
68
+ # # @return [RDF::Vocabulary::Term]
69
+ # attr_reader :coversMutuallyExclusively
70
+ #
71
+ # # @return [RDF::Vocabulary::Term]
72
+ # attr_reader :depth
73
+ #
74
+ # # @return [RDF::Vocabulary::Term]
75
+ # attr_reader :disjoint
76
+ #
77
+ # # @return [RDF::Vocabulary::Term]
78
+ # attr_reader :exclusionNote
79
+ #
80
+ # # @return [RDF::Vocabulary::Term]
81
+ # attr_reader :follows
82
+ #
83
+ # # @return [RDF::Vocabulary::Term]
84
+ # attr_reader :generalizes
85
+ #
86
+ # # @return [RDF::Vocabulary::Term]
87
+ # attr_reader :hasPart
88
+ #
89
+ # # @return [RDF::Vocabulary::Term]
90
+ # attr_reader :inclusionNote
91
+ #
92
+ # # @return [RDF::Vocabulary::Term]
93
+ # attr_reader :isPartOf
94
+ #
95
+ # # @return [RDF::Vocabulary::Term]
96
+ # attr_reader :levels
97
+ #
98
+ # # @return [RDF::Vocabulary::Term]
99
+ # attr_reader :madeOf
100
+ #
101
+ # # @return [RDF::Vocabulary::Term]
102
+ # attr_reader :maxLength
103
+ #
104
+ # # immediate successor in the sequence
105
+ # #
106
+ # # successeur immédiat dans la séquence
107
+ # # @return [RDF::Vocabulary::Term]
108
+ # attr_reader :next
109
+ #
110
+ # # @return [RDF::Vocabulary::Term]
111
+ # attr_reader :notationPattern
112
+ #
113
+ # # @return [RDF::Vocabulary::Term]
114
+ # attr_reader :numberOfLevels
115
+ #
116
+ # # @return [RDF::Vocabulary::Term]
117
+ # attr_reader :organizedBy
118
+ #
119
+ # # This property is expected to store plain text literals, without HTML or XML markup.
120
+ # # @return [RDF::Vocabulary::Term]
121
+ # attr_reader :plainText
122
+ #
123
+ # # predecessor in the sequence
124
+ # # @return [RDF::Vocabulary::Term]
125
+ # attr_reader :precedes
126
+ #
127
+ # # immediate predecessor in the sequence
128
+ # # @return [RDF::Vocabulary::Term]
129
+ # attr_reader :previous
130
+ #
131
+ # # @return [RDF::Vocabulary::Term]
132
+ # attr_reader :sequential
133
+ #
134
+ # # @return [RDF::Vocabulary::Term]
135
+ # attr_reader :sourceConcept
136
+ #
137
+ # # @return [RDF::Vocabulary::Term]
138
+ # attr_reader :specializes
139
+ #
140
+ # # successeur dans la séquence
141
+ # #
142
+ # # successor in the sequence
143
+ # # @return [RDF::Vocabulary::Term]
144
+ # attr_reader :succeeds
145
+ #
146
+ # # @return [RDF::Vocabulary::Term]
147
+ # attr_reader :supersedes
148
+ #
149
+ # # @return [RDF::Vocabulary::Term]
150
+ # attr_reader :targetConcept
151
+ #
152
+ # # @return [RDF::Vocabulary::Term]
153
+ # attr_reader :temporal
154
+ #
155
+ # # @return [RDF::Vocabulary::Term]
156
+ # attr_reader :variant
157
+ #
9
158
  # end
10
- class XKOS < RDF::StrictVocabulary("http://rdf-vocabulary.ddialliance.org/xkos#")
159
+ XKOS = Class.new(RDF::StrictVocabulary("http://rdf-vocabulary.ddialliance.org/xkos#")) do
11
160
 
12
161
  # Ontology definition
13
162
  ontology :"http://rdf-vocabulary.ddialliance.org/xkos#",
@@ -317,6 +317,74 @@ describe RDF::Vocabulary do
317
317
  end
318
318
  end
319
319
 
320
+ describe ".each" do
321
+ it "inumerates pre-defined vocabularies" do
322
+ expect {|b| RDF::Vocabulary.each(&b)}.to yield_control.at_least(30).times
323
+ expect(RDF::Vocabulary.each.to_a).to include(RDF, RDF::RDFS, RDF::OWL)
324
+ end
325
+
326
+ context "with limited vocabularies" do
327
+ before { RDF::Vocabulary.limit_vocabs(:rdfs)}
328
+ after { RDF::Vocabulary.limit_vocabs()}
329
+
330
+ it "inumerates limited vocabularies" do
331
+ expect {|b| RDF::Vocabulary.each(&b)}.to yield_control.exactly(1).times
332
+ expect(RDF::Vocabulary.each.to_a).to include(RDF::RDFS)
333
+ end
334
+ end
335
+ end
336
+
337
+ describe ".vocab_map" do
338
+ it "returns map of vocabularies" do
339
+ expect(RDF::Vocabulary.vocab_map).to have_key(:rdfv)
340
+ expect(RDF::Vocabulary.vocab_map).to have_key(:rdfs)
341
+ expect(RDF::Vocabulary.vocab_map).to have_key(:owl)
342
+ end
343
+ end
344
+
345
+ describe ".from_sym" do
346
+ %w(RDFS OWL XSD).each do |sym|
347
+ it "returns voabulary for #{sym}" do
348
+ expect(RDF::Vocabulary.from_sym(sym)).to respond_to(:find_term)
349
+ end
350
+ end
351
+ end
352
+
353
+ describe ".limit_vocabs" do
354
+ before { RDF::Vocabulary.limit_vocabs(:rdf, :rdfs, :schema)}
355
+ after { RDF::Vocabulary.limit_vocabs()}
356
+
357
+ terms = {
358
+ 'http://www.w3.org/2000/01/rdf-schema#Resource' => RDF::RDFS,
359
+ 'http://www.w3.org/2002/07/owl#Ontology' => nil,
360
+ 'http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement' => RDF::RDFV,
361
+ 'http://schema.org/CreativeWork' => RDF::Vocab::SCHEMA,
362
+ }
363
+ describe ".find_term" do
364
+ terms.each do |term, cls|
365
+ it "#{cls ? 'finds' : 'does not find'} #{term}" do
366
+ if cls
367
+ expect(RDF::Vocabulary.find_term(term)).to be_a(RDF::Vocabulary::Term)
368
+ else
369
+ expect(RDF::Vocabulary.find_term(term)).to be_nil
370
+ end
371
+ end
372
+ end
373
+ end
374
+
375
+ describe ".find" do
376
+ terms.each do |term, cls|
377
+ it "#{cls ? 'finds' : 'does not find'} #{term}" do
378
+ if cls
379
+ expect(RDF::Vocabulary.find(term)).to eql cls
380
+ else
381
+ expect(RDF::Vocabulary.find_term(term)).to be_nil
382
+ end
383
+ end
384
+ end
385
+ end
386
+ end
387
+
320
388
  describe RDF::Vocabulary::Format do
321
389
  describe ".cli_commands", skip: ("Rubinius issues in RDF.rb" if RUBY_ENGINE == "rbx") do
322
390
  require 'rdf/cli'
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
  require File.expand_path("../spec_helper", __FILE__)
3
3
  require 'rdf/reasoner'
4
+ require 'rdf/turtle'
4
5
 
5
6
  describe RDF::Vocab do
6
7
  before(:all) {
@@ -60,6 +61,15 @@ describe RDF::Vocab do
60
61
  end
61
62
  end
62
63
  end
64
+
65
+ context "non standard prefixes" do
66
+ {
67
+ RDF::Vocab::DOAP.blog.range => RDF::Vocab::SiocTypes.Weblog,
68
+ RDF::Vocab::SiocServices.has_service.range => RDF::Vocab::SiocServices.Service,
69
+ }.each do |a, b|
70
+ specify {expect(a).to include(b)}
71
+ end
72
+ end
63
73
  end
64
74
 
65
75
  context "entailments" do
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: 3.1.4
4
+ version: 3.1.5
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: 2020-04-04 00:00:00.000000000 Z
13
+ date: 2020-05-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rdf
@@ -19,6 +19,9 @@ dependencies:
19
19
  - - "~>"
20
20
  - !ruby/object:Gem::Version
21
21
  version: '3.1'
22
+ - - ">="
23
+ - !ruby/object:Gem::Version
24
+ version: 3.1.2
22
25
  type: :runtime
23
26
  prerelease: false
24
27
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,6 +29,9 @@ dependencies:
26
29
  - - "~>"
27
30
  - !ruby/object:Gem::Version
28
31
  version: '3.1'
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: 3.1.2
29
35
  - !ruby/object:Gem::Dependency
30
36
  name: haml
31
37
  requirement: !ruby/object:Gem::Requirement
@@ -289,7 +295,7 @@ files:
289
295
  - lib/rdf/vocab/lrmi.rb
290
296
  - lib/rdf/vocab/ma.rb
291
297
  - lib/rdf/vocab/mads.rb
292
- - lib/rdf/vocab/marc_relators.rb
298
+ - lib/rdf/vocab/marcrelators.rb
293
299
  - lib/rdf/vocab/mo.rb
294
300
  - lib/rdf/vocab/mods.rb
295
301
  - lib/rdf/vocab/nfo.rb
@@ -301,17 +307,18 @@ files:
301
307
  - lib/rdf/vocab/pcdm.rb
302
308
  - lib/rdf/vocab/pplan.rb
303
309
  - lib/rdf/vocab/premis.rb
304
- - lib/rdf/vocab/premis_event_type.rb
310
+ - lib/rdf/vocab/premiseventtype.rb
305
311
  - lib/rdf/vocab/prov.rb
306
312
  - lib/rdf/vocab/ptr.rb
307
313
  - lib/rdf/vocab/rightsstatements.rb
308
314
  - lib/rdf/vocab/rsa.rb
309
315
  - lib/rdf/vocab/rss.rb
310
316
  - lib/rdf/vocab/schema.rb
317
+ - lib/rdf/vocab/sd.rb
311
318
  - lib/rdf/vocab/sh.rb
312
319
  - lib/rdf/vocab/sioc.rb
313
- - lib/rdf/vocab/sioc_services.rb
314
- - lib/rdf/vocab/sioct.rb
320
+ - lib/rdf/vocab/siocservices.rb
321
+ - lib/rdf/vocab/sioctypes.rb
315
322
  - lib/rdf/vocab/skos.rb
316
323
  - lib/rdf/vocab/skosxl.rb
317
324
  - lib/rdf/vocab/v.rb
@@ -329,7 +336,7 @@ files:
329
336
  - spec/matchers.rb
330
337
  - spec/spec_helper.rb
331
338
  - spec/vocab_spec.rb
332
- homepage: http://ruby-rdf.github.com/rdf-vocab
339
+ homepage: https://github.com/ruby-rdf/rdf-vocab
333
340
  licenses:
334
341
  - Unlicense
335
342
  metadata: {}
@@ -348,7 +355,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
348
355
  - !ruby/object:Gem::Version
349
356
  version: '0'
350
357
  requirements: []
351
- rubygems_version: 3.1.2
358
+ rubygems_version: 3.1.3
352
359
  signing_key:
353
360
  specification_version: 4
354
361
  summary: A library of RDF vocabularies