rdf-virtuoso 0.1.6 → 0.1.7
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.
- checksums.yaml +7 -0
- data/LICENSE +674 -0
- data/README.md +9 -4
- data/VERSION +1 -0
- data/lib/rdf/virtuoso.rb +3 -0
- data/lib/rdf/virtuoso/parser.rb +2 -2
- data/lib/rdf/virtuoso/query.rb +8 -8
- data/lib/rdf/virtuoso/repository.rb +13 -13
- data/lib/rdf/virtuoso/version.rb +17 -4
- metadata +61 -62
- data/spec/prefixes_spec.rb +0 -48
- data/spec/query_spec.rb +0 -384
- data/spec/repository_spec.rb +0 -40
- data/spec/spec_helper.rb +0 -10
data/spec/repository_spec.rb
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
$:.unshift "."
|
2
|
-
require File.join(File.dirname(__FILE__), 'spec_helper')
|
3
|
-
require 'rdf/spec/repository'
|
4
|
-
|
5
|
-
describe RDF::Virtuoso::Repository do
|
6
|
-
|
7
|
-
before(:each) do
|
8
|
-
@uri = "http://localhost:8890/sparql"
|
9
|
-
@update_uri = "http://localhost:8890/sparql-auth"
|
10
|
-
@repository = RDF::Virtuoso::Repository.new(@uri)
|
11
|
-
end
|
12
|
-
|
13
|
-
#include RDF_Repository # not implemented
|
14
|
-
|
15
|
-
it "should support connecting to a Virtuoso SPARQL endpoint" do
|
16
|
-
repo = RDF::Virtuoso::Repository.new(@uri)
|
17
|
-
repo.instance_variable_get("@sparul_endpoint").should == "/sparql"
|
18
|
-
end
|
19
|
-
|
20
|
-
it "should support accept port in repository endpoint" do
|
21
|
-
repo = RDF::Virtuoso::Repository.new(@uri)
|
22
|
-
repo.instance_variable_get("@base_uri").should == "http://localhost:8890"
|
23
|
-
end
|
24
|
-
|
25
|
-
it "should support connecting to a Virtuoso SPARUL endpoint with BASIC AUTH" do
|
26
|
-
repo = RDF::Virtuoso::Repository.new(@uri, :update_uri => @update_uri, :username => 'admin', :password => 'secret', :auth_method => 'basic')
|
27
|
-
repo.instance_variable_get("@auth_method").should == "basic"
|
28
|
-
end
|
29
|
-
|
30
|
-
it "should support connecting to a Virtuoso SPARUL endpoint with DIGEST AUTH" do
|
31
|
-
repo = RDF::Virtuoso::Repository.new(@uri, :update_uri => @update_uri, :username => 'admin', :password => 'secret', :auth_method => 'digest')
|
32
|
-
repo.instance_variable_get("@sparul_endpoint").should == "/sparql-auth"
|
33
|
-
end
|
34
|
-
|
35
|
-
it "should support timeout option" do
|
36
|
-
repo = RDF::Virtuoso::Repository.new(@uri, :timeout => 10)
|
37
|
-
repo.instance_variable_get("@timeout").should == 10
|
38
|
-
end
|
39
|
-
|
40
|
-
end
|