Class: Marc2LinkedData::Sparql
- Inherits:
-
Object
- Object
- Marc2LinkedData::Sparql
- Defined in:
- lib/marc2linkeddata/sparql.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#sparql ⇒ Object
readonly
Returns the value of attribute sparql.
Instance Method Summary collapse
-
#initialize(uri) ⇒ Sparql
constructor
A new instance of Sparql.
Constructor Details
#initialize(uri) ⇒ Sparql
Returns a new instance of Sparql.
8 9 10 11 |
# File 'lib/marc2linkeddata/sparql.rb', line 8 def initialize(uri) # https://github.com/ruby-rdf/sparql-client @sparql = SPARQL::Client.new(uri) end |
Instance Attribute Details
#sparql ⇒ Object (readonly)
Returns the value of attribute sparql.
6 7 8 |
# File 'lib/marc2linkeddata/sparql.rb', line 6 def sparql @sparql end |