Class: Pho::StoreSparqlClient
- Inherits:
-
Pho::Sparql::SparqlClient
- Object
- Pho::Sparql::SparqlClient
- Pho::StoreSparqlClient
- Defined in:
- lib/pho/store.rb
Instance Attribute Summary
Attributes inherited from Pho::Sparql::SparqlClient
#client, #endpoint, #graphs, #named_graphs, #output_parameter_name, #supports_rdf_json, #supports_sparql_json
Instance Method Summary collapse
-
#describe_uri(uri, format = "application/rdf+xml", type = :cbd) ⇒ Object
Override default behaviour to use the Stores Describe service instead when requesting CBDs.
-
#initialize(store, endpoint, client = HTTPClient.new()) ⇒ StoreSparqlClient
constructor
A new instance of StoreSparqlClient.
Methods inherited from Pho::Sparql::SparqlClient
#add_default_graph, #add_named_graph, #ask, #construct, #describe, #multi_describe, #query, #select
Constructor Details
#initialize(store, endpoint, client = HTTPClient.new()) ⇒ StoreSparqlClient
Returns a new instance of StoreSparqlClient.
520 521 522 523 |
# File 'lib/pho/store.rb', line 520 def initialize(store, endpoint, client=HTTPClient.new() ) super(endpoint, client) @store = store end |
Instance Method Details
#describe_uri(uri, format = "application/rdf+xml", type = :cbd) ⇒ Object
Override default behaviour to use the Stores Describe service instead when requesting CBDs
527 528 529 530 531 532 533 |
# File 'lib/pho/store.rb', line 527 def describe_uri(uri, format="application/rdf+xml", type=:cbd) if type == :cbd return @store.describe(uri, format) else return super end end |