Module: RDF::Turtle

Defined in:
vendor/bundler/ruby/3.3.0/bundler/gems/rdf-turtle-6506e92ccd8e/lib/rdf/turtle.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/rdf-turtle-6506e92ccd8e/lib/rdf/turtle/format.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/rdf-turtle-6506e92ccd8e/lib/rdf/turtle/reader.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/rdf-turtle-6506e92ccd8e/lib/rdf/turtle/writer.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/rdf-turtle-6506e92ccd8e/lib/rdf/turtle/terminals.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/rdf-turtle-6506e92ccd8e/lib/rdf/turtle/freebase_reader.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/rdf-turtle-6506e92ccd8e/lib/rdf/turtle/streaming_writer.rb

Overview

RDF::Turtle is an Turtle extension for RDF.rb.

Examples:

Requiring the RDF::Turtle module

require 'rdf/turtle'

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 Also:

Author:

Defined Under Namespace

Modules: StreamingWriter, Terminals, VERSION Classes: Format, FreebaseReader, Reader, Writer