rdf-vocab 3.1.1 → 3.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +69 -45
- data/VERSION +1 -1
- data/lib/rdf/vocab.rb +55 -39
- data/lib/rdf/vocab/acl.rb +84 -1
- data/lib/rdf/vocab/as.rb +466 -1
- data/lib/rdf/vocab/bf2.rb +1317 -1
- data/lib/rdf/vocab/bibframe.rb +1 -2
- data/lib/rdf/vocab/bibo.rb +496 -1
- data/lib/rdf/vocab/cc.rb +107 -1
- data/lib/rdf/vocab/cert.rb +68 -1
- data/lib/rdf/vocab/cnt.rb +79 -1
- data/lib/rdf/vocab/crm.rb +1303 -1
- data/lib/rdf/vocab/datacite.rb +1 -1
- data/lib/rdf/vocab/dbo.rb +10463 -1
- data/lib/rdf/vocab/dc.rb +470 -301
- data/lib/rdf/vocab/dc11.rb +88 -57
- data/lib/rdf/vocab/dcat.rb +153 -5
- data/lib/rdf/vocab/dcmitype.rb +51 -25
- data/lib/rdf/vocab/disco.rb +228 -1
- data/lib/rdf/vocab/doap.rb +175 -1
- data/lib/rdf/vocab/dwc.rb +753 -1
- data/lib/rdf/vocab/earl.rb +324 -0
- data/lib/rdf/vocab/ebucore.rb +7335 -1974
- data/lib/rdf/vocab/edm.rb +150 -1
- data/lib/rdf/vocab/exif.rb +650 -1
- data/lib/rdf/vocab/extensions.rb +265 -212
- data/lib/rdf/vocab/fcrepo4.rb +377 -1
- data/lib/rdf/vocab/foaf.rb +305 -1
- data/lib/rdf/vocab/geo.rb +39 -1
- data/lib/rdf/vocab/geojson.rb +66 -1
- data/lib/rdf/vocab/geonames.rb +166 -1
- data/lib/rdf/vocab/gr.rb +684 -1
- data/lib/rdf/vocab/gs1.rb +1597 -1
- data/lib/rdf/vocab/ht.rb +164 -1
- data/lib/rdf/vocab/hydra.rb +238 -4
- data/lib/rdf/vocab/iana.rb +230 -1
- data/lib/rdf/vocab/ical.rb +462 -1
- data/lib/rdf/vocab/identifiers.rb +462 -1
- data/lib/rdf/vocab/iiif.rb +136 -1
- data/lib/rdf/vocab/jsonld.rb +147 -3
- data/lib/rdf/vocab/ldp.rb +130 -1
- data/lib/rdf/vocab/lrmi.rb +69 -1
- data/lib/rdf/vocab/ma.rb +381 -1
- data/lib/rdf/vocab/mads.rb +610 -22
- data/lib/rdf/vocab/{marc_relators.rb → marcrelators.rb} +809 -1
- data/lib/rdf/vocab/mo.rb +919 -1
- data/lib/rdf/vocab/mods.rb +516 -1
- data/lib/rdf/vocab/nfo.rb +1 -1
- data/lib/rdf/vocab/oa.rb +275 -1
- data/lib/rdf/vocab/og.rb +100 -1
- data/lib/rdf/vocab/ogc.rb +34 -1
- data/lib/rdf/vocab/ore.rb +56 -1
- data/lib/rdf/vocab/org.rb +189 -1
- data/lib/rdf/vocab/pcdm.rb +47 -1
- data/lib/rdf/vocab/pplan.rb +64 -1
- data/lib/rdf/vocab/premis.rb +1266 -779
- data/lib/rdf/vocab/{premis_event_type.rb → premiseventtype.rb} +155 -1
- data/lib/rdf/vocab/prov.rb +619 -1
- data/lib/rdf/vocab/ptr.rb +138 -1
- data/lib/rdf/vocab/rightsstatements.rb +5 -1
- data/lib/rdf/vocab/rsa.rb +30 -1
- data/lib/rdf/vocab/rss.rb +42 -1
- data/lib/rdf/vocab/schema.rb +12470 -804
- data/lib/rdf/vocab/sd.rb +372 -0
- data/lib/rdf/vocab/sh.rb +736 -1
- data/lib/rdf/vocab/sioc.rb +401 -1
- data/lib/rdf/vocab/{sioc_services.rb → siocservices.rb} +38 -1
- data/lib/rdf/vocab/{sioct.rb → sioctypes.rb} +158 -1
- data/lib/rdf/vocab/skos.rb +119 -1
- data/lib/rdf/vocab/skosxl.rb +30 -1
- data/lib/rdf/vocab/v.rb +291 -1
- data/lib/rdf/vocab/vcard.rb +508 -1
- data/lib/rdf/vocab/vmd.rb +291 -1
- data/lib/rdf/vocab/void.rb +121 -1
- data/lib/rdf/vocab/vs.rb +19 -1
- data/lib/rdf/vocab/wdrs.rb +90 -1
- data/lib/rdf/vocab/wot.rb +78 -1
- data/lib/rdf/vocab/xhtml.rb +2 -1
- data/lib/rdf/vocab/xhv.rb +338 -1
- data/lib/rdf/vocab/xkos.rb +150 -1
- data/spec/extensions_spec.rb +68 -0
- data/spec/vocab_spec.rb +10 -0
- metadata +16 -8
data/lib/rdf/vocab/xkos.rb
CHANGED
@@ -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.2 - 2016-03-15
|
13
|
+
# # @version Version 1.1 - 2016-03-20
|
14
|
+
# # @version Version 1.0.1 - 2014-11-26
|
15
|
+
# # @version Version 1.0.3 - 2016-03-15
|
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
|
+
# # successeur immédiat dans la séquence
|
105
|
+
# #
|
106
|
+
# # immediate successor in the sequence
|
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
|
-
|
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#",
|
data/spec/extensions_spec.rb
CHANGED
@@ -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'
|
data/spec/vocab_spec.rb
CHANGED
@@ -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
|
+
version: 3.1.7
|
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-
|
13
|
+
date: 2020-07-10 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
|
@@ -266,6 +272,7 @@ files:
|
|
266
272
|
- lib/rdf/vocab/disco.rb
|
267
273
|
- lib/rdf/vocab/doap.rb
|
268
274
|
- lib/rdf/vocab/dwc.rb
|
275
|
+
- lib/rdf/vocab/earl.rb
|
269
276
|
- lib/rdf/vocab/ebucore.rb
|
270
277
|
- lib/rdf/vocab/edm.rb
|
271
278
|
- lib/rdf/vocab/exif.rb
|
@@ -288,7 +295,7 @@ files:
|
|
288
295
|
- lib/rdf/vocab/lrmi.rb
|
289
296
|
- lib/rdf/vocab/ma.rb
|
290
297
|
- lib/rdf/vocab/mads.rb
|
291
|
-
- lib/rdf/vocab/
|
298
|
+
- lib/rdf/vocab/marcrelators.rb
|
292
299
|
- lib/rdf/vocab/mo.rb
|
293
300
|
- lib/rdf/vocab/mods.rb
|
294
301
|
- lib/rdf/vocab/nfo.rb
|
@@ -300,17 +307,18 @@ files:
|
|
300
307
|
- lib/rdf/vocab/pcdm.rb
|
301
308
|
- lib/rdf/vocab/pplan.rb
|
302
309
|
- lib/rdf/vocab/premis.rb
|
303
|
-
- lib/rdf/vocab/
|
310
|
+
- lib/rdf/vocab/premiseventtype.rb
|
304
311
|
- lib/rdf/vocab/prov.rb
|
305
312
|
- lib/rdf/vocab/ptr.rb
|
306
313
|
- lib/rdf/vocab/rightsstatements.rb
|
307
314
|
- lib/rdf/vocab/rsa.rb
|
308
315
|
- lib/rdf/vocab/rss.rb
|
309
316
|
- lib/rdf/vocab/schema.rb
|
317
|
+
- lib/rdf/vocab/sd.rb
|
310
318
|
- lib/rdf/vocab/sh.rb
|
311
319
|
- lib/rdf/vocab/sioc.rb
|
312
|
-
- lib/rdf/vocab/
|
313
|
-
- lib/rdf/vocab/
|
320
|
+
- lib/rdf/vocab/siocservices.rb
|
321
|
+
- lib/rdf/vocab/sioctypes.rb
|
314
322
|
- lib/rdf/vocab/skos.rb
|
315
323
|
- lib/rdf/vocab/skosxl.rb
|
316
324
|
- lib/rdf/vocab/v.rb
|
@@ -328,7 +336,7 @@ files:
|
|
328
336
|
- spec/matchers.rb
|
329
337
|
- spec/spec_helper.rb
|
330
338
|
- spec/vocab_spec.rb
|
331
|
-
homepage:
|
339
|
+
homepage: https://github.com/ruby-rdf/rdf-vocab
|
332
340
|
licenses:
|
333
341
|
- Unlicense
|
334
342
|
metadata: {}
|
@@ -347,7 +355,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
347
355
|
- !ruby/object:Gem::Version
|
348
356
|
version: '0'
|
349
357
|
requirements: []
|
350
|
-
rubygems_version: 3.
|
358
|
+
rubygems_version: 3.1.3
|
351
359
|
signing_key:
|
352
360
|
specification_version: 4
|
353
361
|
summary: A library of RDF vocabularies
|