Class: Annotations2triannon::Manifest
- Includes:
- OpenAnnotationHarvest
- Defined in:
- lib/annotations2triannon/manifest.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#annotation_lists ⇒ Object
readonly
Returns the value of attribute annotation_lists.
-
#open_annotations ⇒ Object
readonly
Returns the value of attribute open_annotations.
Attributes inherited from Resource
Instance Method Summary collapse
- #iiif_annotation_lists ⇒ Object
- #iiif_manifest? ⇒ Boolean
- #manifest? ⇒ Boolean
- #sc_annotation_lists ⇒ Object
- #sc_manifest? ⇒ Boolean
Methods included from OpenAnnotationHarvest
#collect_open_annotations, #rdf_subject_graph
Methods inherited from Resource
#as_jsonld, http_head_request, #id, #initialize, #iri_type?, #iri_types, #provenance, #query_predicate_objects, #query_predicate_subjects, #rdf, #rdf_expand_blank_nodes, #rdf_find_object, #rdf_find_subject, #rdf_insert, #rdf_insert_contributor, #rdf_insert_creator, #rdf_insert_editor, #rdf_insert_exampleOfWork, #rdf_insert_foafFocus, #rdf_insert_name, #rdf_insert_sameAs, #rdf_insert_seeAlso, #rdf_insert_type, #rdf_now, #rdf_type_agent, #rdf_type_concept, #rdf_type_organization, #rdf_type_person, #rdf_uri, #rdf_valid?, #resolve_url, #same_as_org_graph, #same_as_org_query, #to_jsonld, #to_ttl
Constructor Details
This class inherits a constructor from Annotations2triannon::Resource
Instance Attribute Details
#annotation_lists ⇒ Object (readonly)
Returns the value of attribute annotation_lists.
8 9 10 |
# File 'lib/annotations2triannon/manifest.rb', line 8 def annotation_lists @annotation_lists end |
#open_annotations ⇒ Object (readonly)
Returns the value of attribute open_annotations.
9 10 11 |
# File 'lib/annotations2triannon/manifest.rb', line 9 def open_annotations @open_annotations end |
Instance Method Details
#iiif_annotation_lists ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'lib/annotations2triannon/manifest.rb', line 34 def iiif_annotation_lists return @iiif_annotation_lists unless @iiif_annotation_lists.nil? uris = collect_annotation_list_uris(query_iiif_annotation_list) @iiif_annotation_lists = uris.collect do |uri| Annotations2triannon::IIIFAnnotationList.new(uri) end @iiif_annotation_lists end |
#iiif_manifest? ⇒ Boolean
15 16 17 |
# File 'lib/annotations2triannon/manifest.rb', line 15 def iiif_manifest? iri_type? RDF::Vocab::IIIF.Manifest end |
#manifest? ⇒ Boolean
11 12 13 |
# File 'lib/annotations2triannon/manifest.rb', line 11 def manifest? iiif_manifest? || sc_manifest? end |
#sc_annotation_lists ⇒ Object
43 44 45 46 47 48 49 50 |
# File 'lib/annotations2triannon/manifest.rb', line 43 def sc_annotation_lists return @sc_annotation_lists unless @sc_annotation_lists.nil? uris = collect_annotation_list_uris(query_sc_annotation_list) @sc_annotation_lists = uris.collect do |uri| Annotations2triannon::SharedCanvasAnnotationList.new(uri) end @sc_annotation_lists end |