Module: RDF::TriG

Defined in:
vendor/bundler/ruby/2.4.0/bundler/gems/rdf-trig-d2d7b59405db/lib/rdf/trig.rb,
vendor/bundler/ruby/2.4.0/bundler/gems/rdf-trig-d2d7b59405db/lib/rdf/trig/format.rb,
vendor/bundler/ruby/2.4.0/bundler/gems/rdf-trig-d2d7b59405db/lib/rdf/trig/reader.rb,
vendor/bundler/ruby/2.4.0/bundler/gems/rdf-trig-d2d7b59405db/lib/rdf/trig/streaming_writer.rb,
vendor/bundler/ruby/2.4.0/bundler/gems/rdf-trig-d2d7b59405db/lib/rdf/trig/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