Sha256: 137a01d210364bb6ce721f6cd9730f530129551e54fce394256c18aa3db15517

Contents?: true

Size: 906 Bytes

Versions: 3

Compression:

Stored size: 906 Bytes

Contents

require 'rdf'

module RDF
  ##
  # **`RDF::TriG`** is an TriG plugin 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://dvcs.w3.org/hg/rdf/raw-file/default/trig/index.html
  #
  # @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

3 entries across 3 versions & 1 rubygems

Version Path
rdf-trig-1.0.1 lib/rdf/trig.rb
rdf-trig-1.0.0 lib/rdf/trig.rb
rdf-trig-1.0.0.beta3 lib/rdf/trig.rb