Module: RDF::TriG

Defined in:
vendor/bundler/ruby/3.3.0/bundler/gems/rdf-trig-ccb51eff7022/lib/rdf/trig.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/rdf-trig-ccb51eff7022/lib/rdf/trig/format.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/rdf-trig-ccb51eff7022/lib/rdf/trig/reader.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/rdf-trig-ccb51eff7022/lib/rdf/trig/writer.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/rdf-trig-ccb51eff7022/lib/rdf/trig/streaming_writer.rb

Overview

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

Examples:

Requiring the RDF::TriG module

require 'rdf/trig'

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

Author:

Defined Under Namespace

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