Class: Annotations2triannon::IIIFNavigator
- Inherits:
-
Object
- Object
- Annotations2triannon::IIIFNavigator
- Defined in:
- lib/annotations2triannon/iiif_navigator.rb
Constant Summary collapse
- @@config =
nil
Instance Attribute Summary collapse
- #annotation_lists ⇒ Object
-
#collection ⇒ Object
Collection - a IIIF Presentation collection.
- #iiif_annotation_lists ⇒ Object
-
#iiif_collection ⇒ Object
Iiif_collection - a IIIF Presentation collection.
- #iiif_manifests ⇒ Object
- #iiif_open_annotations ⇒ Object
- #manifests ⇒ Object
- #open_annotations ⇒ Object
- #sc_annotation_lists ⇒ Object
- #sc_manifests ⇒ Object
- #sc_open_annotations ⇒ Object
Instance Method Summary collapse
-
#iiif_manifests? ⇒ boolean
Are there any IIIF manifests in the collection?.
-
#initialize(collection_uri) ⇒ IIIFNavigator
constructor
A new instance of IIIFNavigator.
-
#manifests? ⇒ boolean
Are there any manifests in the collection?.
-
#sc_manifests? ⇒ boolean
Are there any Shared Canvas manifests in the collection?.
Constructor Details
#initialize(collection_uri) ⇒ IIIFNavigator
Returns a new instance of IIIFNavigator.
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/annotations2triannon/iiif_navigator.rb', line 24 def initialize(collection_uri) @@config ||= Annotations2triannon.configuration @uri = RDF::URI.parse(collection_uri) @collection = nil @manifests = nil @annotation_lists = nil @open_annotations = nil @iiif_collection = nil @iiif_manifests = nil @iiif_annotation_lists = nil @iiif_open_annotations = nil @sc_manifests = nil @sc_annotation_lists = nil @sc_open_annotations = nil end |
Instance Attribute Details
#annotation_lists ⇒ Object
105 106 107 |
# File 'lib/annotations2triannon/iiif_navigator.rb', line 105 def annotation_lists @annotation_lists end |
#collection ⇒ Object
Returns collection - a IIIF Presentation collection.
45 46 47 |
# File 'lib/annotations2triannon/iiif_navigator.rb', line 45 def collection @collection end |
#iiif_annotation_lists ⇒ Object
110 111 112 |
# File 'lib/annotations2triannon/iiif_navigator.rb', line 110 def iiif_annotation_lists @iiif_annotation_lists end |
#iiif_collection ⇒ Object
Returns iiif_collection - a IIIF Presentation collection.
51 52 53 |
# File 'lib/annotations2triannon/iiif_navigator.rb', line 51 def iiif_collection @iiif_collection end |
#iiif_manifests ⇒ Object
83 84 85 |
# File 'lib/annotations2triannon/iiif_navigator.rb', line 83 def iiif_manifests @iiif_manifests end |
#iiif_open_annotations ⇒ Object
131 132 133 |
# File 'lib/annotations2triannon/iiif_navigator.rb', line 131 def iiif_open_annotations @iiif_open_annotations end |
#manifests ⇒ Object
70 71 72 |
# File 'lib/annotations2triannon/iiif_navigator.rb', line 70 def manifests @manifests end |
#open_annotations ⇒ Object
126 127 128 |
# File 'lib/annotations2triannon/iiif_navigator.rb', line 126 def open_annotations @open_annotations end |
#sc_annotation_lists ⇒ Object
115 116 117 |
# File 'lib/annotations2triannon/iiif_navigator.rb', line 115 def sc_annotation_lists @sc_annotation_lists end |
#sc_manifests ⇒ Object
96 97 98 |
# File 'lib/annotations2triannon/iiif_navigator.rb', line 96 def sc_manifests @sc_manifests end |
#sc_open_annotations ⇒ Object
136 137 138 |
# File 'lib/annotations2triannon/iiif_navigator.rb', line 136 def sc_open_annotations @sc_open_annotations end |
Instance Method Details
#iiif_manifests? ⇒ boolean
Returns are there any IIIF manifests in the collection?.
79 80 81 |
# File 'lib/annotations2triannon/iiif_navigator.rb', line 79 def iiif_manifests? ! iiif_manifests.empty? end |
#manifests? ⇒ boolean
Returns are there any manifests in the collection?.
66 67 68 |
# File 'lib/annotations2triannon/iiif_navigator.rb', line 66 def manifests? ! manifests.empty? end |
#sc_manifests? ⇒ boolean
Returns are there any Shared Canvas manifests in the collection?.
92 93 94 |
# File 'lib/annotations2triannon/iiif_navigator.rb', line 92 def sc_manifests? ! sc_manifests.empty? end |