Module: RDF::Raptor
- Defined in:
- lib/rdf/raptor.rb,
lib/rdf/raptor/cli.rb,
lib/rdf/raptor/ffi.rb,
lib/rdf/raptor/rdfa.rb,
lib/rdf/raptor/format.rb,
lib/rdf/raptor/rdfxml.rb,
lib/rdf/raptor/turtle.rb,
lib/rdf/raptor/version.rb,
lib/rdf/raptor/graphviz.rb,
lib/rdf/raptor/ntriples.rb
Overview
RDF::Raptor
is a Raptor RDF Parser plugin for RDF.rb.
-
NTriples provides support for the standard machine-readable N-Triples format.
-
Turtle provides support for the popular human-readable Turtle format.
-
RDFXML provides support for the standard machine-readable RDF/XML format.
-
RDFa provides support for extracting RDF statements from XHTML+RDFa documents.
-
Graphviz provides support for serializing RDF statements to the Graphviz DOT format.
Raptor includes an FFI implementation, which loads the libraptor2
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 libraptor2
library cannot be found, or if the RDF_RAPTOR_ENGINE
environment variable is explicitly set to 'cli'
.
If the libraptor2
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, Format, Graphviz, NTriples, RDFXML, RDFa, Turtle, VERSION
Constant Summary collapse
- LIBRAPTOR =
ENV['RDF_RAPTOR_LIBPATH'] || ['libraptor2', 'libraptor2.so.0']
- RAPPER =
ENV['RDF_RAPTOR_BINPATH'] || 'rapper'
Class Method Summary collapse
-
.available? ⇒ Boolean
Returns
true
if therapper
binary is available.
Class Method Details
.available? ⇒ Boolean
Returns true
if the rapper
binary is available.
106 107 108 |
# File 'lib/rdf/raptor.rb', line 106 def self.available? !!version end |