Sha256: 7c302807db68b747e695f2935ca428b8cc277818bf8100ad97cabfb6ea9179bb

Contents?: true

Size: 892 Bytes

Versions: 2

Compression:

Stored size: 892 Bytes

Contents

require 'rdf'
require 'ebnf'

module RDF
  ##
  # **`RDF::TriG`** is an TriG extension for RDF.rb.
  #
  # @example Requiring the `RDF::TriG` module
  #   require 'rdf/trig'
  #
  # @example Parsing RDF statements from an TriG file
  #   RDF::TriG::Reader.open("etc/foaf.trig") do |reader|
  #     reader.each_statement do |statement|
  #       puts statement.inspect
  #     end
  #   end
  #
  # @see http://rubydoc.info/github/ruby-rdf/rdf-turtle/
  # @see http://rubydoc.info/github/ruby-rdf/rdf/master/
  # @see http://www.w3.org/TR/trig/
  #
  # @author [Gregg Kellogg](http://greggkellogg.net/)
  module TriG
    require  'rdf/trig/format'
    autoload :Reader,     'rdf/trig/reader'
    autoload :VERSION,    'rdf/trig/version'
    autoload :Writer,     'rdf/trig/writer'

    def self.debug?; @debug; end
    def self.debug=(value); RDF::Turtle.debug = @debug = value; end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rdf-trig-1.1.4 lib/rdf/trig.rb
rdf-trig-1.1.3.1 lib/rdf/trig.rb