dpla-map 4.0.0.0.pre.10 → 4.0.0.0.pre.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -2
- data/lib/dpla/map/controlled/language.rb +3 -3
- data/lib/dpla/map/version.rb +1 -1
- data/spec/lib/dpla_spec.rb +15 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1a9b43fd14e8d0e12b60b293c75112589dcd6fe
|
4
|
+
data.tar.gz: 7254051109b36fd179f8df23d896d60298429b6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6fe5fd84b8d22e9ed3936a4c04a5ec2e6e9e2011a63f14fb0eaa36417bfc9ebab288f1814fe28c39f7246bbe156898ab7c5aa212499dca5974ed83d67511c182
|
7
|
+
data.tar.gz: 9abefaa90b57c69876d42c6d0699c72b53c43be7eecc711df25f7546be254ddb7cfd41e934f50cbeb6edcab0889211bf7d0d07cbe33e0f251d290d0f6d07ad00
|
data/.gitignore
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
Gemfile.lock
|
2
|
-
*.gem
|
1
|
+
Gemfile.lock
|
@@ -3,11 +3,11 @@ module DPLA::MAP
|
|
3
3
|
class Language < DPLA::MAP::Concept
|
4
4
|
include LinkedVocabs::Controlled
|
5
5
|
|
6
|
-
configure :base_uri => "http://lexvo.org/id/iso639-3/",
|
6
|
+
configure :base_uri => "http://lexvo.org/id/iso639-3/",
|
7
|
+
:rdf_label => RDF::SKOS.prefLabel,
|
8
|
+
:type => RDF::DC.LinguisticSystem
|
7
9
|
|
8
10
|
use_vocabulary :iso_639_3
|
9
|
-
|
10
|
-
property :prefLabel, :predicate => RDF::SKOS.prefLabel
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
data/lib/dpla/map/version.rb
CHANGED
data/spec/lib/dpla_spec.rb
CHANGED
@@ -8,5 +8,19 @@ describe DPLA::MAP::SourceResource do
|
|
8
8
|
expect(subject.type).to eq [RDF::URI('http://dp.la/about/map/SourceResource')]
|
9
9
|
end
|
10
10
|
|
11
|
-
|
11
|
+
it 'has an edm:hasType that is a DPLA::MAP::Controlled::Genre' do
|
12
|
+
expect(subject.genre).to contain_exactly(an_instance_of(DPLA::MAP::Controlled::Genre))
|
13
|
+
end
|
14
|
+
|
15
|
+
it 'has a dcterms:language that is a DPLA::MAP::Controlled::Language' do
|
16
|
+
expect(subject.language).to contain_exactly(an_instance_of(DPLA::MAP::Controlled::Language))
|
17
|
+
end
|
12
18
|
|
19
|
+
it 'has a dcterms:subject that is a DPLA::MAP::Concept' do
|
20
|
+
expect(subject.subject).to contain_exactly(an_instance_of(DPLA::MAP::Concept))
|
21
|
+
end
|
22
|
+
|
23
|
+
it 'has a dcterms:type that is a DPLA::MAP::Controlled::DCMIType' do
|
24
|
+
expect(subject.dctype).to contain_exactly(an_instance_of(DPLA::MAP::Controlled::DCMIType))
|
25
|
+
end
|
26
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dpla-map
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.0.0.pre.
|
4
|
+
version: 4.0.0.0.pre.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Johnson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active-triples
|