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.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +24 -200
  3. data/README.md +88 -33
  4. data/lib/{rdf-vocab → rdf}/vocab/acl.rb +19 -13
  5. data/lib/{rdf-vocab → rdf}/vocab/bibframe.rb +513 -510
  6. data/lib/rdf/vocab/cnt.rb +112 -0
  7. data/lib/{rdf-vocab → rdf}/vocab/crm.rb +799 -799
  8. data/lib/{rdf-vocab → rdf}/vocab/datacite.rb +53 -53
  9. data/lib/{rdf-vocab → rdf}/vocab/dwc.rb +459 -459
  10. data/lib/{rdf-vocab → rdf}/vocab/edm.rb +41 -41
  11. data/lib/rdf/vocab/extensions.rb +29 -0
  12. data/lib/{rdf-vocab → rdf}/vocab/fcrepo4.rb +38 -38
  13. data/lib/{rdf-vocab → rdf}/vocab/iana.rb +89 -166
  14. data/lib/{rdf-vocab → rdf}/vocab/identifiers.rb +58 -38
  15. data/lib/rdf/vocab/ldp.rb +218 -0
  16. data/lib/{rdf-vocab → rdf}/vocab/mads.rb +147 -147
  17. data/lib/{rdf-vocab → rdf}/vocab/marc_relators.rb +273 -269
  18. data/lib/{rdf-vocab → rdf}/vocab/mods.rb +178 -178
  19. data/lib/{rdf-vocab → rdf}/vocab/oa.rb +102 -102
  20. data/lib/{rdf-vocab → rdf}/vocab/ore.rb +32 -32
  21. data/lib/{rdf-vocab/vocab/premis/v1.rb → rdf/vocab/premis.rb} +147 -147
  22. data/lib/{rdf-vocab → rdf}/vocab/premis_event_type.rb +0 -0
  23. data/lib/rdf/vocab/version.rb +18 -0
  24. data/lib/rdf/vocab.rb +153 -0
  25. data/spec/spec_helper.rb +3 -84
  26. data/spec/vocab_spec.rb +64 -0
  27. metadata +109 -58
  28. data/.gitignore +0 -17
  29. data/.rspec +0 -2
  30. data/.travis.yml +0 -6
  31. data/CONTRIBUTING.md +0 -116
  32. data/CONTRIBUTORS.md +0 -6
  33. data/Gemfile +0 -4
  34. data/Rakefile +0 -8
  35. data/lib/rdf-vocab/config/vocab.yml +0 -109
  36. data/lib/rdf-vocab/tasks/vocab.rake +0 -44
  37. data/lib/rdf-vocab/version.rb +0 -5
  38. data/lib/rdf-vocab/vocab/fcrepo3.rb +0 -326
  39. data/lib/rdf-vocab/vocab/ldp.rb +0 -140
  40. data/lib/rdf-vocab/vocab/prov.rb +0 -1549
  41. data/lib/rdf-vocab.rb +0 -34
  42. data/rdf-vocab.gemspec +0 -26
  43. data/sources/dwcterms.rdf +0 -2679
  44. data/sources/iana-relation.rdf +0 -475
  45. data/sources/iana-relation.xsl +0 -65
  46. data/spec/fixtures/dcterms.rdf +0 -1077
  47. data/spec/unit/rdf_vocab_spec.rb +0 -27
@@ -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