sparql 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/AUTHORS +3 -0
- data/CREDITS +0 -0
- data/README.markdown +103 -53
- data/UNLICENSE +24 -0
- data/VERSION +1 -0
- data/bin/sparql +87 -0
- data/lib/sparql.rb +105 -22
- data/lib/sparql/algebra.rb +369 -0
- data/lib/sparql/algebra/evaluatable.rb +37 -0
- data/lib/sparql/algebra/expression.rb +284 -0
- data/lib/sparql/algebra/extensions.rb +159 -0
- data/lib/sparql/algebra/operator.rb +492 -0
- data/lib/sparql/algebra/operator/add.rb +34 -0
- data/lib/sparql/algebra/operator/and.rb +65 -0
- data/lib/sparql/algebra/operator/asc.rb +29 -0
- data/lib/sparql/algebra/operator/ask.rb +46 -0
- data/lib/sparql/algebra/operator/base.rb +46 -0
- data/lib/sparql/algebra/operator/bgp.rb +26 -0
- data/lib/sparql/algebra/operator/bound.rb +48 -0
- data/lib/sparql/algebra/operator/compare.rb +84 -0
- data/lib/sparql/algebra/operator/construct.rb +85 -0
- data/lib/sparql/algebra/operator/dataset.rb +77 -0
- data/lib/sparql/algebra/operator/datatype.rb +42 -0
- data/lib/sparql/algebra/operator/desc.rb +17 -0
- data/lib/sparql/algebra/operator/describe.rb +71 -0
- data/lib/sparql/algebra/operator/distinct.rb +50 -0
- data/lib/sparql/algebra/operator/divide.rb +43 -0
- data/lib/sparql/algebra/operator/equal.rb +32 -0
- data/lib/sparql/algebra/operator/exprlist.rb +52 -0
- data/lib/sparql/algebra/operator/filter.rb +71 -0
- data/lib/sparql/algebra/operator/graph.rb +28 -0
- data/lib/sparql/algebra/operator/greater_than.rb +32 -0
- data/lib/sparql/algebra/operator/greater_than_or_equal.rb +33 -0
- data/lib/sparql/algebra/operator/is_blank.rb +35 -0
- data/lib/sparql/algebra/operator/is_iri.rb +37 -0
- data/lib/sparql/algebra/operator/is_literal.rb +36 -0
- data/lib/sparql/algebra/operator/join.rb +67 -0
- data/lib/sparql/algebra/operator/lang.rb +29 -0
- data/lib/sparql/algebra/operator/lang_matches.rb +53 -0
- data/lib/sparql/algebra/operator/left_join.rb +95 -0
- data/lib/sparql/algebra/operator/less_than.rb +32 -0
- data/lib/sparql/algebra/operator/less_than_or_equal.rb +32 -0
- data/lib/sparql/algebra/operator/minus.rb +31 -0
- data/lib/sparql/algebra/operator/multiply.rb +34 -0
- data/lib/sparql/algebra/operator/not.rb +35 -0
- data/lib/sparql/algebra/operator/not_equal.rb +26 -0
- data/lib/sparql/algebra/operator/or.rb +65 -0
- data/lib/sparql/algebra/operator/order.rb +69 -0
- data/lib/sparql/algebra/operator/plus.rb +31 -0
- data/lib/sparql/algebra/operator/prefix.rb +45 -0
- data/lib/sparql/algebra/operator/project.rb +46 -0
- data/lib/sparql/algebra/operator/reduced.rb +47 -0
- data/lib/sparql/algebra/operator/regex.rb +70 -0
- data/lib/sparql/algebra/operator/same_term.rb +46 -0
- data/lib/sparql/algebra/operator/slice.rb +60 -0
- data/lib/sparql/algebra/operator/str.rb +35 -0
- data/lib/sparql/algebra/operator/subtract.rb +32 -0
- data/lib/sparql/algebra/operator/union.rb +55 -0
- data/lib/sparql/algebra/query.rb +99 -0
- data/lib/sparql/algebra/sxp_extensions.rb +35 -0
- data/lib/sparql/algebra/version.rb +20 -0
- data/lib/sparql/extensions.rb +102 -0
- data/lib/sparql/grammar.rb +298 -0
- data/lib/sparql/grammar/lexer.rb +609 -0
- data/lib/sparql/grammar/parser.rb +1383 -0
- data/lib/sparql/grammar/parser/meta.rb +1801 -0
- data/lib/sparql/results.rb +220 -0
- data/lib/sparql/version.rb +20 -0
- metadata +232 -62
- data/Rakefile +0 -22
- data/coverage/index.html +0 -252
- data/coverage/lib-sparql-execute_sparql_rb.html +0 -621
- data/coverage/lib-sparql_rb.html +0 -622
- data/lib/sparql/execute_sparql.rb +0 -27
- data/lib/sparql/sparql.treetop +0 -159
- data/sparql.gemspec +0 -16
- data/spec/spec.opts +0 -2
- data/spec/spec_helper.rb +0 -24
- data/spec/unit/graph_parsing_spec.rb +0 -76
- data/spec/unit/iri_parsing_spec.rb +0 -46
- data/spec/unit/prefixed_names_parsing_spec.rb +0 -40
- data/spec/unit/primitives_parsing_spec.rb +0 -26
- data/spec/unit/sparql_parsing_spec.rb +0 -72
- data/spec/unit/variables_parsing_spec.rb +0 -36
@@ -0,0 +1,220 @@
|
|
1
|
+
module SPARQL
|
2
|
+
# Generate SPARQL Results as Boolean, XML or JSON
|
3
|
+
#
|
4
|
+
# This module is a mixin for RDF::Query::Solutions
|
5
|
+
module Results
|
6
|
+
MIME_TYPES = {
|
7
|
+
:json => 'application/sparql-results+json',
|
8
|
+
:html => 'text/html',
|
9
|
+
:xml => 'application/sparql-results+xml',
|
10
|
+
}
|
11
|
+
|
12
|
+
##
|
13
|
+
# Generate Solutions as JSON
|
14
|
+
# @return [String]
|
15
|
+
# @see http://www.w3.org/TR/rdf-sparql-json-res/
|
16
|
+
def to_json
|
17
|
+
require 'json' unless defined?(::JSON)
|
18
|
+
|
19
|
+
bindings = self.map do |solution|
|
20
|
+
variable_names.map do |n|
|
21
|
+
case s = solution[n]
|
22
|
+
when RDF::URI
|
23
|
+
{n => {:type => "uri", :value => s.to_s }}
|
24
|
+
when RDF::Node
|
25
|
+
{n => {:type => "bnode", :value => s.id }}
|
26
|
+
when RDF::Literal
|
27
|
+
if s.datatype?
|
28
|
+
{n => {:type => "literal", :datatype => s.datatype.to_s, :value => s.to_s }}
|
29
|
+
elsif s.language
|
30
|
+
{n => {:type => "literal", "xml:lang" => s.language.to_s, :value => s.to_s }}
|
31
|
+
else
|
32
|
+
{n => {:type => "literal", :value => s.to_s }}
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end.compact
|
36
|
+
end.flatten
|
37
|
+
|
38
|
+
{
|
39
|
+
:head => { :vars => variable_names },
|
40
|
+
:results => { :bindings => bindings}
|
41
|
+
}.to_json
|
42
|
+
end
|
43
|
+
|
44
|
+
##
|
45
|
+
# Generate Solutions as XML
|
46
|
+
# @return [String]
|
47
|
+
# @see http://www.w3.org/TR/rdf-sparql-XMLres/
|
48
|
+
def to_xml
|
49
|
+
require 'builder' unless defined?(::Builder)
|
50
|
+
|
51
|
+
xml = ::Builder::XmlMarkup.new(:indent => 2)
|
52
|
+
xml.instruct!
|
53
|
+
xml.sparql(:xmlns => "http://www.w3.org/2005/sparql-results#") do
|
54
|
+
xml.head do
|
55
|
+
variable_names.each do |n|
|
56
|
+
xml.variable(:name => n)
|
57
|
+
end
|
58
|
+
end
|
59
|
+
xml.results do
|
60
|
+
self.each do |solution|
|
61
|
+
xml.result do
|
62
|
+
variable_names.each do |n|
|
63
|
+
s = solution[n]
|
64
|
+
next unless s
|
65
|
+
xml.binding(:name => n) do
|
66
|
+
case s
|
67
|
+
when RDF::URI
|
68
|
+
xml.uri(s.to_s)
|
69
|
+
when RDF::Node
|
70
|
+
xml.bnode(s.id)
|
71
|
+
when RDF::Literal
|
72
|
+
if s.datatype?
|
73
|
+
xml.literal(s.to_s, "datatype" => s.datatype.to_s)
|
74
|
+
elsif s.language
|
75
|
+
xml.literal(s.to_s, "xml:lang" => s.language.to_s)
|
76
|
+
else
|
77
|
+
xml.literal(s.to_s)
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
##
|
89
|
+
# Generate Solutions as HTML
|
90
|
+
# @return [String]
|
91
|
+
# @see http://www.w3.org/TR/rdf-sparql-XMLres/
|
92
|
+
def to_html
|
93
|
+
require 'builder' unless defined?(::Builder)
|
94
|
+
|
95
|
+
xml = ::Builder::XmlMarkup.new(:indent => 2)
|
96
|
+
xml.table(:class => "sparql") do
|
97
|
+
xml.tbody do
|
98
|
+
xml.tr do
|
99
|
+
variable_names.each do |n|
|
100
|
+
xml.th(n.to_s)
|
101
|
+
end
|
102
|
+
end
|
103
|
+
self.each do |solution|
|
104
|
+
xml.tr do
|
105
|
+
variable_names.each do |n|
|
106
|
+
xml.td(RDF::NTriples.serialize(solution[n]))
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
115
|
+
##
|
116
|
+
# Serialize solutions using the determined format
|
117
|
+
#
|
118
|
+
# @param [RDF::Query::Solutions, RDF::Queryable, Boolean] solutions
|
119
|
+
# Solutions as either a solution set, a Queryable object (such as a graph) or a Boolean value
|
120
|
+
# @param [Hash{Symbol => Object}] options
|
121
|
+
# @option options [:format]
|
122
|
+
# Format of results, one of :html, :json or :xml.
|
123
|
+
# May also be an RDF::Writer format to serialize DESCRIBE or CONSTRUCT results
|
124
|
+
# @option options [:content_type]
|
125
|
+
# Format of results, one of 'application/sparql-results+json' or 'application/sparql-results+xml'
|
126
|
+
# May also be an RDF::Writer content_type to serialize DESCRIBE or CONSTRUCT results
|
127
|
+
# @return [String]
|
128
|
+
# String with serialized results and #content_type
|
129
|
+
def serialize_results(solutions, options = {})
|
130
|
+
format = options[:format]
|
131
|
+
content_type = options[:content_type]
|
132
|
+
format ||= RDF::Query::Solutions::MIME_TYPES.invert[content_type] if content_type
|
133
|
+
|
134
|
+
serialization = case solutions
|
135
|
+
when TrueClass, FalseClass
|
136
|
+
case format ||= :xml
|
137
|
+
when :json
|
138
|
+
require 'json' unless defined?(::JSON)
|
139
|
+
{:boolean => solutions}.to_json
|
140
|
+
when :xml
|
141
|
+
require 'builder' unless defined?(::Builder)
|
142
|
+
xml = ::Builder::XmlMarkup.new(:indent => 2)
|
143
|
+
xml.instruct!
|
144
|
+
xml.sparql(:xmlns => "http://www.w3.org/2005/sparql-results#") do
|
145
|
+
xml.boolean(solutions.to_s)
|
146
|
+
end
|
147
|
+
when :html
|
148
|
+
require 'builder' unless defined?(::Builder)
|
149
|
+
content_type = "text/html"
|
150
|
+
xml = ::Builder::XmlMarkup.new(:indent => 2)
|
151
|
+
xml.div(solutions.to_s, :class => "sparql")
|
152
|
+
end
|
153
|
+
when RDF::Queryable
|
154
|
+
fmt = RDF::Format.for(format ? format.to_sym : {:content_type => content_type})
|
155
|
+
fmt ||= RDF::NTriples::Format
|
156
|
+
format ||= fmt.to_sym
|
157
|
+
content_type ||= fmt.content_types.first
|
158
|
+
fmt.writer.buffer << solutions
|
159
|
+
when RDF::Query::Solutions
|
160
|
+
case format ||= :xml
|
161
|
+
when :json then solutions.to_json
|
162
|
+
when :xml then solutions.to_xml
|
163
|
+
when :html then solutions.to_html
|
164
|
+
end
|
165
|
+
end
|
166
|
+
|
167
|
+
content_type ||= RDF::Query::Solutions::MIME_TYPES[format] if format
|
168
|
+
|
169
|
+
serialization.instance_variable_set(:"@content_type", content_type)
|
170
|
+
def serialization.content_type; @content_type; end
|
171
|
+
|
172
|
+
serialization
|
173
|
+
end
|
174
|
+
module_function :serialize_results
|
175
|
+
|
176
|
+
ERROR_MESSAGE = %q(<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
177
|
+
<html>
|
178
|
+
<head>
|
179
|
+
<title>SPARQL Processing Service: %s</title>
|
180
|
+
</head>
|
181
|
+
<body>
|
182
|
+
<p>%s: %s</p>
|
183
|
+
</body>
|
184
|
+
</html>
|
185
|
+
).freeze
|
186
|
+
|
187
|
+
##
|
188
|
+
# Serialize error results
|
189
|
+
#
|
190
|
+
# Returns appropriate content based upon an execution exception
|
191
|
+
# @param [Exception] exception
|
192
|
+
# @param [Hash{Symbol => Object}] options
|
193
|
+
# @option options [:format]
|
194
|
+
# Format of results, one of :html, :json or :xml.
|
195
|
+
# May also be an RDF::Writer format to serialize DESCRIBE or CONSTRUCT results
|
196
|
+
# @option options [:content_type]
|
197
|
+
# Format of results, one of 'application/sparql-results+json' or 'application/sparql-results+xml'
|
198
|
+
# May also be an RDF::Writer content_type to serialize DESCRIBE or CONSTRUCT results
|
199
|
+
# @return [String]
|
200
|
+
# String with serialized results and #content_type
|
201
|
+
def serialize_exception(exception, options = {})
|
202
|
+
format = options[:format]
|
203
|
+
content_type = options[:content_type]
|
204
|
+
content_type ||= RDF::Query::Solutions::MIME_TYPES[format]
|
205
|
+
serialization = case content_type
|
206
|
+
when 'text/html'
|
207
|
+
title = exception.respond_to?(:title) ? exception.title : exception.class.to_s
|
208
|
+
ERROR_MESSAGE % [title, title, exception.message]
|
209
|
+
else
|
210
|
+
content_type = "text/plain"
|
211
|
+
exception.message
|
212
|
+
end
|
213
|
+
|
214
|
+
serialization.instance_variable_set(:"@content_type", content_type)
|
215
|
+
def serialization.content_type; @content_type; end
|
216
|
+
|
217
|
+
serialization
|
218
|
+
end
|
219
|
+
module_function :serialize_exception
|
220
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module SPARQL
|
2
|
+
module VERSION
|
3
|
+
VERSION_FILE = File.join(File.expand_path(File.dirname(__FILE__)), "..", "..", "VERSION")
|
4
|
+
MAJOR, MINOR, TINY, EXTRA = File.read(VERSION_FILE).chop.split(".")
|
5
|
+
|
6
|
+
STRING = [MAJOR, MINOR, TINY, EXTRA].compact.join('.')
|
7
|
+
|
8
|
+
##
|
9
|
+
# @return [String]
|
10
|
+
def self.to_s() STRING end
|
11
|
+
|
12
|
+
##
|
13
|
+
# @return [String]
|
14
|
+
def self.to_str() STRING end
|
15
|
+
|
16
|
+
##
|
17
|
+
# @return [Array(Integer, Integer, Integer)]
|
18
|
+
def self.to_a() [MAJOR, MINOR, TINY] end
|
19
|
+
end
|
20
|
+
end
|
metadata
CHANGED
@@ -1,80 +1,250 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: sparql
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
|
-
authors:
|
7
|
+
authors:
|
8
|
+
- Gregg Kellogg
|
9
|
+
- Arto Bendiken
|
10
|
+
- Ben Levendar
|
7
11
|
- Pius Uzamere
|
8
12
|
autorequire:
|
9
13
|
bindir: bin
|
10
14
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
15
|
+
date: 2011-09-13 00:00:00.000000000 Z
|
16
|
+
dependencies:
|
17
|
+
- !ruby/object:Gem::Dependency
|
18
|
+
name: rdf
|
19
|
+
requirement: &2156022280 !ruby/object:Gem::Requirement
|
20
|
+
none: false
|
21
|
+
requirements:
|
22
|
+
- - ! '>='
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: 0.3.4
|
17
25
|
type: :runtime
|
18
|
-
|
19
|
-
version_requirements:
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
26
|
+
prerelease: false
|
27
|
+
version_requirements: *2156022280
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: builder
|
30
|
+
requirement: &2156020980 !ruby/object:Gem::Requirement
|
31
|
+
none: false
|
32
|
+
requirements:
|
33
|
+
- - ! '>='
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: 3.0.0
|
36
|
+
type: :runtime
|
37
|
+
prerelease: false
|
38
|
+
version_requirements: *2156020980
|
39
|
+
- !ruby/object:Gem::Dependency
|
40
|
+
name: json
|
41
|
+
requirement: &2156018920 !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ! '>='
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 1.5.1
|
47
|
+
type: :runtime
|
48
|
+
prerelease: false
|
49
|
+
version_requirements: *2156018920
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
name: sxp
|
52
|
+
requirement: &2156017400 !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
54
|
+
requirements:
|
55
|
+
- - ! '>='
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: 0.0.14
|
58
|
+
type: :runtime
|
59
|
+
prerelease: false
|
60
|
+
version_requirements: *2156017400
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: sparql-client
|
63
|
+
requirement: &2156015680 !ruby/object:Gem::Requirement
|
64
|
+
none: false
|
65
|
+
requirements:
|
66
|
+
- - ! '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.0.9
|
69
|
+
type: :runtime
|
70
|
+
prerelease: false
|
71
|
+
version_requirements: *2156015680
|
72
|
+
- !ruby/object:Gem::Dependency
|
73
|
+
name: rdf-xsd
|
74
|
+
requirement: &2156014600 !ruby/object:Gem::Requirement
|
75
|
+
none: false
|
76
|
+
requirements:
|
77
|
+
- - ! '>='
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: 0.3.4
|
80
|
+
type: :runtime
|
81
|
+
prerelease: false
|
82
|
+
version_requirements: *2156014600
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: linkeddata
|
85
|
+
requirement: &2156013760 !ruby/object:Gem::Requirement
|
86
|
+
none: false
|
87
|
+
requirements:
|
88
|
+
- - ! '>='
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: 0.3.4
|
91
|
+
type: :development
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: *2156013760
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: open-uri-cached
|
96
|
+
requirement: &2156011940 !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: 0.0.4
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: *2156011940
|
105
|
+
- !ruby/object:Gem::Dependency
|
106
|
+
name: nokogiri
|
107
|
+
requirement: &2156010340 !ruby/object:Gem::Requirement
|
108
|
+
none: false
|
109
|
+
requirements:
|
110
|
+
- - ! '>='
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: 1.4.4
|
113
|
+
type: :development
|
114
|
+
prerelease: false
|
115
|
+
version_requirements: *2156010340
|
116
|
+
- !ruby/object:Gem::Dependency
|
117
|
+
name: rspec
|
118
|
+
requirement: &2156009140 !ruby/object:Gem::Requirement
|
119
|
+
none: false
|
120
|
+
requirements:
|
121
|
+
- - ! '>='
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: 2.5.0
|
124
|
+
type: :development
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: *2156009140
|
127
|
+
- !ruby/object:Gem::Dependency
|
128
|
+
name: spira
|
129
|
+
requirement: &2156007540 !ruby/object:Gem::Requirement
|
130
|
+
none: false
|
131
|
+
requirements:
|
132
|
+
- - ! '>='
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: 0.0.12
|
135
|
+
type: :development
|
136
|
+
prerelease: false
|
137
|
+
version_requirements: *2156007540
|
138
|
+
- !ruby/object:Gem::Dependency
|
139
|
+
name: yard
|
140
|
+
requirement: &2156005820 !ruby/object:Gem::Requirement
|
141
|
+
none: false
|
142
|
+
requirements:
|
143
|
+
- - ! '>='
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 0.6.0
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: *2156005820
|
149
|
+
description: ! "\n Implements SPARQL grammar parsing to SPARQL Algebra, SPARQL
|
150
|
+
Algebra processing\n and includes SPARQL Client for accessing remote repositories."
|
151
|
+
email: public-rdf-ruby@w3.org
|
152
|
+
executables:
|
153
|
+
- sparql
|
29
154
|
extensions: []
|
30
|
-
|
31
155
|
extra_rdoc_files: []
|
32
|
-
|
33
|
-
|
156
|
+
files:
|
157
|
+
- AUTHORS
|
158
|
+
- CREDITS
|
34
159
|
- README.markdown
|
35
|
-
-
|
36
|
-
-
|
160
|
+
- UNLICENSE
|
161
|
+
- VERSION
|
162
|
+
- bin/sparql
|
163
|
+
- lib/sparql/algebra/evaluatable.rb
|
164
|
+
- lib/sparql/algebra/expression.rb
|
165
|
+
- lib/sparql/algebra/extensions.rb
|
166
|
+
- lib/sparql/algebra/operator/add.rb
|
167
|
+
- lib/sparql/algebra/operator/and.rb
|
168
|
+
- lib/sparql/algebra/operator/asc.rb
|
169
|
+
- lib/sparql/algebra/operator/ask.rb
|
170
|
+
- lib/sparql/algebra/operator/base.rb
|
171
|
+
- lib/sparql/algebra/operator/bgp.rb
|
172
|
+
- lib/sparql/algebra/operator/bound.rb
|
173
|
+
- lib/sparql/algebra/operator/compare.rb
|
174
|
+
- lib/sparql/algebra/operator/construct.rb
|
175
|
+
- lib/sparql/algebra/operator/dataset.rb
|
176
|
+
- lib/sparql/algebra/operator/datatype.rb
|
177
|
+
- lib/sparql/algebra/operator/desc.rb
|
178
|
+
- lib/sparql/algebra/operator/describe.rb
|
179
|
+
- lib/sparql/algebra/operator/distinct.rb
|
180
|
+
- lib/sparql/algebra/operator/divide.rb
|
181
|
+
- lib/sparql/algebra/operator/equal.rb
|
182
|
+
- lib/sparql/algebra/operator/exprlist.rb
|
183
|
+
- lib/sparql/algebra/operator/filter.rb
|
184
|
+
- lib/sparql/algebra/operator/graph.rb
|
185
|
+
- lib/sparql/algebra/operator/greater_than.rb
|
186
|
+
- lib/sparql/algebra/operator/greater_than_or_equal.rb
|
187
|
+
- lib/sparql/algebra/operator/is_blank.rb
|
188
|
+
- lib/sparql/algebra/operator/is_iri.rb
|
189
|
+
- lib/sparql/algebra/operator/is_literal.rb
|
190
|
+
- lib/sparql/algebra/operator/join.rb
|
191
|
+
- lib/sparql/algebra/operator/lang.rb
|
192
|
+
- lib/sparql/algebra/operator/lang_matches.rb
|
193
|
+
- lib/sparql/algebra/operator/left_join.rb
|
194
|
+
- lib/sparql/algebra/operator/less_than.rb
|
195
|
+
- lib/sparql/algebra/operator/less_than_or_equal.rb
|
196
|
+
- lib/sparql/algebra/operator/minus.rb
|
197
|
+
- lib/sparql/algebra/operator/multiply.rb
|
198
|
+
- lib/sparql/algebra/operator/not.rb
|
199
|
+
- lib/sparql/algebra/operator/not_equal.rb
|
200
|
+
- lib/sparql/algebra/operator/or.rb
|
201
|
+
- lib/sparql/algebra/operator/order.rb
|
202
|
+
- lib/sparql/algebra/operator/plus.rb
|
203
|
+
- lib/sparql/algebra/operator/prefix.rb
|
204
|
+
- lib/sparql/algebra/operator/project.rb
|
205
|
+
- lib/sparql/algebra/operator/reduced.rb
|
206
|
+
- lib/sparql/algebra/operator/regex.rb
|
207
|
+
- lib/sparql/algebra/operator/same_term.rb
|
208
|
+
- lib/sparql/algebra/operator/slice.rb
|
209
|
+
- lib/sparql/algebra/operator/str.rb
|
210
|
+
- lib/sparql/algebra/operator/subtract.rb
|
211
|
+
- lib/sparql/algebra/operator/union.rb
|
212
|
+
- lib/sparql/algebra/operator.rb
|
213
|
+
- lib/sparql/algebra/query.rb
|
214
|
+
- lib/sparql/algebra/sxp_extensions.rb
|
215
|
+
- lib/sparql/algebra/version.rb
|
216
|
+
- lib/sparql/algebra.rb
|
217
|
+
- lib/sparql/extensions.rb
|
218
|
+
- lib/sparql/grammar/lexer.rb
|
219
|
+
- lib/sparql/grammar/parser/meta.rb
|
220
|
+
- lib/sparql/grammar/parser.rb
|
221
|
+
- lib/sparql/grammar.rb
|
222
|
+
- lib/sparql/results.rb
|
223
|
+
- lib/sparql/version.rb
|
37
224
|
- lib/sparql.rb
|
38
|
-
|
39
|
-
|
40
|
-
-
|
41
|
-
- coverage/lib-sparql-execute_sparql_rb.html
|
42
|
-
- coverage/lib-sparql_rb.html
|
43
|
-
has_rdoc: true
|
44
|
-
homepage: http://github.com/pius/sparql
|
45
|
-
licenses: []
|
46
|
-
|
225
|
+
homepage: http://sparql.rubyforge.org/
|
226
|
+
licenses:
|
227
|
+
- Public Domain
|
47
228
|
post_install_message:
|
48
229
|
rdoc_options: []
|
49
|
-
|
50
|
-
require_paths:
|
230
|
+
require_paths:
|
51
231
|
- lib
|
52
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
232
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
233
|
+
none: false
|
234
|
+
requirements:
|
235
|
+
- - ! '>='
|
236
|
+
- !ruby/object:Gem::Version
|
237
|
+
version: 1.8.1
|
238
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
239
|
+
none: false
|
240
|
+
requirements:
|
241
|
+
- - ! '>='
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: '0'
|
64
244
|
requirements: []
|
65
|
-
|
66
|
-
|
67
|
-
rubygems_version: 1.3.5
|
245
|
+
rubyforge_project: sparql
|
246
|
+
rubygems_version: 1.8.10
|
68
247
|
signing_key:
|
69
248
|
specification_version: 3
|
70
249
|
summary: SPARQL library for Ruby.
|
71
|
-
test_files:
|
72
|
-
- spec/spec.opts
|
73
|
-
- spec/spec_helper.rb
|
74
|
-
- spec/unit/graph_parsing_spec.rb
|
75
|
-
- spec/unit/graph_parsing_spec.rb
|
76
|
-
- spec/unit/iri_parsing_spec.rb
|
77
|
-
- spec/unit/sparql_parsing_spec.rb
|
78
|
-
- spec/unit/variables_parsing_spec.rb
|
79
|
-
- spec/unit/primitives_parsing_spec.rb
|
80
|
-
- spec/unit/prefixed_names_parsing_spec.rb
|
250
|
+
test_files: []
|