ddr-models 2.4.13 → 2.4.14
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89463db1599ed9a7f4707c36efed6b90edc54d43
|
4
|
+
data.tar.gz: ed8918d41b6176c00516bfadcc317593d0466255
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19c5b9b657b4d755822ba5877016095264a6ee4c49751d87013d685571a5bf24d8568c2ebe75624aebfc3275f03fb180aa925451bae862832076a47692df0941
|
7
|
+
data.tar.gz: 499b13e8195943a1d4d9754a2ffe6965b275c14da27c47d9044f842ec9959e913335ee1b7b7b6b85173cf6c81d122728b41892bb1ea8a2b9539b3b592135f629
|
@@ -26,8 +26,11 @@ module Ddr
|
|
26
26
|
vocabularies.each do |vocab|
|
27
27
|
Ddr::Vocab::Vocabulary.property_terms(vocab).each do |term|
|
28
28
|
term_name = Ddr::Vocab::Vocabulary.term_name(vocab, term)
|
29
|
-
|
30
|
-
|
29
|
+
# Do not include :license as a descriptive metadata property
|
30
|
+
unless term_name == :license
|
31
|
+
property term_name, predicate: term do |index|
|
32
|
+
index.as *indexers_for(term_name)
|
33
|
+
end
|
31
34
|
end
|
32
35
|
end
|
33
36
|
end
|
data/lib/ddr/models/version.rb
CHANGED
@@ -24,8 +24,8 @@ module Ddr
|
|
24
24
|
RSpec.describe DescriptiveMetadataDatastream do
|
25
25
|
context "terminology" do
|
26
26
|
subject { described_class.term_names }
|
27
|
-
it "should have a term for each term name in the RDF::DC vocab" do
|
28
|
-
expect(subject).to include(*Ddr::Vocab::Vocabulary.term_names(RDF::DC))
|
27
|
+
it "should have a term for each term name in the RDF::DC vocab except :license" do
|
28
|
+
expect(subject).to include(*Ddr::Vocab::Vocabulary.term_names(RDF::DC)-[:license])
|
29
29
|
end
|
30
30
|
it "should have a term for each term name in the DukeTerms vocab" do
|
31
31
|
expect(subject).to include(*Ddr::Vocab::Vocabulary.term_names(Ddr::Vocab::DukeTerms))
|
@@ -33,8 +33,9 @@ module Ddr
|
|
33
33
|
end
|
34
34
|
context "properties" do
|
35
35
|
subject { described_class.properties.map { |prop| prop[1].predicate } }
|
36
|
-
it "should include all the RDF::DC predicates" do
|
37
|
-
|
36
|
+
it "should include all the RDF::DC predicates except http://purl.org/dc/terms/license" do
|
37
|
+
expected_predicates = Ddr::Vocab::Vocabulary.property_terms(RDF::DC).select { |p| p.to_s != 'http://purl.org/dc/terms/license' }
|
38
|
+
expect(subject).to include(*expected_predicates)
|
38
39
|
end
|
39
40
|
it "should include all the DukeTerms predicates" do
|
40
41
|
expect(subject).to include(*Ddr::Vocab::Vocabulary.property_terms(Ddr::Vocab::DukeTerms))
|