Methods

Redleaf::RDFaParser

A parser for RDF/A (www.w3.org/TR/rdfa-syntax/)

Subversion Id

 $Id$

Authors

Copyright © 2008-2009, Michael Granger All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Constants

SVNRev

SVN Revision

SVNId

SVN Id

Public Instance Methods

parse( content, baseuri=nil ) click to toggle source

Parse the specified content in the context of the specified baseuri. Overridden to avoid a segfault in Redland 1.0.8/Raptor 1.4.18:

  #0  0x96816e70 in strlen ()
  #1  0x0079d5c0 in rdfa_create_context ()
  #2  0x00790f52 in raptor_librdfa_parse_start ()
  #3  0x003ba644 in librdf_parser_raptor_parse_into_model_common (context=0x143ed90,
        uri=0x0, string=0x1526d00 "something", fh=0x0, length=0, base_uri=0x0,
        model=0x1441280) at rdf_parser_raptor.c:898
  #4  0x003ba7a7 in librdf_parser_raptor_parse_string_into_model (context=0x143ed90,
        string=0x1526d00 "something", base_uri=0x0, model=0x1441280) at
        rdf_parser_raptor.c:965
  #5  0x003b879d in librdf_parser_parse_string_into_model (parser=0x143ed10,
        string=0x1526d00 "something", base_uri=0x0, model=0x1441280) at rdf_parser.c:495
  #6  0x001e54df in rleaf_redleaf_parser_parse (argc=-1, argv=0xffffffff,
        self=18139960) at parser.c:299
  #7  0x000d1017 in rb_with_disable_interrupt ()
  #8  0x000da14c in rb_eval_string_wrap ()
  #9  0x000dad2a in rb_eval_string_wrap ()
    # File lib/redleaf/parser/rdfa.rb, line 53
53:     def parse( content, baseuri=nil )
54:         raise ArgumentError, "the RDFa parser requires a baseuri" if baseuri.nil?
55:         super
56:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.