ld4l-open_annotation_rdf 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +23 -0
  3. data/.ruby-gemset +1 -0
  4. data/.ruby-version +1 -0
  5. data/Gemfile +11 -0
  6. data/LICENSE.txt +14 -0
  7. data/README.md +231 -0
  8. data/Rakefile +2 -0
  9. data/ld4l-open_annotation_rdf.gemspec +46 -0
  10. data/lib/ld4l/open_annotation_rdf.rb +66 -0
  11. data/lib/ld4l/open_annotation_rdf/annotation.rb +82 -0
  12. data/lib/ld4l/open_annotation_rdf/comment_annotation.rb +47 -0
  13. data/lib/ld4l/open_annotation_rdf/comment_body.rb +24 -0
  14. data/lib/ld4l/open_annotation_rdf/configuration.rb +127 -0
  15. data/lib/ld4l/open_annotation_rdf/semantic_tag_annotation.rb +66 -0
  16. data/lib/ld4l/open_annotation_rdf/semantic_tag_body.rb +70 -0
  17. data/lib/ld4l/open_annotation_rdf/tag_annotation.rb +98 -0
  18. data/lib/ld4l/open_annotation_rdf/tag_body.rb +83 -0
  19. data/lib/ld4l/open_annotation_rdf/version.rb +5 -0
  20. data/lib/ld4l/open_annotation_rdf/vocab/cnt.rb +6 -0
  21. data/lib/ld4l/open_annotation_rdf/vocab/dctypes.rb +5 -0
  22. data/lib/ld4l/open_annotation_rdf/vocab/oa.rb +23 -0
  23. data/spec/ld4l/open_annotation_rdf/annotation_spec.rb +603 -0
  24. data/spec/ld4l/open_annotation_rdf/comment_annotation_spec.rb +559 -0
  25. data/spec/ld4l/open_annotation_rdf/comment_body_spec.rb +371 -0
  26. data/spec/ld4l/open_annotation_rdf/configuration_spec.rb +194 -0
  27. data/spec/ld4l/open_annotation_rdf/semantic_tag_annotation_spec.rb +619 -0
  28. data/spec/ld4l/open_annotation_rdf/semantic_tag_body_spec.rb +412 -0
  29. data/spec/ld4l/open_annotation_rdf/tag_annotation_spec.rb +672 -0
  30. data/spec/ld4l/open_annotation_rdf/tag_body_spec.rb +430 -0
  31. data/spec/ld4l/open_annotation_rdf_spec.rb +57 -0
  32. data/spec/spec_helper.rb +21 -0
  33. metadata +201 -0
@@ -0,0 +1,21 @@
1
+ require 'bundler/setup'
2
+ Bundler.setup
3
+
4
+ require 'ld4l/open_annotation_rdf'
5
+ require 'pry'
6
+
7
+ Dir['./spec/support/**/*.rb'].each { |f| require f }
8
+
9
+ RSpec.configure do |config|
10
+ config.color = true
11
+ config.tty = true
12
+
13
+ # Uncomment the following line to get errors and backtrace for deprecation warnings
14
+ # config.raise_errors_for_deprecations!
15
+
16
+ # Use the specified formatter
17
+ config.formatter = :progress
18
+ end
19
+
20
+ # TODO Need to use allow, receive, and_return instead of creating the repository here to avoid bleed over between tests.
21
+ ActiveTriples::Repositories.add_repository :default, RDF::Repository.new
metadata ADDED
@@ -0,0 +1,201 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ld4l-open_annotation_rdf
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.4
5
+ platform: ruby
6
+ authors:
7
+ - E. Lynette Rayle
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-01-07 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rdf
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: active_triples-local_name
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.1'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.1'
41
+ - !ruby/object:Gem::Dependency
42
+ name: pry
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: pry-byebug
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rdoc
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: guard-rspec
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: webmock
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ description: LD4L Open Annotation RDF provides tools for modeling a annotations based
126
+ on the Open Annotation ontology and persisting to a triplestore.
127
+ email:
128
+ - elr37@cornell.edu
129
+ executables: []
130
+ extensions: []
131
+ extra_rdoc_files:
132
+ - LICENSE.txt
133
+ - README.md
134
+ files:
135
+ - ".gitignore"
136
+ - ".ruby-gemset"
137
+ - ".ruby-version"
138
+ - Gemfile
139
+ - LICENSE.txt
140
+ - README.md
141
+ - Rakefile
142
+ - ld4l-open_annotation_rdf.gemspec
143
+ - lib/ld4l/open_annotation_rdf.rb
144
+ - lib/ld4l/open_annotation_rdf/annotation.rb
145
+ - lib/ld4l/open_annotation_rdf/comment_annotation.rb
146
+ - lib/ld4l/open_annotation_rdf/comment_body.rb
147
+ - lib/ld4l/open_annotation_rdf/configuration.rb
148
+ - lib/ld4l/open_annotation_rdf/semantic_tag_annotation.rb
149
+ - lib/ld4l/open_annotation_rdf/semantic_tag_body.rb
150
+ - lib/ld4l/open_annotation_rdf/tag_annotation.rb
151
+ - lib/ld4l/open_annotation_rdf/tag_body.rb
152
+ - lib/ld4l/open_annotation_rdf/version.rb
153
+ - lib/ld4l/open_annotation_rdf/vocab/cnt.rb
154
+ - lib/ld4l/open_annotation_rdf/vocab/dctypes.rb
155
+ - lib/ld4l/open_annotation_rdf/vocab/oa.rb
156
+ - spec/ld4l/open_annotation_rdf/annotation_spec.rb
157
+ - spec/ld4l/open_annotation_rdf/comment_annotation_spec.rb
158
+ - spec/ld4l/open_annotation_rdf/comment_body_spec.rb
159
+ - spec/ld4l/open_annotation_rdf/configuration_spec.rb
160
+ - spec/ld4l/open_annotation_rdf/semantic_tag_annotation_spec.rb
161
+ - spec/ld4l/open_annotation_rdf/semantic_tag_body_spec.rb
162
+ - spec/ld4l/open_annotation_rdf/tag_annotation_spec.rb
163
+ - spec/ld4l/open_annotation_rdf/tag_body_spec.rb
164
+ - spec/ld4l/open_annotation_rdf_spec.rb
165
+ - spec/spec_helper.rb
166
+ homepage: https://github.com/ld4l/open_annotation_rdf
167
+ licenses:
168
+ - APACHE2
169
+ metadata: {}
170
+ post_install_message:
171
+ rdoc_options: []
172
+ require_paths:
173
+ - lib
174
+ required_ruby_version: !ruby/object:Gem::Requirement
175
+ requirements:
176
+ - - ">="
177
+ - !ruby/object:Gem::Version
178
+ version: 2.1.2
179
+ required_rubygems_version: !ruby/object:Gem::Requirement
180
+ requirements:
181
+ - - ">="
182
+ - !ruby/object:Gem::Version
183
+ version: '0'
184
+ requirements: []
185
+ rubyforge_project:
186
+ rubygems_version: 2.2.2
187
+ signing_key:
188
+ specification_version: 4
189
+ summary: OpenAnnotation RDF models.
190
+ test_files:
191
+ - spec/ld4l/open_annotation_rdf/annotation_spec.rb
192
+ - spec/ld4l/open_annotation_rdf/comment_annotation_spec.rb
193
+ - spec/ld4l/open_annotation_rdf/comment_body_spec.rb
194
+ - spec/ld4l/open_annotation_rdf/configuration_spec.rb
195
+ - spec/ld4l/open_annotation_rdf/semantic_tag_annotation_spec.rb
196
+ - spec/ld4l/open_annotation_rdf/semantic_tag_body_spec.rb
197
+ - spec/ld4l/open_annotation_rdf/tag_annotation_spec.rb
198
+ - spec/ld4l/open_annotation_rdf/tag_body_spec.rb
199
+ - spec/ld4l/open_annotation_rdf_spec.rb
200
+ - spec/spec_helper.rb
201
+ has_rdoc: