sadi-rb 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.document +5 -0
- data/Gemfile +21 -0
- data/LICENSE.txt +20 -0
- data/README.md +33 -0
- data/Rakefile +55 -0
- data/lib/sadi-rb.rb +4 -0
- data/lib/sadi-rb/converter.rb +12 -0
- data/lib/sadi-rb/example_service.rb +88 -0
- data/lib/sadi-rb/server.rb +40 -0
- data/lib/sadi-rb/synchronous_service.rb +58 -0
- data/spec/server_spec.rb +69 -0
- metadata +196 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 073f8686ffefb783f5d1833aae09bf542894ccf1
|
4
|
+
data.tar.gz: 24326b372b6847239761400d6a9eff41088c4015
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 7fe92760c66dd37064c00adcaed32059769062fd1edd6cdee245fa93752e5a4d823401c827ff1b17b6d0b22d308f10bfea13699a643513706475a39888515109
|
7
|
+
data.tar.gz: cdb8922540ec0c35ff2184843f02d8c4357b681585b1db811fd81c7c14c9dcc43ede0bc9136e178a417a56ef22aac1d8ba9ad026279edc4ba61bb9c619b1becc
|
data/.document
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
# Add dependencies required to use your gem here.
|
3
|
+
# Example:
|
4
|
+
# gem "activesupport", ">= 2.3.5"
|
5
|
+
|
6
|
+
# Add dependencies to develop your gem here.
|
7
|
+
# Include everything needed to run rake, tests, features, etc.
|
8
|
+
group :development do
|
9
|
+
gem "shoulda", ">= 0"
|
10
|
+
gem "rdoc", "~> 3.12"
|
11
|
+
gem "bundler", "~> 1.0"
|
12
|
+
gem "jeweler", "~> 1.8.7"
|
13
|
+
# gem "rcov", ">= 0"
|
14
|
+
gem "rspec" #, ">= 0"
|
15
|
+
gem "rack-test" #, ">= 0"
|
16
|
+
gem 'pry'
|
17
|
+
end
|
18
|
+
|
19
|
+
gem 'sinatra'
|
20
|
+
gem 'sinatra-linkeddata'
|
21
|
+
gem 'equivalent-xml', :require => false
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2013 Will Strinz
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# sadi-rb
|
2
|
+
|
3
|
+
Write [SADI] Services in Ruby, then host them as a Sinatra server
|
4
|
+
|
5
|
+
Currently only supports synchronous services, and only a copy of the [demo service] has been implemented
|
6
|
+
|
7
|
+
To try it, run the specs, or run
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
require 'sadi-rb'
|
11
|
+
|
12
|
+
SADI::Server.run!
|
13
|
+
```
|
14
|
+
|
15
|
+
to run an instance of the demo service, at 'localhost:4567/services/hello'
|
16
|
+
|
17
|
+
## Contributing to sadi-rb
|
18
|
+
|
19
|
+
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
20
|
+
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
|
21
|
+
* Fork the project.
|
22
|
+
* Start a feature/bugfix branch.
|
23
|
+
* Commit and push until you are happy with your contribution.
|
24
|
+
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
25
|
+
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
26
|
+
|
27
|
+
## Copyright
|
28
|
+
|
29
|
+
Copyright (c) 2013 Will Strinz. See LICENSE.txt for
|
30
|
+
further details.
|
31
|
+
|
32
|
+
[demo service]: http://sadiframework.org/content/how-sadi-works/synchronous-sadi-services/
|
33
|
+
[SADI]: http://sadiframework.org
|
data/Rakefile
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler'
|
5
|
+
begin
|
6
|
+
Bundler.setup(:default, :development)
|
7
|
+
rescue Bundler::BundlerError => e
|
8
|
+
$stderr.puts e.message
|
9
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
+
exit e.status_code
|
11
|
+
end
|
12
|
+
require 'rake'
|
13
|
+
|
14
|
+
require 'jeweler'
|
15
|
+
Jeweler::Tasks.new do |gem|
|
16
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
17
|
+
gem.name = "sadi-rb"
|
18
|
+
gem.homepage = "http://github.com/wstrinz/sadi-rb"
|
19
|
+
gem.license = "MIT"
|
20
|
+
gem.summary = %Q{Build and run SADI services with ruby-rdf and sinatra}
|
21
|
+
gem.description = %Q{Build and run SADI services with ruby-rdf and sinatra}
|
22
|
+
gem.email = "wstrinz@gmail.com"
|
23
|
+
gem.authors = ["Will Strinz"]
|
24
|
+
gem.version = '0.0.1'
|
25
|
+
# dependencies defined in Gemfile
|
26
|
+
end
|
27
|
+
Jeweler::RubygemsDotOrgTasks.new
|
28
|
+
|
29
|
+
require 'rspec/core'
|
30
|
+
require 'rspec/core/rake_task'
|
31
|
+
RSpec::Core::RakeTask.new(:test) do |spec|
|
32
|
+
spec.rspec_opts = "--tag ~no_travis"
|
33
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
34
|
+
spec.rspec_opts << ' --color'
|
35
|
+
end
|
36
|
+
|
37
|
+
# require 'rcov/rcovtask'
|
38
|
+
# Rcov::RcovTask.new do |test|
|
39
|
+
# test.libs << 'test'
|
40
|
+
# test.pattern = 'test/**/test_*.rb'
|
41
|
+
# test.verbose = true
|
42
|
+
# test.rcov_opts << '--exclude "gems/*"'
|
43
|
+
# end
|
44
|
+
|
45
|
+
task :default => :test
|
46
|
+
|
47
|
+
require 'rdoc/task'
|
48
|
+
Rake::RDocTask.new do |rdoc|
|
49
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
50
|
+
|
51
|
+
rdoc.rdoc_dir = 'rdoc'
|
52
|
+
rdoc.title = "sadi-rb #{version}"
|
53
|
+
rdoc.rdoc_files.include('README*')
|
54
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
55
|
+
end
|
data/lib/sadi-rb.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
module SADI
|
2
|
+
module Converter
|
3
|
+
def parse_string(string,format)
|
4
|
+
unless format.is_a? Symbol
|
5
|
+
format = RDF::Format.find{|f| f.content_type.find{|type| type[format]}}
|
6
|
+
raise "Unknown input format #{mime_type}" unless format
|
7
|
+
format = format.to_sym
|
8
|
+
end
|
9
|
+
RDF::Graph.new << RDF::Reader.for(format).new(string)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,88 @@
|
|
1
|
+
class ExampleService
|
2
|
+
extend SADI::SynchronousService
|
3
|
+
class << self
|
4
|
+
def service_description
|
5
|
+
str = <<-EOS
|
6
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
7
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
8
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
9
|
+
|
10
|
+
<http://sadiframework.org/examples/hello> a <http://www.mygrid.org.uk/mygrid-moby-service#serviceDescription>;
|
11
|
+
rdfs:label "Hello, world"^^xsd:string;
|
12
|
+
<http://www.mygrid.org.uk/mygrid-moby-service#hasOperation> [ a <http://www.mygrid.org.uk/mygrid-moby-service#operation>;
|
13
|
+
<http://www.mygrid.org.uk/mygrid-moby-service#hasUnitTest> [ a <http://www.mygrid.org.uk/mygrid-moby-service#unitTest>;
|
14
|
+
<http://www.mygrid.org.uk/mygrid-moby-service#exampleInput> <http://sadiframework.org/examples/t/hello.input.1.rdf>;
|
15
|
+
<http://www.mygrid.org.uk/mygrid-moby-service#exampleOutput> <http://sadiframework.org/examples/t/hello.output.1.rdf>];
|
16
|
+
<http://www.mygrid.org.uk/mygrid-moby-service#inputParameter> [ a <http://www.mygrid.org.uk/mygrid-moby-service#parameter>;
|
17
|
+
<http://www.mygrid.org.uk/mygrid-moby-service#objectType> <http://sadiframework.org/examples/hello.owl#NamedIndividual>];
|
18
|
+
<http://www.mygrid.org.uk/mygrid-moby-service#outputParameter> [ a <http://www.mygrid.org.uk/mygrid-moby-service#parameter>;
|
19
|
+
<http://www.mygrid.org.uk/mygrid-moby-service#objectType> <http://sadiframework.org/examples/hello.owl#GreetedIndividual>]];
|
20
|
+
<http://www.mygrid.org.uk/mygrid-moby-service#hasServiceDescriptionText> "A simple \"Hello, World\" service that reads a name and attaches a greeting."^^xsd:string;
|
21
|
+
<http://www.mygrid.org.uk/mygrid-moby-service#hasServiceNameText> "Hello, world"^^xsd:string;
|
22
|
+
<http://www.mygrid.org.uk/mygrid-moby-service#providedBy> [ a <http://www.mygrid.org.uk/mygrid-moby-service#organisation>;
|
23
|
+
<http://protege.stanford.edu/plugins/owl/dc/protege-dc.owl#creator> "info@sadiframework.org"^^xsd:string;
|
24
|
+
<http://www.mygrid.org.uk/mygrid-moby-service#authoritative> true];
|
25
|
+
rdfs:comment "A simple \"Hello, World\" service that reads a name and attaches a greeting."^^xsd:string .
|
26
|
+
EOS
|
27
|
+
|
28
|
+
parse_string(str, :ttl)
|
29
|
+
end
|
30
|
+
|
31
|
+
def service_owl
|
32
|
+
str = <<-EOS
|
33
|
+
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
|
34
|
+
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
35
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
36
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
37
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
38
|
+
|
39
|
+
<> a owl:Ontology .
|
40
|
+
|
41
|
+
<#GreetedIndividual> a owl:Class;
|
42
|
+
owl:equivalentClass [ a owl:Restriction;
|
43
|
+
owl:onProperty <#greeting>;
|
44
|
+
owl:someValuesFrom xsd:string] .
|
45
|
+
|
46
|
+
<#NamedIndividual> a owl:Class;
|
47
|
+
owl:equivalentClass [ a owl:Restriction;
|
48
|
+
owl:minCardinality "1"^^xsd:int;
|
49
|
+
owl:onProperty foaf:name] .
|
50
|
+
|
51
|
+
<#SecondaryParameters> a owl:Class;
|
52
|
+
owl:equivalentClass [ a owl:Restriction;
|
53
|
+
owl:minCardinality "1"^^xsd:int;
|
54
|
+
owl:onProperty <#lang>] .
|
55
|
+
|
56
|
+
<#greeting> a owl:DatatypeProperty .
|
57
|
+
|
58
|
+
<#lang> a owl:DatatypeProperty .
|
59
|
+
|
60
|
+
foaf:name a owl:DatatypeProperty;
|
61
|
+
rdfs:isDefinedBy foaf:index.rdf .
|
62
|
+
EOS
|
63
|
+
|
64
|
+
parse_string(str, :ttl)
|
65
|
+
end
|
66
|
+
|
67
|
+
def owl_prefix
|
68
|
+
"http://sadiframework.org/examples/hello.owl#"
|
69
|
+
end
|
70
|
+
|
71
|
+
def process_object(in_graph, object)
|
72
|
+
out_graph = RDF::Graph.new
|
73
|
+
|
74
|
+
# obj = input_objects(in_graph).first
|
75
|
+
name = RDF::Query.execute(in_graph) do
|
76
|
+
pattern [object, RDF::FOAF.name, :name]
|
77
|
+
end
|
78
|
+
name = name.first.name
|
79
|
+
|
80
|
+
owl_vocab = RDF::Vocabulary.new(owl_prefix)
|
81
|
+
|
82
|
+
out_graph << RDF::Statement.new(object, RDF.type, output_classes.first)
|
83
|
+
out_graph << RDF::Statement.new(object, owl_vocab.greeting, "Hello, #{name}!")
|
84
|
+
|
85
|
+
out_graph
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
require 'sinatra/base'
|
2
|
+
require 'sinatra/linkeddata'
|
3
|
+
|
4
|
+
module SADI
|
5
|
+
class Server < Sinatra::Base
|
6
|
+
register Sinatra::LinkedData
|
7
|
+
|
8
|
+
get '/test' do
|
9
|
+
"test success"
|
10
|
+
end
|
11
|
+
|
12
|
+
get '/services/:service' do
|
13
|
+
get_description(params[:service])
|
14
|
+
end
|
15
|
+
|
16
|
+
post '/services/:service' do
|
17
|
+
handle_synchronous(params[:service])
|
18
|
+
end
|
19
|
+
|
20
|
+
get '/files/:service/:file' do
|
21
|
+
"send a file (ontology)"
|
22
|
+
end
|
23
|
+
|
24
|
+
helpers do
|
25
|
+
def rdf_response(repo)
|
26
|
+
raise "Must return an RDF::Graph or RDF::Repository" unless repo.is_a?(RDF::Graph) or repo.is_a?(RDF::Repository)
|
27
|
+
repo
|
28
|
+
end
|
29
|
+
|
30
|
+
|
31
|
+
def handle_synchronous(service)
|
32
|
+
rdf_response ExampleService.process_input(request.body.read,request.content_type)
|
33
|
+
end
|
34
|
+
|
35
|
+
def get_description(service)
|
36
|
+
ExampleService.service_description
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
module SADI
|
2
|
+
module SynchronousService
|
3
|
+
include SADI::Converter
|
4
|
+
|
5
|
+
def process_input(input, format)
|
6
|
+
gr = RDF::Graph.new
|
7
|
+
in_graph = parse_string(input,format)
|
8
|
+
input_objects(in_graph).each do |obj|
|
9
|
+
gr << process_object(in_graph, obj)
|
10
|
+
end
|
11
|
+
|
12
|
+
gr
|
13
|
+
end
|
14
|
+
|
15
|
+
def input_objects(graph)
|
16
|
+
cl = input_classes.first
|
17
|
+
solutions = RDF::Query.execute(graph) do
|
18
|
+
pattern [:obj, RDF.type, cl]
|
19
|
+
end
|
20
|
+
|
21
|
+
solutions.map(&:obj)
|
22
|
+
end
|
23
|
+
|
24
|
+
def input_classes
|
25
|
+
moby = RDF::Vocabulary.new('http://www.mygrid.org.uk/mygrid-moby-service#')
|
26
|
+
|
27
|
+
solutions = RDF::Query.execute(service_description) do
|
28
|
+
pattern [nil, moby.inputParameter, :param]
|
29
|
+
pattern [:param, moby.objectType, :in_class]
|
30
|
+
end
|
31
|
+
|
32
|
+
solutions.map(&:in_class)
|
33
|
+
end
|
34
|
+
|
35
|
+
def output_classes
|
36
|
+
moby = RDF::Vocabulary.new('http://www.mygrid.org.uk/mygrid-moby-service#')
|
37
|
+
|
38
|
+
solutions = RDF::Query.execute(service_description) do
|
39
|
+
pattern [nil, moby.outputParameter, :param]
|
40
|
+
pattern [:param, moby.objectType, :out_class]
|
41
|
+
end
|
42
|
+
|
43
|
+
solutions.map(&:out_class)
|
44
|
+
end
|
45
|
+
|
46
|
+
def service_description(service)
|
47
|
+
raise "Must implement a #service_description method returning an RDF::Graph or Repository"
|
48
|
+
end
|
49
|
+
|
50
|
+
def service_owl(service)
|
51
|
+
raise "Must implement a #service_owl method returning an RDF::Graph or Repository"
|
52
|
+
end
|
53
|
+
|
54
|
+
def process_object(owl_graph, object)
|
55
|
+
raise "Must implement a #process_input that takes an RDF::Graph or Repository as input and returns a new one"
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
data/spec/server_spec.rb
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
ENV['RACK_ENV'] = 'test'
|
2
|
+
|
3
|
+
require_relative '../lib/sadi-rb.rb'
|
4
|
+
require 'rspec'
|
5
|
+
require 'rack/test'
|
6
|
+
|
7
|
+
begin
|
8
|
+
Bundler.setup(:default, :development)
|
9
|
+
rescue Bundler::BundlerError => e
|
10
|
+
$stderr.puts e.message
|
11
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
12
|
+
exit e.status_code
|
13
|
+
end
|
14
|
+
|
15
|
+
describe SADI::Server do
|
16
|
+
include Rack::Test::Methods
|
17
|
+
|
18
|
+
def app
|
19
|
+
SADI::Server
|
20
|
+
end
|
21
|
+
|
22
|
+
def sample_input
|
23
|
+
<<-EOS
|
24
|
+
<rdf:RDF
|
25
|
+
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
26
|
+
xmlns:foaf="http://xmlns.com/foaf/0.1/"
|
27
|
+
xmlns:hello="http://sadiframework.org/examples/hello.owl#">
|
28
|
+
|
29
|
+
<hello:NamedIndividual rdf:about="http://sadiframework.org/examples/hello-input.rdf#1">
|
30
|
+
<foaf:name>Guy Incognito</foaf:name>
|
31
|
+
</hello:NamedIndividual>
|
32
|
+
|
33
|
+
</rdf:RDF>
|
34
|
+
EOS
|
35
|
+
end
|
36
|
+
|
37
|
+
describe "basic operation" do
|
38
|
+
it "returns service description" do
|
39
|
+
get '/services/hello'
|
40
|
+
last_response.should be_ok
|
41
|
+
last_response.body["<http://sadiframework.org/examples/hello>"].should_not be nil
|
42
|
+
end
|
43
|
+
|
44
|
+
it "returns output on post" do
|
45
|
+
header "Accept", "text/turtle"
|
46
|
+
header "Content-Type", "application/rdf+xml"
|
47
|
+
|
48
|
+
post '/services/hello', sample_input
|
49
|
+
|
50
|
+
last_response.should be_ok
|
51
|
+
last_response.body["Hello, Guy Incognito"].should_not be nil
|
52
|
+
last_response.content_type.should == "text/turtle"
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
context "content negotiation" do
|
57
|
+
%w{application/rdf+xml text/turtle application/ld+json}.each do |format|
|
58
|
+
describe "accepts #{format}" do
|
59
|
+
it {
|
60
|
+
header "Accept", format
|
61
|
+
get '/services/hello'
|
62
|
+
|
63
|
+
last_response.should be_ok
|
64
|
+
last_response.content_type.should == format
|
65
|
+
}
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
metadata
ADDED
@@ -0,0 +1,196 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sadi-rb
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Will Strinz
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-10-15 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: sinatra
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: sinatra-linkeddata
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: equivalent-xml
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
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: shoulda
|
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: '3.12'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.12'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: bundler
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ~>
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ~>
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: jeweler
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ~>
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 1.8.7
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ~>
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 1.8.7
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rspec
|
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
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rack-test
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - '>='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - '>='
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: pry
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - '>='
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - '>='
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
description: Build and run SADI services with ruby-rdf and sinatra
|
154
|
+
email: wstrinz@gmail.com
|
155
|
+
executables: []
|
156
|
+
extensions: []
|
157
|
+
extra_rdoc_files:
|
158
|
+
- LICENSE.txt
|
159
|
+
- README.md
|
160
|
+
files:
|
161
|
+
- .document
|
162
|
+
- Gemfile
|
163
|
+
- LICENSE.txt
|
164
|
+
- README.md
|
165
|
+
- Rakefile
|
166
|
+
- lib/sadi-rb.rb
|
167
|
+
- lib/sadi-rb/converter.rb
|
168
|
+
- lib/sadi-rb/example_service.rb
|
169
|
+
- lib/sadi-rb/server.rb
|
170
|
+
- lib/sadi-rb/synchronous_service.rb
|
171
|
+
- spec/server_spec.rb
|
172
|
+
homepage: http://github.com/wstrinz/sadi-rb
|
173
|
+
licenses:
|
174
|
+
- MIT
|
175
|
+
metadata: {}
|
176
|
+
post_install_message:
|
177
|
+
rdoc_options: []
|
178
|
+
require_paths:
|
179
|
+
- lib
|
180
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
181
|
+
requirements:
|
182
|
+
- - '>='
|
183
|
+
- !ruby/object:Gem::Version
|
184
|
+
version: '0'
|
185
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
186
|
+
requirements:
|
187
|
+
- - '>='
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '0'
|
190
|
+
requirements: []
|
191
|
+
rubyforge_project:
|
192
|
+
rubygems_version: 2.0.3
|
193
|
+
signing_key:
|
194
|
+
specification_version: 4
|
195
|
+
summary: Build and run SADI services with ruby-rdf and sinatra
|
196
|
+
test_files: []
|