rdf-vocab 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +24 -200
- data/README.md +88 -33
- data/lib/{rdf-vocab → rdf}/vocab/acl.rb +19 -13
- data/lib/{rdf-vocab → rdf}/vocab/bibframe.rb +513 -510
- data/lib/rdf/vocab/cnt.rb +112 -0
- data/lib/{rdf-vocab → rdf}/vocab/crm.rb +799 -799
- data/lib/{rdf-vocab → rdf}/vocab/datacite.rb +53 -53
- data/lib/{rdf-vocab → rdf}/vocab/dwc.rb +459 -459
- data/lib/{rdf-vocab → rdf}/vocab/edm.rb +41 -41
- data/lib/rdf/vocab/extensions.rb +29 -0
- data/lib/{rdf-vocab → rdf}/vocab/fcrepo4.rb +38 -38
- data/lib/{rdf-vocab → rdf}/vocab/iana.rb +89 -166
- data/lib/{rdf-vocab → rdf}/vocab/identifiers.rb +58 -38
- data/lib/rdf/vocab/ldp.rb +218 -0
- data/lib/{rdf-vocab → rdf}/vocab/mads.rb +147 -147
- data/lib/{rdf-vocab → rdf}/vocab/marc_relators.rb +273 -269
- data/lib/{rdf-vocab → rdf}/vocab/mods.rb +178 -178
- data/lib/{rdf-vocab → rdf}/vocab/oa.rb +102 -102
- data/lib/{rdf-vocab → rdf}/vocab/ore.rb +32 -32
- data/lib/{rdf-vocab/vocab/premis/v1.rb → rdf/vocab/premis.rb} +147 -147
- data/lib/{rdf-vocab → rdf}/vocab/premis_event_type.rb +0 -0
- data/lib/rdf/vocab/version.rb +18 -0
- data/lib/rdf/vocab.rb +153 -0
- data/spec/spec_helper.rb +3 -84
- data/spec/vocab_spec.rb +64 -0
- metadata +109 -58
- data/.gitignore +0 -17
- data/.rspec +0 -2
- data/.travis.yml +0 -6
- data/CONTRIBUTING.md +0 -116
- data/CONTRIBUTORS.md +0 -6
- data/Gemfile +0 -4
- data/Rakefile +0 -8
- data/lib/rdf-vocab/config/vocab.yml +0 -109
- data/lib/rdf-vocab/tasks/vocab.rake +0 -44
- data/lib/rdf-vocab/version.rb +0 -5
- data/lib/rdf-vocab/vocab/fcrepo3.rb +0 -326
- data/lib/rdf-vocab/vocab/ldp.rb +0 -140
- data/lib/rdf-vocab/vocab/prov.rb +0 -1549
- data/lib/rdf-vocab.rb +0 -34
- data/rdf-vocab.gemspec +0 -26
- data/sources/dwcterms.rdf +0 -2679
- data/sources/iana-relation.rdf +0 -475
- data/sources/iana-relation.xsl +0 -65
- data/spec/fixtures/dcterms.rdf +0 -1077
- data/spec/unit/rdf_vocab_spec.rb +0 -27
data/spec/unit/rdf_vocab_spec.rb
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
RSpec.describe RDF::Vocab do
|
2
|
-
|
3
|
-
describe ".generate" do
|
4
|
-
let(:source) { File.expand_path("../../fixtures/dcterms.rdf", __FILE__) }
|
5
|
-
before do
|
6
|
-
allow(RDF::Vocab).to receive(:config) do
|
7
|
-
{ "test" => {
|
8
|
-
"class_name" => "Test",
|
9
|
-
"source" => source,
|
10
|
-
"uri" => "http://purl.org/dc/terms/"
|
11
|
-
}
|
12
|
-
}
|
13
|
-
end
|
14
|
-
StringIO.open do |strio|
|
15
|
-
RDF::Vocab.generate("test", strio)
|
16
|
-
strio.rewind
|
17
|
-
eval(strio.read)
|
18
|
-
end
|
19
|
-
end
|
20
|
-
after { RDF::Vocab.send(:remove_const, :Test) }
|
21
|
-
it "should generate the vocabulary based on the config" do
|
22
|
-
expect(RDF::Vocab::Test < ::RDF::StrictVocabulary("http://purl.org/dc/terms/")).to be true
|
23
|
-
expect(RDF::Vocab::Test.creator).to be_a(RDF::Term)
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
|
-
end
|