Module: RDF::Raptor::Format
- Included in:
- Graphviz::Format, NTriples::Format, RDFXML::Format, RDFa::Format, Turtle::Format
- Defined in:
- lib/rdf/raptor/format.rb
Overview
RDF::Raptor::Format mixin.
Instance Method Summary collapse
Instance Method Details
#detect(sample) ⇒ Object
21 22 23 24 |
# File 'lib/rdf/raptor/format.rb', line 21 def detect(sample) parser_name = RDF::Raptor::FFI::V2.raptor_world_guess_parser_name(RDF::Raptor::FFI::V2.world, nil, nil, sample, sample.length, nil) parser_name == rapper_format.to_s end |
#rapper_format #rapper_format(format)
This method returns an undefined value.
13 14 15 16 17 18 19 |
# File 'lib/rdf/raptor/format.rb', line 13 def rapper_format(format = nil) unless format @rapper_format else @rapper_format = format end end |