Class: Annotations2triannon::AnnotationList

Inherits:
Resource
  • Object
show all
Includes:
OpenAnnotationHarvest
Defined in:
lib/annotations2triannon/annotation_list.rb

Instance Attribute Summary collapse

Attributes inherited from Resource

#iri

Instance Method Summary collapse

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

#open_annotationsObject (readonly)

Returns the value of attribute open_annotations.



8
9
10
# File 'lib/annotations2triannon/annotation_list.rb', line 8

def open_annotations
  @open_annotations
end

Instance Method Details

#annotation_list?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/annotations2triannon/annotation_list.rb', line 10

def annotation_list?
  sc_annotation_list? || iiif_annotation_list?
end

#iiif_annotation_list?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/annotations2triannon/annotation_list.rb', line 14

def iiif_annotation_list?
  iri_type? RDF::Vocab::IIIF.AnnotationList
end

#sc_annotation_list?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/annotations2triannon/annotation_list.rb', line 18

def sc_annotation_list?
  iri_type? RDF::SC.AnnotationList
end