Sha256: 140d72ab798b874b06757a51f9219b7063a4d3a57d142c57bcfa4dc17359deac

Contents?: true

Size: 964 Bytes

Versions: 5

Compression:

Stored size: 964 Bytes

Contents

require 'rdf'

module RDF
  ##
  # **`RDF::Turtle`** is an Turtle plugin for RDF.rb.
  #
  # @example Requiring the `RDF::Turtle` module
  #   require 'rdf/turtle'
  #
  # @example Parsing RDF statements from an Turtle file
  #   RDF::Turtle::Reader.open("etc/foaf.ttl") do |reader|
  #     reader.each_statement do |statement|
  #       puts statement.inspect
  #     end
  #   end
  #
  # @see http://rubydoc.info/github/ruby-rdf/rdf/master/frames
  # @see http://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/index.html
  #
  # @author [Gregg Kellogg](http://greggkellogg.net/)
  module Turtle
    require  'rdf/turtle/format'
    autoload :Reader,     'rdf/turtle/reader'
    autoload :Terminals,  'rdf/turtle/terminals'
    autoload :VERSION,    'rdf/turtle/version'
    autoload :Writer,     'rdf/turtle/writer'

    KEYWORDS  = %w(@base @prefix).map(&:to_sym)
    
    def self.debug?; @debug; end
    def self.debug=(value); @debug = value; end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rdf-turtle-1.0.0 lib/rdf/turtle.rb
rdf-turtle-0.3.2 lib/rdf/turtle.rb
rdf-turtle-0.3.1 lib/rdf/turtle.rb
rdf-turtle-0.3.0 lib/rdf/turtle.rb
rdf-turtle-0.1.2 lib/rdf/turtle.rb