marmotta 0.2.1 → 0.3.0
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 +4 -4
- data/lib/marmotta/ld_path_connection.rb +6 -6
- data/lib/marmotta/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d1d9554c26b785ac4bda424b2e50951434c4a6b
|
4
|
+
data.tar.gz: 16dd89ad2e352dccbf76789b37f4068c91492260
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aaedbfbc5129ab30ee63967040c2adba577597d7cf2b9ca540cf53fd9b553001289085250e2f55efe2d84f2d0d5253aaf04381b79e5cee77f80b29f9f8d2302c
|
7
|
+
data.tar.gz: c63b1aee101eb2d9c999b73f0ca43ce43ea49915fe48fe13839fbfa50036ac83d0b70a12b30647e2c2c79d59832f51eb8513d733d0df5bb396545e7fb3089bea
|
@@ -1,17 +1,17 @@
|
|
1
1
|
module Marmotta
|
2
2
|
class LdPathConnection
|
3
|
-
attr_reader :connection, :
|
3
|
+
attr_reader :connection, :uri
|
4
4
|
# @param [Hurley::Client] connection A client to use for running queries.
|
5
5
|
# @param [String, #to_s] An LDPath to run
|
6
|
-
def initialize(connection,
|
6
|
+
def initialize(connection, uri)
|
7
7
|
@connection = connection
|
8
|
-
@
|
8
|
+
@uri = uri.to_s
|
9
9
|
end
|
10
10
|
|
11
|
-
def get(
|
11
|
+
def get(path)
|
12
12
|
result = connection.get(api_path) do |req|
|
13
|
-
req.query[:uri] = uri
|
14
|
-
req.query[:path] = path
|
13
|
+
req.query[:uri] = uri
|
14
|
+
req.query[:path] = path.to_s
|
15
15
|
req.query.delete(:graph)
|
16
16
|
req.header = {}
|
17
17
|
end
|
data/lib/marmotta/version.rb
CHANGED