Class: LD4L::OpenAnnotationRDF::CommentBody
- Inherits:
-
ActiveTriples::Resource
- Object
- ActiveTriples::Resource
- LD4L::OpenAnnotationRDF::CommentBody
- Defined in:
- lib/ld4l/open_annotation_rdf/comment_body.rb
Class Attribute Summary collapse
-
.localname_prefix ⇒ Object
readonly
Returns the value of attribute localname_prefix.
Instance Method Summary collapse
-
#initialize(*args) ⇒ CommentBody
constructor
A new instance of CommentBody.
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_prefix ⇒ Object (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 |