rdf-ldp 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8d9f70eb41e34c21160f4860321943523ae5ac3a
4
- data.tar.gz: d5227a618e1c9397efb37c5dbe6a9330ec8dbea0
3
+ metadata.gz: 18904525367275a1836e08e9185538f21c63ec9d
4
+ data.tar.gz: 409697fda7683e668615bfc44835931c736f953d
5
5
  SHA512:
6
- metadata.gz: 8071e2dbcaeb2094d86f1064c6d87c7d3e50823e222d6d6316f7ddde0f9f3f517642751844caf8c175b67d1b45beccc189f277e6c876089590795ba3a0350f15
7
- data.tar.gz: 3e3a7d686765be59f1990704ea1e4a37ffdadc1e36097ddcbc9a52a60779947a9ef61c3df1998625f54706cfd1632fa6c5b0955cfb470c0fdcc2c4c79178fe10
6
+ metadata.gz: 9d64846610138dbc4a68c447b2afc249ca5eee384ee8b95d4845c6dd89c7071896be631afd8a9f888becec3269c5c5ea60a59164ff9a29dbc5084a10734f2485
7
+ data.tar.gz: 5e36d6e154d7260f1db8db5d5ede91ddc9493391a1e84ab4d4fd9b210bec12fd9f5ca1605b52e98a9f7becd2b01f86976e6dd801824b4533507c2a0802f53a8b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ 0.9.1
2
+ -----
3
+ - Add support for relative IRIs in SPARQL Update PATCH requests.
4
+
1
5
  0.9.0
2
6
  -----
3
7
  - Change membership resource handling to accept memberhip resources
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.0
1
+ 0.9.1
@@ -157,7 +157,8 @@ module RDF::LDP
157
157
 
158
158
  raise UnsupportedMediaType unless method
159
159
 
160
- temp_graph = RDF::Graph.new << graph.statements
160
+ temp_data = RDF::Repository.new << graph.statements
161
+ temp_graph = RDF::Graph.new(graph_name: graph.name, data: temp_data)
161
162
  send(method, env['rack.input'], temp_graph)
162
163
 
163
164
  validate_statements!(temp_graph)
@@ -20,12 +20,12 @@ module RDF::LDP
20
20
  # `Rack::LDP::ContentNegotiation`.
21
21
  #
22
22
  # @note the contents of `#metagraph`'s are *not* the same as
23
- # LDP-server-managed triples. `#metagraph` contains internal properties of
24
- # the RDFSource which are necessary for the server's management purposes,
25
- # but MAY be absent from (or in conflict with) the representation of its
23
+ # LDP-server-managed triples. `#metagraph` contains internal properties of
24
+ # the RDFSource which are necessary for the server's management purposes,
25
+ # but MAY be absent from (or in conflict with) the representation of its
26
26
  # state in `#graph`.
27
27
  #
28
- # @see http://www.w3.org/TR/ldp/#dfn-linked-data-platform-rdf-source
28
+ # @see http://www.w3.org/TR/ldp/#dfn-linked-data-platform-rdf-source
29
29
  # Definition of ldp:RDFSource in the LDP specification
30
30
  class RDFSource < Resource
31
31
  class << self
@@ -199,7 +199,9 @@ module RDF::LDP
199
199
  end
200
200
 
201
201
  def sparql_update(input, graph)
202
- SPARQL.execute(input.read, graph, update: true)
202
+ SPARQL.execute(input.read, graph,
203
+ update: true,
204
+ base_uri: RDF::URI.intern(graph.name))
203
205
  rescue SPARQL::MalformedQuery => e
204
206
  raise BadRequest, e.message
205
207
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-ldp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Johnson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-13 00:00:00.000000000 Z
11
+ date: 2016-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack