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 +4 -4
- data/CHANGELOG.md +4 -0
- data/VERSION +1 -1
- data/lib/rdf/ldp/container.rb +2 -1
- data/lib/rdf/ldp/rdf_source.rb +7 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18904525367275a1836e08e9185538f21c63ec9d
|
4
|
+
data.tar.gz: 409697fda7683e668615bfc44835931c736f953d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d64846610138dbc4a68c447b2afc249ca5eee384ee8b95d4845c6dd89c7071896be631afd8a9f888becec3269c5c5ea60a59164ff9a29dbc5084a10734f2485
|
7
|
+
data.tar.gz: 5e36d6e154d7260f1db8db5d5ede91ddc9493391a1e84ab4d4fd9b210bec12fd9f5ca1605b52e98a9f7becd2b01f86976e6dd801824b4533507c2a0802f53a8b
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.1
|
data/lib/rdf/ldp/container.rb
CHANGED
@@ -157,7 +157,8 @@ module RDF::LDP
|
|
157
157
|
|
158
158
|
raise UnsupportedMediaType unless method
|
159
159
|
|
160
|
-
|
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)
|
data/lib/rdf/ldp/rdf_source.rb
CHANGED
@@ -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,
|
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.
|
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-
|
11
|
+
date: 2016-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|