Class: Qa::LDF::Client
- Inherits:
-
Object
- Object
- Qa::LDF::Client
- Defined in:
- lib/qa/ldf/client.rb
Overview
A client for the LD cache server
Instance Method Summary collapse
- #get(uri:, dataset: :'') ⇒ RDF::Graph
-
#initialize {|Client| ... } ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize {|Client| ... } ⇒ Client
Returns a new instance of Client.
8 9 10 |
# File 'lib/qa/ldf/client.rb', line 8 def initialize yield self if block_given? end |
Instance Method Details
#get(uri:, dataset: :'') ⇒ RDF::Graph
20 21 22 |
# File 'lib/qa/ldf/client.rb', line 20 def get(uri:, dataset: :'') RDF::Graph.load(cache_uri(uri, dataset)) end |