Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit b6f26e1

Browse files
committed
Make rdf-turtle a runtime dependency
1 parent beedbe6 commit b6f26e1

19 files changed

+121
-69
lines changed

Gemfile

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
source 'https://rubygems.org'
22

3+
gemspec
34

4-
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
5-
gem 'rails', '4.2.5.1'
6-
# Use sqlite3 as the database for Active Record
7-
gem 'sqlite3'
85
# Use SCSS for stylesheets
96
gem 'sass-rails', '~> 5.0'
107
# Use Uglifier as compressor for JavaScript assets
@@ -35,10 +32,6 @@ gem 'sdoc', '~> 0.4.0', group: :doc
3532
group :development, :test do
3633
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
3734
gem 'byebug'
38-
gem 'rspec'
39-
gem 'rspec-rails'
40-
gem 'rspec-its'
41-
gem 'rspec-collection_matchers'
4235
end
4336

4437
group :development do
@@ -51,18 +44,3 @@ end
5144

5245
gem 'blacklight', '6.0.1'
5346
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]
54-
55-
# RDF/SPARQL
56-
gem 'rdf', '~> 1.99'
57-
gem 'rdf-turtle', '~> 1.99'
58-
gem 'sparql-client', '~> 1.99'
59-
gem 'sparql', '~> 1.99'
60-
gem 'json-ld', '~> 1.99'
61-
62-
group :development, :test do
63-
#gem 'rdf-do', '~> 1.99' # Using DataObjects for SPARQL store
64-
#gem 'data_objects', '~> 0.10'
65-
#gem 'do_sqlite3' , '~> 0.10'
66-
gem 'rdf-mongo'
67-
gem 'bson_ext'
68-
end

Gemfile.lock

Lines changed: 59 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,53 @@
1+
PATH
2+
remote: .
3+
specs:
4+
sparqlight (0.0.1)
5+
blacklight (~> 6.0)
6+
json-ld (~> 1.99)
7+
rails (~> 4.2)
8+
rdf (~> 1.99)
9+
sparql-client (~> 1.99)
10+
111
GEM
212
remote: https://rubygems.org/
313
specs:
4-
actionmailer (4.2.5.1)
5-
actionpack (= 4.2.5.1)
6-
actionview (= 4.2.5.1)
7-
activejob (= 4.2.5.1)
14+
actionmailer (4.2.6)
15+
actionpack (= 4.2.6)
16+
actionview (= 4.2.6)
17+
activejob (= 4.2.6)
818
mail (~> 2.5, >= 2.5.4)
919
rails-dom-testing (~> 1.0, >= 1.0.5)
10-
actionpack (4.2.5.1)
11-
actionview (= 4.2.5.1)
12-
activesupport (= 4.2.5.1)
20+
actionpack (4.2.6)
21+
actionview (= 4.2.6)
22+
activesupport (= 4.2.6)
1323
rack (~> 1.6)
1424
rack-test (~> 0.6.2)
1525
rails-dom-testing (~> 1.0, >= 1.0.5)
1626
rails-html-sanitizer (~> 1.0, >= 1.0.2)
17-
actionview (4.2.5.1)
18-
activesupport (= 4.2.5.1)
27+
actionview (4.2.6)
28+
activesupport (= 4.2.6)
1929
builder (~> 3.1)
2030
erubis (~> 2.7.0)
2131
rails-dom-testing (~> 1.0, >= 1.0.5)
2232
rails-html-sanitizer (~> 1.0, >= 1.0.2)
23-
activejob (4.2.5.1)
24-
activesupport (= 4.2.5.1)
33+
activejob (4.2.6)
34+
activesupport (= 4.2.6)
2535
globalid (>= 0.3.0)
26-
activemodel (4.2.5.1)
27-
activesupport (= 4.2.5.1)
36+
activemodel (4.2.6)
37+
activesupport (= 4.2.6)
2838
builder (~> 3.1)
29-
activerecord (4.2.5.1)
30-
activemodel (= 4.2.5.1)
31-
activesupport (= 4.2.5.1)
39+
activerecord (4.2.6)
40+
activemodel (= 4.2.6)
41+
activesupport (= 4.2.6)
3242
arel (~> 6.0)
33-
activesupport (4.2.5.1)
43+
activesupport (4.2.6)
3444
i18n (~> 0.7)
3545
json (~> 1.7, >= 1.7.7)
3646
minitest (~> 5.1)
3747
thread_safe (~> 0.3, >= 0.3.4)
3848
tzinfo (~> 1.1)
3949
arel (6.0.3)
40-
autoprefixer-rails (6.3.3.1)
50+
autoprefixer-rails (6.3.6)
4151
execjs
4252
binding_of_caller (0.7.2)
4353
debug_inspector (>= 0.0.1)
@@ -57,7 +67,7 @@ GEM
5767
bson_ext (1.12.5)
5868
bson (~> 1.12.5)
5969
builder (3.2.2)
60-
byebug (8.2.2)
70+
byebug (8.2.4)
6171
coffee-rails (4.1.1)
6272
coffee-script (>= 2.2.0)
6373
railties (>= 4.0.0, < 5.1.x)
@@ -95,9 +105,11 @@ GEM
95105
link_header (0.0.8)
96106
loofah (2.0.3)
97107
nokogiri (>= 1.5.9)
98-
mail (2.6.3)
99-
mime-types (>= 1.16, < 3)
100-
mime-types (2.99.1)
108+
mail (2.6.4)
109+
mime-types (>= 1.16, < 4)
110+
mime-types (3.0)
111+
mime-types-data (~> 3.2015)
112+
mime-types-data (3.2016.0221)
101113
mini_portile2 (2.0.0)
102114
minitest (5.8.4)
103115
mongo (1.12.5)
@@ -109,16 +121,16 @@ GEM
109121
rack (1.6.4)
110122
rack-test (0.6.3)
111123
rack (>= 1.0)
112-
rails (4.2.5.1)
113-
actionmailer (= 4.2.5.1)
114-
actionpack (= 4.2.5.1)
115-
actionview (= 4.2.5.1)
116-
activejob (= 4.2.5.1)
117-
activemodel (= 4.2.5.1)
118-
activerecord (= 4.2.5.1)
119-
activesupport (= 4.2.5.1)
124+
rails (4.2.6)
125+
actionmailer (= 4.2.6)
126+
actionpack (= 4.2.6)
127+
actionview (= 4.2.6)
128+
activejob (= 4.2.6)
129+
activemodel (= 4.2.6)
130+
activerecord (= 4.2.6)
131+
activesupport (= 4.2.6)
120132
bundler (>= 1.3.0, < 2.0)
121-
railties (= 4.2.5.1)
133+
railties (= 4.2.6)
122134
sprockets-rails
123135
rails-deprecated_sanitizer (1.0.3)
124136
activesupport (>= 4.2.0.alpha)
@@ -128,12 +140,12 @@ GEM
128140
rails-deprecated_sanitizer (>= 1.0.1)
129141
rails-html-sanitizer (1.0.3)
130142
loofah (~> 2.0)
131-
railties (4.2.5.1)
132-
actionpack (= 4.2.5.1)
133-
activesupport (= 4.2.5.1)
143+
railties (4.2.6)
144+
actionpack (= 4.2.6)
145+
activesupport (= 4.2.6)
134146
rake (>= 0.8.7)
135147
thor (>= 0.18.1, < 2.0)
136-
rake (11.1.1)
148+
rake (11.1.2)
137149
rdf (1.99.1)
138150
link_header (~> 0.0, >= 0.0.8)
139151
rdf-aggregate-repo (1.99.0)
@@ -154,6 +166,10 @@ GEM
154166
rspec-core (~> 3.4.0)
155167
rspec-expectations (~> 3.4.0)
156168
rspec-mocks (~> 3.4.0)
169+
rspec-activemodel-mocks (1.0.3)
170+
activemodel (>= 3.0)
171+
activesupport (>= 3.0)
172+
rspec-mocks (>= 2.99, < 4.0)
157173
rspec-collection_matchers (1.1.2)
158174
rspec-expectations (>= 2.99.0.beta1)
159175
rspec-core (3.4.4)
@@ -176,7 +192,7 @@ GEM
176192
rspec-mocks (~> 3.4.0)
177193
rspec-support (~> 3.4.0)
178194
rspec-support (3.4.1)
179-
sass (3.4.21)
195+
sass (3.4.22)
180196
sass-rails (5.0.4)
181197
railties (>= 4.0.0, < 5.0)
182198
sass (~> 3.1)
@@ -197,8 +213,8 @@ GEM
197213
sparql-client (1.99.0)
198214
net-http-persistent (~> 2.9)
199215
rdf (~> 1.1)
200-
spring (1.6.4)
201-
sprockets (3.5.2)
216+
spring (1.7.1)
217+
sprockets (3.6.0)
202218
concurrent-ruby (~> 1.0)
203219
rack (> 1, < 3)
204220
sprockets-rails (3.0.4)
@@ -218,9 +234,8 @@ GEM
218234
railties (>= 3.1)
219235
tzinfo (1.2.2)
220236
thread_safe (~> 0.1)
221-
uglifier (2.7.2)
222-
execjs (>= 0.3.0)
223-
json (>= 1.8.0)
237+
uglifier (3.0.0)
238+
execjs (>= 0.3.0, < 3)
224239
web-console (2.3.0)
225240
activemodel (>= 4.0)
226241
binding_of_caller (>= 0.7.2)
@@ -237,19 +252,17 @@ DEPENDENCIES
237252
coffee-rails (~> 4.1.0)
238253
jbuilder (~> 2.0)
239254
jquery-rails
240-
json-ld (~> 1.99)
241-
rails (= 4.2.5.1)
242-
rdf (~> 1.99)
243-
rdf-mongo
255+
rdf-mongo (~> 1.99)
244256
rdf-turtle (~> 1.99)
245257
rspec
258+
rspec-activemodel-mocks
246259
rspec-collection_matchers
247260
rspec-its
248261
rspec-rails
249262
sass-rails (~> 5.0)
250263
sdoc (~> 0.4.0)
251264
sparql (~> 1.99)
252-
sparql-client (~> 1.99)
265+
sparqlight!
253266
spring
254267
sqlite3
255268
turbolinks

LICENSE

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright 2014 The Board of Trustees of the Leland Stanford Junior University.
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

config/application.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
require File.expand_path('../boot', __FILE__)
22

33
require 'rails/all'
4+
require 'blacklight/sparql'
45

56
# Require the gems listed in Gemfile, including any gems
67
# you've limited to :test, :development, or :production.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
require 'blacklight/sparql/version'
2+
3+
##
4+
# SparqLight
15
module Blacklight
26
module Sparql
37
autoload :Document, 'blacklight/sparql/document'
File renamed without changes.

app/models/blacklight/sparql/repository.rb renamed to lib/blacklight/sparql/repository.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
require 'sparql/client'
22
require 'blacklight/sparql'
3+
require 'json/ld'
34

45
module Blacklight::Sparql
56
class Repository < Blacklight::AbstractRepository

0 commit comments

Comments
 (0)