module RDF::Raptor::CLI

A command-line interface to Raptor’s ‘rapper` utility.

Constants

ENGINE

Public Instance Methods

version() click to toggle source

Returns the installed ‘rapper` version number, or `nil` if `rapper` is not available.

@example

RDF::Raptor.version  #=> "1.4.21"

@return [String]

# File lib/rdf/raptor/cli.rb, line 17
def version
  if `#{RAPPER} --version 2>/dev/null` =~ /^(\d+)\.(\d+)\.(\d+)/
    [$1, $2, $3].join('.')
  end
end