Module: RDF::Raptor
- Defined in:
- lib/rdf/raptor.rb,
lib/rdf/raptor/ffi.rb,
lib/rdf/raptor/cli.rb,
lib/rdf/raptor/rdfa.rb,
lib/rdf/raptor/turtle.rb,
lib/rdf/raptor/rdfxml.rb,
lib/rdf/raptor/version.rb,
lib/rdf/raptor/ntriples.rb,
lib/rdf/raptor/graphviz.rb
Overview
RDF::Raptor is a Raptor RDF Parser plugin for RDF.rb.
- Raptor::NTriples provides support for the standard machine-readable N-Triples format.
- Raptor::Turtle provides support for the popular human-readable Turtle format.
- Raptor::RDFXML provides support for the standard machine-readable RDF/XML format.
- Raptor::RDFa provides support for extracting RDF statements from XHTML+RDFa documents.
- Raptor::Graphviz provides support for serializing RDF statements to the Graphviz DOT format.
Raptor includes an FFI implementation, which loads the
libraptor library into the Ruby process, as well as a CLI
implementation, which drives the rapper command-line tool in a
sub-process.
The FFI implementation is used by default unless the libraptor library
cannot be found, or if the RDF_RAPTOR_ENGINE environment variable is
explicitly set to 'cli'.
If the libraptor library is in the standard library search path, and
the rapper command is in the standard command search path, all should
be well and work fine out of the box. However, if either is in a
non-standard location, be sure to set the RDF_RAPTOR_LIBPATH and/or
RDF_RAPTOR_BINPATH environment variables appropriately before
requiring rdf/raptor.
Defined Under Namespace
Modules: CLI, FFI, Graphviz, NTriples, RDFXML, RDFa, Turtle, VERSION Classes: Format
Constant Summary
- LIBRAPTOR =
ENV['RDF_RAPTOR_LIBPATH'] || 'libraptor'
- RAPPER =
ENV['RDF_RAPTOR_BINPATH'] || 'rapper'
Class Method Summary (collapse)
-
+ (Boolean) available?
Returns
trueif therapperbinary is available.
Class Method Details
+ (Boolean) available?
Returns true if the rapper binary is available.
105 106 107 |
# File 'lib/rdf/raptor.rb', line 105 def self.available? !!version end |