Class: Annotations2triannon::SharedCanvasManifest

Inherits:
Manifest show all
Defined in:
lib/annotations2triannon/shared_canvas_manifest.rb

Overview

A filter to exclude any IIIF namespace content

Instance Attribute Summary

Attributes inherited from Manifest

#open_annotations

Attributes inherited from Resource

#iri

Instance Method Summary collapse

Methods inherited from Manifest

#sc_annotation_lists, #sc_manifest?

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 Method Details

#annotation_listsObject



15
16
17
18
19
20
21
22
# File 'lib/annotations2triannon/shared_canvas_manifest.rb', line 15

def annotation_lists
  return @annotation_lists unless @annotation_lists.nil?
  uris = collect_annotation_list_uris(query_sc_annotation_list)
  @annotation_lists = uris.collect do |uri|
    Annotations2triannon::AnnotationList.new(uri)
  end
  @annotation_lists
end

#iiif_annotation_listsObject



24
25
26
27
# File 'lib/annotations2triannon/shared_canvas_manifest.rb', line 24

def iiif_annotation_lists
  return @iiif_annotation_lists unless @iiif_annotation_lists.nil?
  @iiif_annotation_lists = []
end

#iiif_manifest?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/annotations2triannon/shared_canvas_manifest.rb', line 11

def iiif_manifest?
  false
end

#manifest?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/annotations2triannon/shared_canvas_manifest.rb', line 7

def manifest?
  sc_manifest?
end