Class: Marc2LinkedData::Sparql

Inherits:
Object
  • Object
show all
Defined in:
lib/marc2linkeddata/sparql.rb

Direct Known Subclasses

SparqlDbpedia, SparqlLocalLoc, SparqlPubmed

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#sparqlObject (readonly)

Returns the value of attribute sparql.



6
7
8
# File 'lib/marc2linkeddata/sparql.rb', line 6

def sparql
  @sparql
end