rdf-iiif 0.0.2 → 0.1.0

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: a914b7ef76f38431cd37a9bcb0b1027b03f8b147
4
- data.tar.gz: 9111bd563d6a50491bbbf29a3a3fb9a4d24cd737
3
+ metadata.gz: 11693272218f2866ae3907dd71a067e5b76a13c7
4
+ data.tar.gz: 72ccd034edd9ba35fa3d2e6ddde4f6433524475f
5
5
  SHA512:
6
- metadata.gz: e020b6b7b805498f6ecf3c1463c77557a0143a34e93bbc63f23eeff929fa9cd5e3f09350371d204277b5a967f076ef9f77fdb6994a5cab1b1f86953fb54acb26
7
- data.tar.gz: cd2e60f5544cc67db6ab091620dc36fcdc77d380d29dfc3da7eca0bebc23d5e5277fd03646765d140b091ec38b426cebbcc6a255f773918d23cc9aeb8bce760f
6
+ metadata.gz: 048265be2669d5627054b2fdc9e15367bd96fc52641e71e1325217aed59fdc01dc0e2926036b7faeb63d77756c353be7961f9f851d9817a4b059c5ab79d116a2
7
+ data.tar.gz: ab4d480eaf03e1ff84e10953579273f0488de432782c628cd092ca838b2bafa707ef288c3f3e469482ea6928fd92081d842798303757f5d26beb0cc826964776
data/README.md CHANGED
@@ -1,3 +1,7 @@
1
+ # DEPRECATED - use rdf-vocab
2
+
3
+ This gem is deprecated; rdf-vocab gem (https://github.com/ruby-rdf/rdf-vocab, included in the linkeddata gem) now contains RDF::Vocab::IIIF and RDF::Vocab::SiocServices.
4
+
1
5
  # rdf-iiif
2
6
 
3
7
  [![Dependency Status](https://gemnasium.com/sul-dlss/rdf-iiif.svg)](https://gemnasium.com/sul-dlss/rdf-iiif) [![Gem Version](https://badge.fury.io/rb/rdf-iiif.svg)](http://badge.fury.io/rb/rdf-iiif)
@@ -9,7 +13,7 @@ Contains vocabularies to be used by RDF ruby gem https://github.com/ruby-rdf/rdf
9
13
  Add this line to your application's Gemfile:
10
14
 
11
15
  ```ruby
12
- gem 'rdf-iiif'
16
+ gem 'rdf-vocab' # (was rdf-iiif)
13
17
  ```
14
18
 
15
19
  And then execute:
@@ -18,19 +22,15 @@ And then execute:
18
22
 
19
23
  Or install it yourself as:
20
24
 
21
- $ gem install rdf-iiif
25
+ $ gem install rdf-vocab # (was rdf-iiif)
22
26
 
23
27
  ## Usage
24
28
 
25
- require 'rdf-iiif'
26
-
27
- RDF::IIIFPresentation.painting #=> RDF::URI("http://iiif.io/api/presentation/2#painting")
28
- RDF::SIOC::Services.has_service #=> RDF::URI("http://rdfs.org/sioc/services#has_service")
29
+ require 'rdf/vocab'
30
+
31
+ RDF::Vocab::IIIF.painting #=> RDF::URI("http://iiif.io/api/presentation/2#painting")
32
+ RDF::Vocab::SiocServices.has_service #=> RDF::URI("http://rdfs.org/sioc/services#has_service")
29
33
 
30
- ## Contributing
34
+ # DEPRECATED - use rdf-vocab
31
35
 
32
- 1. Fork it ( https://github.com/[my-github-username]/rdf-iiif/fork )
33
- 2. Create your feature branch (`git checkout -b my-new-feature`)
34
- 3. Commit your changes (`git commit -am 'Add some feature'`)
35
- 4. Push to the branch (`git push origin my-new-feature`)
36
- 5. Create a new Pull Request
36
+ This gem is deprecated; rdf-vocab gem (https://github.com/ruby-rdf/rdf-vocab, included in the linkeddata gem) now contains RDF::Vocab::IIIF and RDF::Vocab::SiocServices.
@@ -1,5 +1,5 @@
1
1
  module RDF
2
2
  module IIIF
3
- VERSION = "0.0.2"
3
+ VERSION = "0.1.0"
4
4
  end
5
5
  end
@@ -2,7 +2,16 @@
2
2
  # This file generated automatically using vocab-fetch from ../iiif-ontology-from-rob.owl and a little hand editing (added painting)
3
3
  require 'rdf'
4
4
  module RDF
5
- class IIIFPresentation < RDF::StrictVocabulary("http://iiif.io/api/presentation/2#")
5
+ # deprecate IIIFPresentation
6
+ def self.const_missing(const_name)
7
+ super unless const_name == :IIIFPresentation
8
+ warn "DEPRECATION WARNING: the class RDF::IIIFPresentation is deprecated. Use RDF::Vocab::IIIF from https://github.com/ruby-rdf/rdf-vocab instead."
9
+ IIIFPresentationDeprecated
10
+ end
11
+
12
+ # @deprecated: this class is deprecated in favor of RDF::Vocab::IIIF
13
+ # from rdf-vocab gem
14
+ class IIIFPresentationDeprecated < RDF::StrictVocabulary("http://iiif.io/api/presentation/2#")
6
15
 
7
16
  # Class definitions
8
17
  term :AnnotationList,
@@ -2,7 +2,16 @@
2
2
  # This file generated automatically using vocab-fetch from http://rdfs.org/sioc/services#
3
3
  require 'rdf'
4
4
  module RDF
5
- class SIOC::Services < RDF::StrictVocabulary("http://rdfs.org/sioc/services#")
5
+ # deprecate SIOC::Services
6
+ def self.const_missing(const_name)
7
+ super unless const_name == :SIOC::Services
8
+ warn "DEPRECATION WARNING: the class RDF::SIOC::Services is deprecated. Use RDF::Vocab::SiocServices from https://github.com/ruby-rdf/rdf-vocab instead."
9
+ SIOC::ServicesDeprecated
10
+ end
11
+
12
+ # @deprecated: this class is deprecated in favor of RDF::Vocab::SiocServices
13
+ # from rdf-vocab gem
14
+ class SIOC::ServicesDeprecated < RDF::StrictVocabulary("http://rdfs.org/sioc/services#")
6
15
 
7
16
  # Class definitions
8
17
  term :Service,
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
8
8
  spec.version = RDF::IIIF::VERSION
9
9
  spec.authors = ["Naomi Dushay"]
10
10
  spec.email = ["ndushay@stanford.edu"]
11
- spec.summary = %q{IIIF (Presentation) vocabularies for RDF.rb}
12
- spec.homepage = ""
11
+ spec.summary = %q{This gem deprecated in favor of rdf-vocab}
12
+ spec.homepage = "https://github.com/sul-dlss/rdf-iiif"
13
13
  spec.license = "Apache 2"
14
14
 
15
15
  spec.files = `git ls-files -z`.split("\x0")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-iiif
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naomi Dushay
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-20 00:00:00.000000000 Z
11
+ date: 2015-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdf
@@ -72,7 +72,7 @@ files:
72
72
  - pkg/rdf-open_annotation-0.0.3.gem
73
73
  - pkg/rdf-open_annotation-0.0.4.gem
74
74
  - rdf-iiif.gemspec
75
- homepage: ''
75
+ homepage: https://github.com/sul-dlss/rdf-iiif
76
76
  licenses:
77
77
  - Apache 2
78
78
  metadata: {}
@@ -95,6 +95,5 @@ rubyforge_project:
95
95
  rubygems_version: 2.4.3
96
96
  signing_key:
97
97
  specification_version: 4
98
- summary: IIIF (Presentation) vocabularies for RDF.rb
98
+ summary: This gem deprecated in favor of rdf-vocab
99
99
  test_files: []
100
- has_rdoc: