Sha256: 28e995de0168ea4996f8f166fa8466464a21b1f370965306eff0da6475c195f2

Contents?: true

Size: 1016 Bytes

Versions: 2

Compression:

Stored size: 1016 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://rdf.rubyforge.org/
  # @see http://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/index.html
  #
  # @author [Gregg Kellogg](http://kellogg-assoc.com/)
  module Turtle
    require  'rdf/turtle/format'
    require  'rdf/turtle/patches'
    autoload :Lexer,      'rdf/turtle/lexer'
    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

2 entries across 2 versions & 1 rubygems

Version Path
rdf-turtle-0.1.0 lib/rdf/turtle.rb
rdf-turtle-0.0.5 lib/rdf/turtle.rb