Class: RDFMapper::Adapters::SPARQL

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

Overview

-

Defined Under Namespace

Classes: Query

Instance Method Summary collapse

Methods inherited from Base

#create, #reload, #save, #update

Methods included from Logger

#debug, #fatal, #warn

Constructor Details

#initialize(cls, options = {}) ⇒ SPARQL

-


11
12
13
# File 'lib/lib/adapters/sparql.rb', line 11

def initialize(cls, options = {})
  @rdf, @options = cls, options
end

Instance Method Details

#load(query) ⇒ Object

-


18
19
20
# File 'lib/lib/adapters/sparql.rb', line 18

def load(query)
  Query.new(query, @options).find
end