sparql 1.0.0 → 1.0.1
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.
- data/README.markdown +1 -1
- data/VERSION +1 -1
- data/lib/rack/sparql/conneg.rb +2 -0
- data/lib/sparql/extensions.rb +2 -3
- metadata +2 -2
data/README.markdown
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.1
|
data/lib/rack/sparql/conneg.rb
CHANGED
@@ -16,9 +16,11 @@ module Rack; module SPARQL
|
|
16
16
|
class ContentNegotiation
|
17
17
|
VARY = {'Vary' => 'Accept'}.freeze
|
18
18
|
|
19
|
+
# @!attribute [r] app
|
19
20
|
# @return [#call]
|
20
21
|
attr_reader :app
|
21
22
|
|
23
|
+
# @!attribute [r] options
|
22
24
|
# @return [Hash{Symbol => Object}]
|
23
25
|
attr_reader :options
|
24
26
|
|
data/lib/sparql/extensions.rb
CHANGED
@@ -23,7 +23,7 @@ module RDF::Queryable
|
|
23
23
|
# This results in a subgraph where the object nodes are either URI references, literals, or blank nodes not
|
24
24
|
# serving as the subject of any statement in the graph.
|
25
25
|
#
|
26
|
-
# Used to implement the SPARQL `
|
26
|
+
# Used to implement the SPARQL `DESCRIBE` operator.
|
27
27
|
#
|
28
28
|
# @overload concise_bounded_description(*terms, &block)
|
29
29
|
# @param [Array<RDF::Term>] terms
|
@@ -33,7 +33,7 @@ module RDF::Queryable
|
|
33
33
|
# @param [Array<RDF::Term>] terms
|
34
34
|
# List of terms to include in the results.
|
35
35
|
# @param [Hash{Symbol => Object}] options
|
36
|
-
# @option options [Boolean] :non_subjects (
|
36
|
+
# @option options [Boolean] :non_subjects (false)
|
37
37
|
# If `term` is not a `subject` within `self`
|
38
38
|
# then add all `subject`s referencing the term as a `predicate` or `object`.
|
39
39
|
# @option options [RDF::Graph] graph
|
@@ -46,7 +46,6 @@ module RDF::Queryable
|
|
46
46
|
# @see http://www.w3.org/Submission/CBD/
|
47
47
|
def concise_bounded_description(*terms, &block)
|
48
48
|
options = terms.last.is_a?(Hash) ? terms.pop.dup : {}
|
49
|
-
options[:non_subjects] = true unless options.has_key?(:non_subjects)
|
50
49
|
|
51
50
|
graph = options[:graph] || RDF::Graph.new
|
52
51
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sparql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-01-
|
14
|
+
date: 2013-01-22 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rdf
|