Sha256: 9dc54d48e37a57acf89df3daad8dcd0b8b1550231e0e50633c3d1032e5cb0ae5

Contents?: true

Size: 1012 Bytes

Versions: 3

Compression:

Stored size: 1012 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 N3 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

3 entries across 3 versions & 1 rubygems

Version Path
rdf-turtle-0.0.4 lib/rdf/turtle.rb
rdf-turtle-0.0.3 lib/rdf/turtle.rb
rdf-turtle-0.0.2 lib/rdf/turtle.rb