Class: LD4L::OpenAnnotationRDF::CommentBody

Inherits:
ActiveTriples::Resource
  • Object
show all
Defined in:
lib/ld4l/open_annotation_rdf/comment_body.rb

Class Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ CommentBody

Returns a new instance of CommentBody.



15
16
17
18
19
20
21
# File 'lib/ld4l/open_annotation_rdf/comment_body.rb', line 15

def initialize(*args)
  super(*args)

  t = get_values(:type)
  t << RDF::Vocab::DCMIType.Text
  set_value(:type,t)
end

Class Attribute Details

.localname_prefixObject (readonly)

Returns the value of attribute localname_prefix.



5
6
7
# File 'lib/ld4l/open_annotation_rdf/comment_body.rb', line 5

def localname_prefix
  @localname_prefix
end