Sha256: 7603da0100749c8217b9ca4d170c4234d7cd70d9e604e7afb7fadfae3e04b220

Contents?: true

Size: 329 Bytes

Versions: 15

Compression:

Stored size: 329 Bytes

Contents

require 'linkeddata'

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

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
solis-0.78.0 lib/solis/shape/reader/file.rb
solis-0.77.0 lib/solis/shape/reader/file.rb
solis-0.76.0 lib/solis/shape/reader/file.rb
solis-0.75.0 lib/solis/shape/reader/file.rb
solis-0.74.0 lib/solis/shape/reader/file.rb
solis-0.73.0 lib/solis/shape/reader/file.rb
solis-0.72.0 lib/solis/shape/reader/file.rb
solis-0.71.0 lib/solis/shape/reader/file.rb
solis-0.70.0 lib/solis/shape/reader/file.rb
solis-0.69.0 lib/solis/shape/reader/file.rb
solis-0.68.0 lib/solis/shape/reader/file.rb
solis-0.67.0 lib/solis/shape/reader/file.rb
solis-0.66.0 lib/solis/shape/reader/file.rb
solis-0.65.0 lib/solis/shape/reader/file.rb
solis-0.64.0 lib/solis/shape/reader/file.rb