Class: Solis::Shape::Reader::File

Inherits:
Object
  • Object
show all
Defined in:
lib/solis/shape/reader/file.rb

Class Method Summary collapse

Class Method Details

.read(filename, options = {}) ⇒ Object



7
8
9
10
11
12
# File 'lib/solis/shape/reader/file.rb', line 7

def self.read(filename, options = {})
  @filename = filename
  raise "File not found #{@filename}" unless ::File.exist?(@filename)

  RDF::Graph.load(@filename, **options)
end